Class: DatadogAPIClient::V1::GraphSnapshot

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v1/models/graph_snapshot.rb

Overview

Object representing a graph snapshot.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#graph_defObject

A JSON document defining the graph. graph_def can be used instead of metric_query. The JSON document uses the [grammar defined here](docs.datadoghq.com/graphing/graphing_json/#grammar) and should be formatted to a single line then URL encoded.



31
32
33
# File 'lib/datadog_api_client/v1/models/graph_snapshot.rb', line 31

def graph_def
  @graph_def
end

#metric_queryObject

The metric query. One of metric_query or graph_def is required.



34
35
36
# File 'lib/datadog_api_client/v1/models/graph_snapshot.rb', line 34

def metric_query
  @metric_query
end

#snapshot_urlObject

URL of your [graph snapshot](docs.datadoghq.com/metrics/explorer/#snapshot).



37
38
39
# File 'lib/datadog_api_client/v1/models/graph_snapshot.rb', line 37

def snapshot_url
  @snapshot_url
end