事件

備註
進階等級
API 金鑰應以 Bearer Token 格式加入請求的 Authorization 標頭中。 取得您的 API 金鑰.
列表

API 端點:

GET
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
選填 string
搜尋查詢字串。
search_by
選填 string
搜尋依據. 可能的值有:monitor 用於 Monitor, cause 用於 原因。 預設為:url
monitor_id
選填 string
監控 ID.
status
選填 string
狀態. 可能的值有:unresolved 用於 未解決, acknowledged 用於 已確認, resolved 用於 已解決
sort_by
選填 string
排序方式. 可能的值有:started_at 用於 開始日期, ended_at 用於 結束日期。 預設為:ended_at
sort
選填 string
排序. 可能的值有:desc 用於 遞減, asc 用於 遞增。 預設為:desc
per_page
選填 integer
每頁顯示筆數. 可能的值有:10, 25, 50, 100。 預設為:10
顯示

API 端點:

GET
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 端點:

PUT PATCH
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
選填 string
評論.
acknowledged_at
選填 boolean
確認.
刪除

API 端點:

DELETE
https://newsbobo.com/api/v1/incidents/{id}

請求範例:

curl --location --request DELETE 'https://newsbobo.com/api/v1/incidents/{id}' \
--header 'Authorization: Bearer {api_key}'