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

Path Parameters

id
string<uuid>
required
Example:

Body

application/json
range
object
stepInSeconds
integer
filterBy
object

Response

labels
object[]
required
entries
object[]
required