Sha256: 58fafffae302e82e2bcc3a987a4ef088f3c272b033b1f275f648ce4954228504

Contents?: true

Size: 310 Bytes

Versions: 25

Compression:

Stored size: 310 Bytes

Contents

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

require "datadog_api_client"
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

25 entries across 25 versions & 1 rubygems

Version Path
datadog_api_client-2.8.0 examples/v1/service-level-objectives/GetSLOHistory.rb
datadog_api_client-2.7.0 examples/v1/service-level-objectives/GetSLOHistory.rb
datadog_api_client-2.6.0 examples/v1/service-level-objectives/GetSLOHistory.rb
datadog_api_client-2.5.0 examples/v1/service-level-objectives/GetSLOHistory.rb
datadog_api_client-2.4.0 examples/v1/service-level-objectives/GetSLOHistory.rb