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}'
searchsearch_bymonitor 用於 Monitor, cause 用於 原因。 預設為:url。monitor_idstatusunresolved 用於 未解決, acknowledged 用於 已確認, resolved 用於 已解決。sort_bystarted_at 用於 開始日期, ended_at 用於 結束日期。 預設為:ended_at。sortdesc 用於 遞減, asc 用於 遞增。 預設為:desc。per_page10, 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}'
commentacknowledged_atAPI 端點:
https://newsbobo.com/api/v1/incidents/{id}
請求範例:
curl --location --request DELETE 'https://newsbobo.com/api/v1/incidents/{id}' \ --header 'Authorization: Bearer {api_key}'