Sha256: cf7e9a42144e3f4e45ce56a5d41f749e6726530f24377208f44e0b81f9fd4beb
Contents?: true
Size: 725 Bytes
Versions: 3
Compression:
Stored size: 725 Bytes
Contents
# Create a new SLO report returns "OK" response require "datadog_api_client" DatadogAPIClient.configure do |config| config.unstable_operations["v2.create_slo_report_job".to_sym] = true end api_instance = DatadogAPIClient::V2::ServiceLevelObjectivesAPI.new body = DatadogAPIClient::V2::SloReportCreateRequest.new({ data: DatadogAPIClient::V2::SloReportCreateRequestData.new({ attributes: DatadogAPIClient::V2::SloReportCreateRequestAttributes.new({ from_ts: 1690901870, to_ts: 1706803070, query: 'slo_type:metric "SLO Reporting Test"', interval: DatadogAPIClient::V2::SLOReportInterval::MONTHLY, timezone: "America/New_York", }), }), }) p api_instance.create_slo_report_job(body)
Version data entries
3 entries across 3 versions & 1 rubygems