Skip to main content
POST
/
monitor
/
{id}
/
chart
Retrieve a Chart for a Monitor
curl --request POST \
  --url https://api.alerty.ai/monitor/{id}/chart \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "range": {
    "start": "2023-11-07T05:31:56Z",
    "end": "2023-11-07T05:31:56Z"
  },
  "stepInSeconds": 123,
  "filterBy": {}
}'
[
  {
    "labels": [
      {
        "label": "<string>",
        "value": "<string>"
      }
    ],
    "entries": [
      {
        "timestamp": "2023-11-07T05:31:56Z",
        "value": "<string>"
      }
    ]
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

the monitor identifier

Example:

"5df33a85-2b9c-40e3-8854-760ee3b8efc7"

Body

application/json

the input when asking for time series data

range
object

the range the time series will return data

stepInSeconds
integer

the data step aggregation

filterBy
object

Response

successful monitor retrieval

the list of time series

labels
object[]
required

the series labels

entries
object[]
required

the series entries

I