跳转到主要内容
POST
/
incident
/
alert
/
list
关联告警列表
curl --request POST \
  --url 'https://api.flashcat.cloud/incident/alert/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "incident_id": "<string>",
  "include_events": true,
  "is_active": true,
  "p": 1,
  "limit": 1000
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "data": {
    "items": [
      {
        "alert_id": "<string>",
        "channel_id": 123,
        "channel_name": "<string>",
        "integration_id": 123,
        "integration_name": "<string>",
        "integration_type": "<string>",
        "title": "<string>",
        "alert_key": "<string>",
        "alert_severity": "Info",
        "alert_status": "Info",
        "start_time": 123,
        "last_time": 123,
        "created_at": 123,
        "updated_at": 123,
        "labels": {},
        "title_rule": "<string>",
        "description": "<string>",
        "end_time": 123,
        "events": [
          {
            "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": {}
          }
        ],
        "incident": {
          "incident_id": "<string>",
          "title": "<string>",
          "progress": "Triggered"
        },
        "event_cnt": 123,
        "ever_muted": true
      }
    ],
    "total": 123
  }
}

授权

app_key
string
query
必填

请求体

application/json
incident_id
string
必填

故障ID,类型ObjectID

include_events
boolean

是否包含原始事件数据,了解告警降噪

is_active
boolean | null

筛选告警状态,如果为false,则仅返回以恢复的告警,如果为true,则仅返回未恢复的告警,如果不传,则返回全部

p
integer
默认值:1

页码,从1开始

必填范围: x >= 1
limit
integer
默认值:1000

每页内数据条数

必填范围: x <= 1000

响应

200 - application/json
error
object

仅出现错误时返回

data
object

响应数据