跳转到主要内容
POST
/
channel
/
list
空间列表
curl --request POST \
  --url 'https://api.flashcat.cloud/channel/list?app_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "p": 123,
  "limit": 123,
  "asc": true,
  "orderby": "created_at",
  "query": "<string>",
  "team_ids": [
    123
  ],
  "is_my_team": true,
  "is_my_starred": true,
  "is_brief": true,
  "disable_outlier_detection": true
}
'
{
  "error": {
    "code": "<string>",
    "message": "<string>"
  },
  "data": {
    "items": [
      {
        "channel_id": 123,
        "channel_name": "<string>",
        "status": "enabled",
        "created_at": 123,
        "updated_at": 123,
        "team_id": 123,
        "description": "<string>",
        "auto_resolve_timeout": 123,
        "auto_resolve_mode": "trigger",
        "is_private": true,
        "flapping": {
          "is_disabled": true,
          "max_changes": "i",
          "in_mins": 123,
          "mute_mins": 123
        },
        "group": {
          "method": "i",
          "cases": [
            {
              "if": [
                {
                  "key": "title",
                  "oper": "IN",
                  "vals": [
                    "<string>"
                  ]
                }
              ],
              "equals": [
                "title"
              ]
            }
          ],
          "equals": [
            [
              "title"
            ]
          ],
          "all_equals_required": true,
          "time_window": 123,
          "storm_threshold": 123,
          "i_keys": [
            "title"
          ],
          "i_score_threshold": 0.9,
          "storm_thresholds": [
            5001
          ]
        },
        "progress_to_incident_cnts": {
          "Triggered": 123,
          "Processing": 123
        },
        "active_incident_highest_severity": "<string>",
        "默认开启新奇告警,没有该字段表示开启新奇告警": true
      }
    ],
    "has_next_page": true,
    "total": 123
  }
}

授权

app_key
string
query
必填

请求头

Content-Type
string

请求体

application/json
p
integer

页码,从1开始

limit
integer

分页条数

asc
boolean

是否升序

orderby
enum<string>

排序依据

可用选项:
created_at,
ranking,
updated_at,
channel_name,
last_incident_at
query
string

查询关键词,检索范围:空间名称和描述

team_ids
integer[]

团队ID列表,筛选此团队管理的协作空间

is_my_team
boolean

我团队的,筛选我所在团队下属的空间,与team_ids同时传入取交集

is_my_starred
boolean

我收藏的,筛选我个人收藏的空间

is_brief
boolean

仅返回名称和ID信息,运行更快。指定此参数时,系统将忽略p和limit参数,返回所有空间的信息

disable_outlier_detection
boolean

默认开启新奇告警,没有该字段表示开启新奇告警

响应

200 - application/json
error
object

仅出现错误时返回

data
object

响应数据