空间详情
POST
/channel/info
最后修改时间:2023-09-14 06:39:25
请求参数
Authorization
在 query 添加参数
app_key
示例:
app_key: ********************
Header 参数
Content-Type
string
可选
示例值:
application/json
Body 参数application/json
channel_id
integer
channel id
示例
{
"channel_id": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/channel/info?app_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"channel_id": 0
}'
返回响应
🟢200成功
application/json
Body
error
object (DutyError)
可选
code
enum<string>
错误码
枚举值:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
错误描述
data
object (Channel)
可选
channel_id
integer
空间ID
team_id
integer
负责团队ID
channel_name
string
空间名称
description
string
空间描述
auto_resolve_timeout
integer
超时自动恢复时间,单位s
is_private
boolean | null
是否私有访问
flapping
object (Flapping)
故障收敛配置
group
object (Group)
告警聚合配置
status
enum<string>
空间状态
枚举值:
enableddisableddeleted
created_at
integer
创建时间戳
updated_at
integer
更新时间戳
progress_to_incident_cnts
object
活跃故障统计
active_incident_highest_severity
string
活跃故障最高严重程度
示例
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"channel_id": 0,
"team_id": 0,
"channel_name": "string",
"description": "string",
"auto_resolve_timeout": 0,
"is_private": true,
"flapping": {
"is_disabled": true,
"max_changes": "i",
"in_mins": 0,
"mute_mins": 0
},
"group": {
"method": "i",
"cases": [
{
"if": [
{
"key": "title",
"oper": "IN",
"vals": [
"string"
]
}
],
"equals": [
"string"
]
}
],
"equals": [
[
"title"
]
],
"all_equals_required": true,
"time_window": 0,
"storm_threshold": 0
},
"status": "enabled",
"created_at": 0,
"updated_at": 0,
"progress_to_incident_cnts": {
"Triggered": 0,
"Processing": 0
},
"active_incident_highest_severity": "string"
}
}

添加官方技术人员微信
在这里,获得使用上的任何帮助,快速上手企业告警一站式响应平台FlashDuty


修改于 2023-09-14 06:39:25