Take graph snapshots
GET {{baseUrl}}/api/v1/graph/snapshot?start=-32260706&end=-32260706
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":"exercitation sit nulla ad","metric_query":"nulla deserunt dolore nisi","snapshot_url":"https://app.datadoghq.com/s/f12345678/aaa-bbb-ccc"}