API端点:
https://pu.a.koq.net/api/v1/incidents
请求示例:
curl --location --request GET 'https://pu.a.koq.net/api/v1/incidents' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
monitor
, 原因的cause
默认为:url
monitor_id
status
unresolved
, 已确认的acknowledged
, 已解决的resolved
sort_by
started_at
, 结束日期的ended_at
默认为:ended_at
sort
desc
, 升序的asc
默认为:desc
per_page
10
, 25
, 50
, 100
默认为:10
API端点:
https://pu.a.koq.net/api/v1/incidents/{id}
请求示例:
curl --location --request GET 'https://pu.a.koq.net/api/v1/incidents/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API端点:
https://pu.a.koq.net/api/v1/incidents/{id}
请求示例:
curl --location --request PUT 'https://pu.a.koq.net/api/v1/incidents/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'name={name}'
comment
acknowledged_at
API端点:
https://pu.a.koq.net/api/v1/incidents/{id}
请求示例:
curl --location --request DELETE 'https://pu.a.koq.net/api/v1/incidents/{id}' \ --header 'Authorization: Bearer {api_key}'