Sha256: ad01cfcdd39c76aa4123f33feadecddc79bc97f9558c456c658e1457655a3d04
Contents?: true
Size: 747 Bytes
Versions: 4
Compression:
Stored size: 747 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: (Time.now + -40 * 86400).to_i, to_ts: Time.now.to_i, 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
4 entries across 4 versions & 1 rubygems