Sha256: 881138852647eb3a3fb57583c84c82d78fa877f409035a06185f545e45888a87

Contents?: true

Size: 318 Bytes

Versions: 32

Compression:

Stored size: 318 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",
  height: 400,
  width: 600,
}
p api_instance.get_graph_snapshot((Time.now + -1 * 86400).to_i, Time.now.to_i, opts)

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.27.1 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.26.1 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.26.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.25.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.24.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.22.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.21.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.20.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.19.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.18.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.17.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.16.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.15.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.14.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.13.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.12.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.11.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.10.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.9.0 examples/v1/snapshots/GetGraphSnapshot.rb