跳转到主要内容
POST
/
route
/
preview
路由预览
curl --request POST \
  --url 'https://api.flashcat.cloud/route/preview?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "alert_ids": [
    "98",
    "88",
    "65"
  ],
  "cases": [
    {
      "if": [
        {
          "key": "laboris",
          "oper": "ipsum sunt",
          "vals": [
            "aliquip proident amet",
            "sed cillum irure tempor anim",
            "sunt sint occaecat aliqua anim"
          ]
        }
      ],
      "channel_ids": [
        46
      ],
      "fallthrough": false,
      "routing_mode": "ut Ut Excepteur commodo",
      "name_mapping_label": "谬磊"
    },
    {
      "if": [
        {
          "key": "nostrud ex minim ad",
          "oper": "sunt minim consequat est elit",
          "vals": [
            "cillum consectetur nostrud dolore deserunt"
          ]
        }
      ],
      "channel_ids": [
        8
      ],
      "fallthrough": false,
      "routing_mode": "elit laborum voluptate velit",
      "name_mapping_label": "僪斌"
    },
    {
      "if": [
        {
          "key": "ad proident culpa",
          "oper": "consectetur officia Excepteur deserunt",
          "vals": [
            "non voluptate in quis",
            "voluptate eu et"
          ]
        },
        {
          "key": "Duis dolore culpa",
          "oper": "reprehenderit laboris",
          "vals": [
            "sit exercitation",
            "occaecat pariatur veniam officia nulla",
            "sit consectetur amet ad"
          ]
        },
        {
          "key": "ut sed fugiat sunt mollit",
          "oper": "anim irure ullamco sit Ut",
          "vals": [
            "sit ipsum est reprehenderit"
          ]
        }
      ],
      "channel_ids": [
        19,
        68
      ],
      "fallthrough": false,
      "routing_mode": "mollit eu",
      "name_mapping_label": "盈超"
    }
  ],
  "default": {
    "channel_ids": [
      78,
      40
    ]
  }
}
'
{
  "error": {},
  "data": {
    "items": [
      {
        "alert_id": "<string>",
        "alert_title": "<string>",
        "start_time": 123,
        "matched_cases": [
          "<string>"
        ]
      }
    ]
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
alert_ids
string[]
必填

最多20个

route
object
必填

响应

200 - application/json
error
object
data
object