Sha256: b59a80f53b1f45eba4a12112d966dfc999b203e2dc75a58f0f24f56bff757a59

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::MetricsAPI.new
q = "q_example" # String | Query string to search metrics upon. Must be prefixed with `metrics:`.

begin
  # Search metrics
  result = api_instance.list_metrics(q)
  p result
rescue DatadogAPIClient::V1::APIError => e
  puts "Error when calling MetricsAPI->list_metrics: #{e}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-1.7.0 examples/generated/v1/metrics/ListMetrics.rb