Sha256: 9ffe05faf1fb5aaf0dff40844776d9f4a1d1841c55b7d1fde7a506d8d476929a
Contents?: true
Size: 822 Bytes
Versions: 19
Compression:
Stored size: 822 Bytes
Contents
# Update an SLO correction returns "OK" response require "datadog_api_client" api_instance = DatadogAPIClient::V1::ServiceLevelObjectiveCorrectionsAPI.new # there is a valid "correction" for "slo" CORRECTION_DATA_ID = ENV["CORRECTION_DATA_ID"] body = DatadogAPIClient::V1::SLOCorrectionUpdateRequest.new({ data: DatadogAPIClient::V1::SLOCorrectionUpdateData.new({ attributes: DatadogAPIClient::V1::SLOCorrectionUpdateRequestAttributes.new({ category: DatadogAPIClient::V1::SLOCorrectionCategory::DEPLOYMENT, description: "Example-Service-Level-Objective-Correction", _end: (Time.now + 1 * 3600).to_i, start: Time.now.to_i, timezone: "UTC", }), type: DatadogAPIClient::V1::SLOCorrectionType::CORRECTION, }), }) p api_instance.update_slo_correction(CORRECTION_DATA_ID, body)
Version data entries
19 entries across 19 versions & 1 rubygems