Sha256: 783b2670f62a5e02dcd83ee9786b93103d5a76f6c9d200012d96ac6b9bfe8362
Contents?: true
Size: 892 Bytes
Versions: 1
Compression:
Stored size: 892 Bytes
Contents
require "datadog_api_client" api_instance = DatadogAPIClient::V1::ServiceLevelObjectivesAPI.new opts = { ids: "id1, id2, id3", # String | A comma separated list of the IDs of the service level objectives objects. query: "monitor", # String | The query string to filter results based on SLO names. tags_query: "env:prod", # String | The query string to filter results based on a single SLO tag. metrics_query: "aws.elb.request_count", # String | The query string to filter results based on SLO numerator and denominator. limit: 789, # Integer | The number of SLOs to return in the response. offset: 789, # Integer | The specific offset to use as the beginning of the returned response. } begin # Get all SLOs result = api_instance.list_slos(opts) p result rescue DatadogAPIClient::V1::APIError => e puts "Error when calling ServiceLevelObjectivesAPI->list_slos: #{e}" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-1.7.0 | examples/generated/v1/service-level-objectives/ListSLOs.rb |