Endpoint API:
https://www.sempresu.it/api/v1/monitors
Esempio richiesta:
curl --location --request GET 'https://www.sempresu.it/api/v1/monitors' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
searchsearch_byname per Nome, url per URL. Predefinito: name.status_page_idsort_byid per Data creazione, name per Nome, url per URL. Predefinito: id.sortdesc per Decrescente, asc per Crescente. Predefinito: desc.per_page10, 25, 50, 100. Predefinito: 25.Endpoint API:
https://www.sempresu.it/api/v1/monitors/{id}
Esempio richiesta:
curl --location --request GET 'https://www.sempresu.it/api/v1/monitors/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
Endpoint API:
https://www.sempresu.it/api/v1/monitors
Esempio richiesta:
curl --location --request POST 'https://www.sempresu.it/api/v1/monitors' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}' \ --data-urlencode 'url={url}'
nameurlinterval60, 180, 300, 600, 900, 1800, 3600.ssl_alert_days0, 1, 2, 3, 7, 14, 30, 60.maintenance_start_atY-m-d H:i.maintenance_end_atY-m-d H:i.alerts[index][key]email per Email, webhook per Webhook, slack per Slack, teams per Microsoft Teams, discord per Discord, flock per Flock, sms per SMS.alerts[index][value]Endpoint API:
https://www.sempresu.it/api/v1/monitors/{id}
Esempio richiesta:
curl --location --request PUT 'https://www.sempresu.it/api/v1/monitors/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}'
nameurlinterval60, 180, 300, 600, 900, 1800, 3600.ssl_alert_days0, 1, 2, 3, 7, 14, 30, 60.maintenance_start_atY-m-d H:i.maintenance_end_atY-m-d H:i.alerts[index][key]email per Email, webhook per Webhook, slack per Slack, teams per Microsoft Teams, discord per Discord, flock per Flock, sms per SMS.alerts[index][value]pausedEndpoint API:
https://www.sempresu.it/api/v1/monitors/{id}
Esempio richiesta:
curl --location --request DELETE 'https://www.sempresu.it/api/v1/monitors/{id}' \ --header 'Authorization: Bearer {api_key}'