Stats

Note
Livello esperto
La chiave API va inviata come token Bearer nell'header Authorization. Ottieni la chiave API.
Mostra

Endpoint API:

GET
https://www.sempresu.it/api/v1/stats/{monitor_id}

Esempio richiesta:

curl --location --request GET 'https://www.sempresu.it/api/v1/stats/{monitor_id}?name={name}&from={from}&to={to}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parametro
Tipo
Descrizione
name
obbligatorio string
Nome. Valori possibili: check, check_response_time, incident, incident_duration.
from
obbligatorio string
Data inizio in formato Y-m-d.
to
obbligatorio string
Data fine in formato Y-m-d.
sort
opzionale string
Ordina. Valori possibili: desc per Decrescente, asc per Crescente. Predefinito: desc.