Sha256: a0355ad961a5a0bc667b92878322657859a7a84be1da8b17720165a8346193e2

Contents?: true

Size: 422 Bytes

Versions: 6

Compression:

Stored size: 422 Bytes

Contents

# Get an SLO's history returns "OK" response

require "datadog_api_client"
DatadogAPIClient::V2.configure do |config|
  config.unstable_operations["v1.get_slo_history".to_sym] = true
end
api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new

# there is a valid "slo" in the system
SLO_DATA_0_ID = ENV["SLO_DATA_0_ID"]
p api_instance.get_slo_history(SLO_DATA_0_ID, (Time.now + -1 * 86400).to_i, Time.now.to_i)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datadog_api_client-2.3.0 examples/v1/service-level-objectives/GetSLOHistory.rb
datadog_api_client-2.2.0 examples/v1/service-level-objectives/GetSLOHistory.rb
datadog_api_client-2.1.0 examples/v1/service-level-objectives/GetSLOHistory.rb
datadog_api_client-2.0.2 examples/v1/service-level-objectives/GetSLOHistory.rb
datadog_api_client-2.0.1 examples/v1/service-level-objectives/GetSLOHistory.rb
datadog_api_client-2.0.0 examples/v1/service-level-objectives/GetSLOHistory.rb