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
Key | Datatype | Required | Description |
---|---|---|---|
metric_query | string | The metric query. | |
start | number | (Required) The POSIX timestamp of the start of the query in seconds. | |
end | number | (Required) The POSIX timestamp of the end of the query in seconds. | |
event_query | string | A query that adds event bands to the graph. | |
graph_def | string | A 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. | |||
title | string | A title for the graph. If no title is specified, the graph does not have a title. | |
height | number | The height of the graph. If no height is specified, the graph's original height is used. | |
width | number | The width of the graph. If no width is specified, the graph's original width is used. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
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"}