Take graph snapshots

GET {{baseUrl}}/api/v1/graph/snapshot?metric_query=tempor Ut sed velit&start=-62147425&end=-62147425&event_query=tempor Ut sed velit&graph_def=tempor Ut sed velit&title=tempor Ut sed velit&height=-62147425&width=-62147425

Take graph snapshots. Note: When a snapshot is created, there is some delay before it is available.

Request Params

KeyDatatypeRequiredDescription
metric_querystringThe metric query.
startnumber(Required) The POSIX timestamp of the start of the query in seconds.
endnumber(Required) The POSIX timestamp of the end of the query in seconds.
event_querystringA query that adds event bands to the graph.
graph_defstringA JSON document defining the graph. graph_def can be used instead of metric_query.
The JSON document uses the grammar defined here
and should be formatted to a single line then URL encoded.
titlestringA title for the graph. If no title is specified, the graph does not have a title.
heightnumberThe height of the graph. If no height is specified, the graph's original height is used.
widthnumberThe width of the graph. If no width is specified, the graph's original width is used.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"graph_def":"aliquip pariatur non","metric_query":"sit veniam dolore Ut","snapshot_url":"https://app.datadoghq.com/s/f12345678/aaa-bbb-ccc"}