Server monitorları
GET https://calisiyormu.com/api/server-monitors/
curl --request GET \
--url 'https://calisiyormu.com/api/server-monitors/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://calisiyormu.com/api/server-monitors/' \
--header 'Authorization: Bearer {api_key}' \
Parametrlər | Təfərrüatlar | Təsvir |
---|---|---|
page | İstəyə bağlı Tam | Nəticələri istədiyiniz səhifə nömrəsi. Varsayılan 1 olaraq təyin edilir. |
results_per_page | İstəyə bağlı Tam | Səhifə başına neçə nəticə istəyirsiniz. İcazə verilən dəyərlər: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Varsayılan 25 olaraq təyin edilir. |
{ "data": [ { "id": 1, "project_id": 0, "name": "Sample", "target": "123.123.123.123", "settings": { "server_check_interval_seconds": 60 }, "cpu_usage": 0.7, "ram_usage": 30.65, "disk_usage": 16.49, "cpu_load_1": 0, "cpu_load_5": 0, "cpu_load_15": 0, "is_enabled": true, "total_logs": 100, "last_log_datetime": "2024-01-14 02:45:05", "datetime": "2025-10-19 08:09:37", "last_datetime": null } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://calisiyormu.com/api/server-monitors?page=1", "last": "https://calisiyormu.com/api/server-monitors?page=1", "next": null, "prev": null, "self": "https://calisiyormu.com/api/server-monitors?page=1" } }
GET https://calisiyormu.com/api/server-monitors/{server_monitor_id}
curl --request GET \
--url 'https://calisiyormu.com/api/server-monitors/{server_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://calisiyormu.com/api/server-monitors/{server_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "project_id": 0, "name": "Sample", "target": "123.123.123.123", "settings": { "server_check_interval_seconds": 60 }, "cpu_usage": 0.7, "ram_usage": 30.65, "disk_usage": 16.49, "cpu_load_1": 0, "cpu_load_5": 0, "cpu_load_15": 0, "is_enabled": true, "total_logs": 100, "last_log_datetime": "2024-01-14 02:45:05", "datetime": "2025-10-19 08:09:37", "last_datetime": null } }
POST https://calisiyormu.com/api/server-monitors
Parametrlər | Təfərrüatlar | Təsvir |
---|---|---|
name | Tələb olunur Sətir | - |
target | Tələb olunur Sətir | - |
project_id | İstəyə bağlı Tam | - |
notifications | İstəyə bağlı Array | Bildiriş idarəedicisi id-ləri |
server_check_interval_seconds | İstəyə bağlı Tam | İcazə verilən dəyərlər: 60 , 300 , 600 , 900 , 1800 (saniyə) |
alert_metric[key] | İstəyə bağlı Sətir | İcazə verilən dəyərlər: cpu_usage , disk_usage , ram_usage |
alert_rule[key] | İstəyə bağlı Sətir | İcazə verilən dəyərlər: is_higher , is_lower |
alert_value[key] | İstəyə bağlı Sətir | İcazə verilən dəyərlər: 1-99 |
alert_trigger[key] | İstəyə bağlı Sətir | İcazə verilən dəyərlər: 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 |
is_enabled | İstəyə bağlı Boolean | - |
curl --request POST \
--url 'https://calisiyormu.com/api/server-monitors' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
--url 'https://calisiyormu.com/api/server-monitors' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
{ "data": { "id": 1 } }
POST https://calisiyormu.com/api/server-monitors/{server_monitor_id}
Parametrlər | Təfərrüatlar | Təsvir |
---|---|---|
name | Tələb olunur Sətir | - |
target | Tələb olunur Sətir | - |
project_id | İstəyə bağlı Tam | - |
notifications | İstəyə bağlı Array | Bildiriş idarəedicisi id-ləri |
server_check_interval_seconds | İstəyə bağlı Tam | İcazə verilən dəyərlər: 60 , 300 , 600 , 900 , 1800 (saniyə) |
alert_metric[key] | İstəyə bağlı Sətir | İcazə verilən dəyərlər: cpu_usage , disk_usage , ram_usage |
alert_rule[key] | İstəyə bağlı Sətir | İcazə verilən dəyərlər: is_higher , is_lower |
alert_value[key] | İstəyə bağlı Sətir | İcazə verilən dəyərlər: 1-99 |
alert_trigger[key] | İstəyə bağlı Sətir | İcazə verilən dəyərlər: 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 |
is_enabled | İstəyə bağlı Boolean | - |
curl --request POST \
--url 'https://calisiyormu.com/api/server-monitors/{server_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--url 'https://calisiyormu.com/api/server-monitors/{server_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
{ "data": { "id": 1 } }
DELETE https://calisiyormu.com/api/server-monitors/{server_monitor_id}
curl --request DELETE \
--url 'https://calisiyormu.com/api/server-monitors/{server_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://calisiyormu.com/api/server-monitors/{server_monitor_id}' \
--header 'Authorization: Bearer {api_key}' \