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.8.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.7.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.6.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.5.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.4.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.3.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.2.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.1.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.0.2 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.0.1 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-2.0.0 examples/v1/snapshots/GetGraphSnapshot.rb
datadog_api_client-1.11.0 examples/v1/snapshots/GetGraphSnapshot.rb