POST
/
monitor
/
{id}
/
chart
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
required

the monitor identifier

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

200
application/json
successful monitor retrieval
labels
object[]
required

the series labels

entries
object[]
required

the series entries