Tempo Atividade
GET https://up.azl.one/api/monitors/
curl --request GET \
--url 'https://up.azl.one/api/monitors/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://up.azl.one/api/monitors/' \
--header 'Authorization: Bearer {api_key}' \
| Parâmetros | Detalhes | Descrição |
|---|---|---|
| page | Opcional Inteiro | O número da página da qual você deseja os resultados. O padrão é 1. |
| results_per_page | Opcional Inteiro | Quantos resultados você quer por página. Os valores permitidos são: 10 , 25 , 50 , 100 , 250 , 500 , 1000. O padrão é 25. |
{
"data": [
{
"id": 1,
"project_id": 0,
"name": "Example",
"type": "website",
"target": "https://example.com/",
"port": 0,
"settings": {
"check_interval_seconds": 3600,
"timeout_seconds": 1,
"request_method": "GET",
"request_body": "",
"request_basic_auth_username": "",
"request_basic_auth_password": "",
"request_headers": [],
"response_status_code": 200,
"response_body": "",
"response_headers": []
},
"ping_servers_ids": [1],
"is_ok": 1,
"uptime": 95.5,
"downtime": 4.5,
"average_response_time": 500,
"total_checks": 500,
"total_ok_checks": 450,
"total_not_ok_checks": 50,
"last_check_datetime": "2021-03-25 08:27:07",
"notifications": {
"email_is_enabled": 0,
"webhook":"",
"slack":"",
"twilio":""
},
"is_enabled": false,
"datetime": "2025-12-16 11:00:48",
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://up.azl.one/api/monitors?page=1",
"last": "https://up.azl.one/api/monitors?page=1",
"next": null,
"prev": null,
"self": "https://up.azl.one/api/monitors?page=1"
}
}
GET https://up.azl.one/api/monitors/{monitor_id}
curl --request GET \
--url 'https://up.azl.one/api/monitors/{monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://up.azl.one/api/monitors/{monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": 0,
"name": "Example",
"type": "website",
"target": "https://example.com/",
"port": 0,
"settings": {
"check_interval_seconds": 3600,
"timeout_seconds": 1,
"request_method": "GET",
"request_body": "",
"request_basic_auth_username": "",
"request_basic_auth_password": "",
"request_headers": [],
"response_status_code": 200,
"response_body": "",
"response_headers": []
},
"ping_servers_ids": [1],
"is_ok": 1,
"uptime": 95.5,
"downtime": 4.5,
"average_response_time": 500,
"total_checks": 500,
"total_ok_checks": 450,
"total_not_ok_checks": 50,
"last_check_datetime": "2021-03-25 08:27:07",
"notifications": {
"email_is_enabled": 0,
"webhook":"",
"slack":"",
"twilio":""
},
"is_enabled": false,
"datetime": "2025-12-16 11:00:48",
}
}
POST https://up.azl.one/api/monitors
| Parâmetros | Detalhes | Descrição |
|---|---|---|
| name | Obrigatório Corda | - |
| target | Obrigatório Corda | - |
| port | Opcional Corda | - |
| type | Opcional Corda | Valores permitidos: website, ping, port |
| project_id | Opcional Inteiro | - |
| ping_servers_ids | Opcional Matriz | Valores permitidos: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 |
| check_interval_seconds | Opcional Inteiro | Valores permitidos: 60, 180, 300, 600, 1800, 3600, 21600, 43200, 86400 (segundos) |
| timeout_seconds | Opcional Inteiro | Valores permitidos: 1, 2, 3, 5, 10, 25 (segundos) |
| ping_ipv | Opcional Corda |
Disponível quando: type = ping Valores permitidos: ipv4, ipv6 |
| request_method | Opcional Corda | Valores permitidos: HEAD, GET, POST, PUT, PATCH |
| request_body | Opcional Corda | - |
| request_basic_auth_username | Opcional Corda | - |
| request_basic_auth_password | Opcional Corda | - |
| request_header_name | Opcional Matriz | - |
| request_header_value | Opcional Matriz | - |
| response_status_code | Opcional Inteiro | - |
| response_body | Opcional Corda | - |
| response_header_name | Opcional Corda | - |
| response_header_value | Opcional Corda | - |
| is_ok_notifications | Opcional Matriz | IDs do manipulador de notificações |
| email_reports_is_enabled | Opcional Booleano | - |
| cache_buster_is_enabled | Opcional Booleano | - |
| verify_ssl_is_enabled | Opcional Booleano | - |
| is_enabled | Opcional Booleano | - |
curl --request POST \
--url 'https://up.azl.one/api/monitors' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=https://example.com/' \
--url 'https://up.azl.one/api/monitors' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=https://example.com/' \
{
"data": {
"id": 1
}
}
POST https://up.azl.one/api/monitors/{monitor_id}
| Parâmetros | Detalhes | Descrição |
|---|---|---|
| name | Opcional Corda | - |
| target | Opcional Corda | - |
| port | Opcional Corda | - |
| type | Opcional Corda | Valores permitidos: website, ping, port |
| project_id | Opcional Inteiro | - |
| ping_servers_ids | Opcional Matriz | Valores permitidos: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27 |
| check_interval_seconds | Opcional Inteiro | Valores permitidos: 60, 180, 300, 600, 1800, 3600, 21600, 43200, 86400 (segundos) |
| timeout_seconds | Opcional Inteiro | Valores permitidos: 1, 2, 3, 5, 10, 25 (segundos) |
| ping_ipv | Opcional Corda |
Disponível quando: type = ping Valores permitidos: ipv4, ipv6 |
| request_method | Opcional Corda | Valores permitidos: HEAD, GET, POST, PUT, PATCH |
| request_body | Opcional Corda | - |
| request_basic_auth_username | Opcional Corda | - |
| request_basic_auth_password | Opcional Corda | - |
| request_header_name | Opcional Matriz | - |
| request_header_value | Opcional Matriz | - |
| response_status_code | Opcional Inteiro | - |
| response_body | Opcional Corda | - |
| response_header_name | Opcional Corda | - |
| response_header_value | Opcional Corda | - |
| is_ok_notifications | Opcional Matriz | IDs do manipulador de notificações |
| email_reports_is_enabled | Opcional Booleano | - |
| cache_buster_is_enabled | Opcional Booleano | - |
| verify_ssl_is_enabled | Opcional Booleano | - |
| is_enabled | Opcional Booleano | - |
curl --request POST \
--url 'https://up.azl.one/api/monitors/{monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--url 'https://up.azl.one/api/monitors/{monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
{
"data": {
"id": 1
}
}
DELETE https://up.azl.one/api/monitors/{monitor_id}
curl --request DELETE \
--url 'https://up.azl.one/api/monitors/{monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://up.azl.one/api/monitors/{monitor_id}' \
--header 'Authorization: Bearer {api_key}' \