Điểm cuối API:
https://uptime247.vn/api/v1/incidents
Ví dụ yêu cầu:
curl --location --request GET 'https://uptime247.vn/api/v1/incidents' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
monitor
cho Monitor, cause
cho Nguyên nhân. Mặc định là: url
.monitor_id
status
unresolved
cho Chưa giải quyết, acknowledged
cho Đã xác nhận, resolved
cho Đã giải quyết.sort_by
started_at
cho Ngày bắt đầu, ended_at
cho Ngày kết thúc. Mặc định là: ended_at
.sort
desc
cho Giảm dần, asc
cho Tăng dần. Mặc định là: desc
.per_page
10
, 25
, 50
, 100
. Mặc định là: 10
.Điểm cuối API:
https://uptime247.vn/api/v1/incidents/{id}
Ví dụ yêu cầu:
curl --location --request GET 'https://uptime247.vn/api/v1/incidents/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
Điểm cuối API:
https://uptime247.vn/api/v1/incidents/{id}
Ví dụ yêu cầu:
curl --location --request PUT 'https://uptime247.vn/api/v1/incidents/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}'
comment
acknowledged_at
Điểm cuối API:
https://uptime247.vn/api/v1/incidents/{id}
Ví dụ yêu cầu:
curl --location --request DELETE 'https://uptime247.vn/api/v1/incidents/{id}' \ --header 'Authorization: Bearer {api_key}'