跳转到主要内容
POST
/
alert
/
list-by-ids
告警列表-按ID查询
curl --request POST \
  --url 'https://api.flashcat.cloud/alert/list-by-ids?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "alert_ids": [
    "<string>"
  ]
}
'
{
  "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
      }
    ]
  }
}

授权

app_key
string
query
必填

请求体

application/json
alert_ids
string[]
必填

响应

200 - application/json
error
object

错误信息,仅失败时存在

data
object