Sha256: 6b7e9a3bd34765d71a3d29f43fae3f545dcb9e016d77f1cb70050f3968563140
Contents?: true
Size: 925 Bytes
Versions: 3
Compression:
Stored size: 925 Bytes
Contents
# Send an incident event for DORA Metrics returns "OK" response require "datadog_api_client" DatadogAPIClient.configure do |config| config.unstable_operations["v2.create_dora_incident".to_sym] = true end api_instance = DatadogAPIClient::V2::DORAMetricsAPI.new body = DatadogAPIClient::V2::DORAIncidentRequest.new({ data: DatadogAPIClient::V2::DORAIncidentRequestData.new({ attributes: DatadogAPIClient::V2::DORAIncidentRequestAttributes.new({ finished_at: 1693491984000000000, git: DatadogAPIClient::V2::DORAGitInfo.new({ commit_sha: "66adc9350f2cc9b250b69abddab733dd55e1a588", repository_url: "https://github.com/organization/example-repository", }), name: "Webserver is down failing all requests", service: "shopist", severity: "High", started_at: 1693491974000000000, version: "v1.12.07", }), }), }) p api_instance.create_dora_incident(body)
Version data entries
3 entries across 3 versions & 1 rubygems