API 端點:
https://newsbobo.com/api/v1/incidents
請求範例:
curl --location --request GET 'https://newsbobo.com/api/v1/incidents' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
monitor
用於 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://newsbobo.com/api/v1/incidents/{id}
請求範例:
curl --location --request GET 'https://newsbobo.com/api/v1/incidents/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API 端點:
https://newsbobo.com/api/v1/incidents/{id}
請求範例:
curl --location --request PUT 'https://newsbobo.com/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://newsbobo.com/api/v1/incidents/{id}
請求範例:
curl --location --request DELETE 'https://newsbobo.com/api/v1/incidents/{id}' \ --header 'Authorization: Bearer {api_key}'