Sha256: a002fe3430a480510f70c8b519b0020fa98522dc099ad44b575a872dbfac2977

Contents?: true

Size: 429 Bytes

Versions: 10

Compression:

Stored size: 429 Bytes

Contents

# Search for SLOs returns "OK" response

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

# there is a valid "slo" in the system
SLO_DATA_0_NAME = ENV["SLO_DATA_0_NAME"]
opts = {
  query: SLO_DATA_0_NAME,
  page_size: 20,
  page_number: 0,
}
p api_instance.search_slo(opts)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
datadog_api_client-2.7.0 examples/v1/service-level-objectives/SearchSLO.rb
datadog_api_client-2.6.0 examples/v1/service-level-objectives/SearchSLO.rb
datadog_api_client-2.5.0 examples/v1/service-level-objectives/SearchSLO.rb
datadog_api_client-2.4.0 examples/v1/service-level-objectives/SearchSLO.rb
datadog_api_client-2.3.0 examples/v1/service-level-objectives/SearchSLO.rb
datadog_api_client-2.2.0 examples/v1/service-level-objectives/SearchSLO.rb
datadog_api_client-2.1.0 examples/v1/service-level-objectives/SearchSLO.rb
datadog_api_client-2.0.2 examples/v1/service-level-objectives/SearchSLO.rb
datadog_api_client-2.0.1 examples/v1/service-level-objectives/SearchSLO.rb
datadog_api_client-2.0.0 examples/v1/service-level-objectives/SearchSLO.rb