Sha256: 4899fd9429a9f9d38e0f2bf6b5ee6cc460846a05ed61a52e1e4d95f11add2116

Contents?: true

Size: 289 Bytes

Versions: 6

Compression:

Stored size: 289 Bytes

Contents

# Take graph snapshots returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::SnapshotsAPI.new
opts = {
  metric_query: "avg:system.load.1{*}",
  title: "System load",
}
p api_instance.get_graph_snapshot((Time.now + -1 * 86400).to_i, Time.now.to_i, opts)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datadog_api_client-1.10.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-1.9.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-1.8.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-1.7.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-1.6.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-1.5.0 examples/v1/snapshots/GetGraphSnapshot.rb