故障列表
POST
https://api.flashcat.cloud/incident/list
最后修改时间:2024-11-18 08:08:34
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/incident/list?app_key' \
--header 'Content-Type: application/json' \
--data-raw '{
"search_after_ctx": "string",
"p": 1,
"limit": 20,
"asc": true,
"progress": "string",
"title": "string",
"channel_ids": [
0
],
"responder_ids": [
0
],
"acker_ids": [
0
],
"creator_ids": [
0
],
"incident_ids": [
"string"
],
"start_time": 0,
"end_time": 0,
"incident_severity": "Critical",
"is_related": true,
"is_snoozed": true,
"is_my_team": true,
"is_my_channel": true,
"labels": {},
"fields": {
"{x}": "string"
}
}'
响应示例响应示例
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"items": [
{
"incident_id": "string",
"start_time": 0,
"end_time": 0,
"last_time": 0,
"ack_time": 0,
"close_time": 0,
"snoozed_before": 0,
"incident_status": "Info",
"incident_severity": "Info",
"progress": "Triggered",
"creator_id": 0,
"closer_id": 0,
"assigned_to": {
"person_ids": [
0
],
"escalate_rule_id": "string",
"escalate_rule_name": "string",
"layer_idx": 0,
"layer_person_reset": {
"0": {
"team_ids": [
0
],
"person_ids": [
0
],
"schedule_to_role_ids": {
"{schedule_id}": [
0
]
}
}
},
"type": "assign"
},
"responders": [
{
"person_id": 0,
"assigned_at": 0,
"acknowledged_at": 0
}
],
"alert_cnt": 0,
"title": "string",
"description": "string",
"impact": "string",
"root_cause": "string",
"resolution": "string",
"num": "string",
"labels": {},
"channel_id": 0,
"channel_name": "string",
"data_source_id": 0,
"data_source_type": "string",
"dedup_key": "string",
"group_method": "i",
"ever_muted": true,
"frequency": "string"
}
],
"search_after_ctx": "string",
"total": 0,
"has_next_page": true
}
}
请求参数
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json