跳转到主要内容
POST
/
alert-event
/
list
事件列表
curl --request POST \
  --url 'https://api.flashcat.cloud/alert-event/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "start_time": 123,
  "end_time": 123,
  "integration_types": [
    "<string>"
  ],
  "integration_ids": [
    123
  ],
  "channel_ids": [
    123
  ],
  "severities": [
    "<string>"
  ],
  "orderby": "<string>",
  "search_after_ctx": "<string>",
  "p": 1,
  "limit": 20
}
'
{
  "request_id": "<string>",
  "data": {
    "items": [
      {
        "event_id": "<string>",
        "integration_id": 123,
        "channel_id": 123,
        "title": "<string>",
        "title_rule": "<string>",
        "alert_id": "<string>",
        "event_status": "Info",
        "event_severity": "Info",
        "event_time": 123,
        "description": "<string>",
        "labels": {}
      }
    ],
    "search_after_ctx": "<string>",
    "total": 123,
    "has_next_page": true
  },
  "error": {
    "code": "<string>",
    "message": "<string>"
  }
}

授权

app_key
string
query
必填

请求体

application/json
start_time
integer
必填
end_time
integer
必填
integration_types
string[]
integration_ids
integer[]
channel_ids
integer[]
severities
string[]

Critical,Info,Warning,支持传多个

orderby
string

默认按照event_time倒序

search_after_ctx
string

游标分页,不设置为第一页。与p参数二选一。详细解释,请参考 关于分页

p
integer
默认值:1

传统分页,不设置从第一页开始,默认值为1,与search_after_ctx参数二选一。基于传统分页时设置,当设置p参数时,plimit不得超过10000** ,否则返回参数错误。详细解释,请参考 关于分页

limit
integer
默认值:20

分页条数。*当设置p参数时,(p-1)limit不得超过10000 ,否则返回参数错误。详细解释,请参考 关于分页

必填范围: 0 <= x <= 100

响应

200 - application/json
request_id
string
必填
data
object
error
object