告警详情
POST
https://api.flashcat.cloud/alert/info
最后修改时间:2023-09-14 07:15:52
请求参数
Authorization
在 query 添加参数
app_key
示例:
app_key: ********************
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
alert_id
string
告警ID
示例
{
"alert_id": "string"
}
示例代码
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/alert/info?app_key' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
error
object (DutyError)
错误信息
code
enum<string>
错误码
枚举值:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
错误描述
data
object (Alert)
数据对象
alert_id
string
告警ID
channel_id
integer
协作空间ID
channel_name
string
协作空间名称
data_source_id
integer
集成ID
data_source_name
string
集成名称
data_source_type
string
集 成类型
data_source_ref_id
string
集成关联ID
title
string
标题
title_rule
string
标题规则
description
string
描述
alert_key
string
事件关联依据
alert_severity
enum<string>
严重程度
枚举值:
InfoWarningCritical
alert_status
enum<string>
告警状态
枚举值:
InfoWarningCriticalOk
progress
enum<string>
处理进度
枚举值:
TriggeredProcessingClosed
start_time
integer
首次触发时间
last_time
integer
上次合并事件时间
end_time
integer
告警结束时间
close_time
integer
人工结束处理时间
created_at
integer
创建时间
updated_at
integer
更新时间
labels
object (Labels)
标签列表
events
array[object (AlertEvent) {11}]
关联事件
responder_id
integer
处理人ID
incident
object
关联故障
event_cnt
integer
累计聚合事件数量
ever_muted
boolean
是否被静默/抑制过
示例
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"alert_id": "string",
"channel_id": 0,
"channel_name": "string",
"data_source_id": 0,
"data_source_name": "string",
"data_source_type": "string",
"data_source_ref_id": "string",
"title": "string",
"title_rule": "string",
"description": "string",
"alert_key": "string",
"alert_severity": "Info",
"alert_status": "Info",
"progress": "Triggered",
"start_time": 0,
"last_time": 0,
"end_time": 0,
"close_time": 0,
"created_at": 0,
"updated_at": 0,
"labels": {},
"events": [
{
"event_id": "string",
"data_source_id": 0,
"channel_id": 0,
"title": "string",
"title_rule": "string",
"description": "string",
"alert_id": "string",
"event_status": "Info",
"event_severity": "Info",
"event_time": 0,
"labels": {}
}
],
"responder_id": 0,
"incident": {
"incident_id": "string",
"title": "string"
},
"event_cnt": 0,
"ever_muted": true
}
}

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


修改于 2023-09-14 07:15:52