Stats

Megjegyzés
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Generáld le saját API kulcsodat.
Show

API endpoint:

GET
https://szervermonitor.eu/api/v1/stats/{monitor_id}

Request example:

curl --location --request GET 'https://szervermonitor.eu/api/v1/stats/{monitor_id}?name={name}&from={from}&to={to}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Paraméter
Típus
Leírás
name
required string
Név. Possible values are: check, check_response_time, incident, incident_duration.
from
required string
Starting date in Y-m-d format.
to
required string
Ending date in Y-m-d format.
sort
opciónális string
Sort. Possible values are: desc for Descending, asc for Ascending. Defaults to: desc.