跳转到主要内容
POST
/
webhook
/
history
/
list
历史列表
curl --request POST \
  --url https://api.flashcat.cloud/webhook/history/list \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "integration_id": 123,
  "limit": 123,
  "start_time": 123,
  "end_time": 123,
  "search_after_ctx": 123,
  "asc": true,
  "orderby": "event_time",
  "ref_id": "<string>",
  "event_types": [
    "i_new"
  ],
  "status": "success"
}
'
{
  "request_id": "<string>",
  "data": {
    "items": [
      {
        "channel_id": 123,
        "integration_id": "<string>",
        "event_type": "<string>",
        "endpoint": "<string>",
        "request_headers": "<string>",
        "request_body": "<string>",
        "duration": 123,
        "status": "success",
        "status_code": 123,
        "event_id": "<string>",
        "webhook_type": "<string>",
        "ref_id": "<string>",
        "attempt": 123,
        "error_message": "<string>",
        "response_headers": "<string>",
        "response_body": "<string>",
        "event_time": "<string>"
      }
    ],
    "search_after_ctx": "<string>",
    "total": 123
  },
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

请求头

Content-Type
string
必填

请求体

application/json
integration_id
integer
必填

集成ID

limit
integer
必填

条数

start_time
integer
必填

开始时间,毫秒时间戳,仅支持七天内的时间查询

end_time
integer
必填

结束时间,毫秒时间戳

search_after_ctx
integer

游标信息

asc
boolean

是否升序

orderby
enum<string>

排序依据

可用选项:
event_time
ref_id
string

故障ID或告警ID

event_types
enum<string>[]

事件类型

事件类型

可用选项:
i_new,
i_assign,
i_snooze,
i_wake,
i_ack,
i_unack,
i_storm,
i_custom,
i_rslv,
i_reopen,
i_merge,
i_comm,
i_r_title,
i_r_desc,
i_r_impact,
i_r_rc,
i_r_rsltn,
i_r_severity,
i_r_field,
a_new,
a_update,
a_merge,
a_close
status
enum<string>

请求状态

可用选项:
success,
failed

响应

200 - application/json
request_id
string
必填
data
object
必填
error
错误信息,仅出错时存在 · object

错误信息,仅失败时存在