更新时间:2024-05-31 GMT+08:00
分享

查询WarRoom信息

功能介绍

查询warroom信息

URI

POST /v1/external/warrooms/list

请求参数

表1 请求Body参数

参数

是否必选

参数类型

描述

limit

Long

limit

最小值:0

最大值:1000

缺省值:0

offset

Long

查询数量 最小值0 最大值1000

最小值:0

最大值:9223372036854775807

缺省值:10

incident_num

String

事件单号 精确查询

最小长度:0

最大长度:64

title

String

warroom名称 模糊查询

最小长度:0

最大长度:1000

region_code_list

Array of strings

区域 多选

最小长度:0

最大长度:200

数组长度:0 - 1000

incident_levels

Array of strings

事件级别 多选

最小长度:0

最大长度:32

数组长度:0 - 1000

impacted_application_ids

Array of strings

影响应用id

最小长度:0

最大长度:200

数组长度:0 - 1000

admin

Array of strings

warroom管理员

最小长度:0

最大长度:200

数组长度:0 - 1000

status

Array of strings

warroom状态

最小长度:0

最大长度:10

数组长度:0 - 100

triggered_start_time

Long

拉起开始时间 默认前30天

最小值:0

最大值:9223372036854775807

triggered_end_time

Long

拉起结束时间 默认当前时间

最小值:0

最大值:9223372036854775807

occur_start_time

Long

发生开始时间

最小值:0

最大值:9223372036854775807

occur_end_time

Long

发生结束时间

最小值:0

最大值:9223372036854775807

recover_start_time

Long

恢复开始时间

最小值:0

最大值:9223372036854775807

recover_end_time

Long

恢复结束时间

最小值:0

最大值:9223372036854775807

notification_level

Array of strings

通报级别

最小长度:0

最大长度:32

数组长度:0 - 1000

enterprise_project_ids

Array of strings

企业项目id

最小长度:0

最大长度:64

数组长度:0 - 500

war_room_num

String

war Room 单号 前端使用

最小长度:0

最大长度:255

statistic_flag

Boolean

是否统计,false 返回基本信息;true接口只返回统计结果:total_num,running_num,closed_num

缺省值:false

响应参数

状态码: 200

表2 响应Body参数

参数

参数类型

描述

provider_code

String

服务标识

缺省值:4

最小长度:3

最大长度:3

error_code

String

请求响应代码,范围:0000~9999,正常时取值:0

最小长度:1

最大长度:20

error_msg

String

请求响应描述

最小长度:0

最大长度:10240

data

data object

响应数据

表3 data

参数

参数类型

描述

list

Array of WarRoomTenantInfo objects

warroom信息

数组长度:0 - 1000

total

Long

总数

最小值:0

最大值:9223372036854775807

running_num

Long

进行中warroom总数

最小值:0

最大值:9223372036854775807

closed_num

Long

已关闭warroom总数

最小值:0

最大值:9223372036854775807

total_num

Long

warroom总数

最小值:0

最大值:9223372036854775807

表4 WarRoomTenantInfo

参数

参数类型

描述

id

String

主键

最小长度:0

最大长度:100

title

String

标题

最小长度:0

最大长度:255

admin

String

Warroom管理员

最小长度:0

最大长度:255

recover_member

Array of strings

恢复成员

最小长度:0

最大长度:255

数组长度:0 - 1000

recover_leader

Array of strings

主恢复责任人

最小长度:0

最大长度:255

数组长度:0 - 1000

incident

WarRoomIncident object

事件

source

String

事件来源

最小长度:0

最大长度:255

regions

Array of regions objects

影响的Region

数组长度:0 - 1000

change_num

String

变更单号

最小长度:0

最大长度:255

occur_time

Long

开始时间

最小值:0

最大值:9223372036854775807

recover_time

Long

故障恢复时间

最小值:0

最大值:9223372036854775807

fault_cause

String

故障原因

最小长度:0

最大长度:255

create_time

Long

添加时间

最小值:0

最大值:9223372036854775807

first_report_time

Long

首次通报时间

最小值:0

最大值:9223372036854775807

recovery_notification_time

Long

恢复通报时间

最小值:0

最大值:9223372036854775807

fault_impact

String

故障影响

最小长度:0

最大长度:255

description

String

warRoom描述

最小长度:0

最大长度:255

circular_level

String

通报级别 租户区同事件级别

最小长度:0

最大长度:32

war_room_status

WarRoomEnumeration object

warroom 状态

impacted_application

Array of impacted_application objects

影响应用

数组长度:0 - 1000

processing_duration

Long

处理时长(分钟)

最小值:0

最大值:9223372036854775807

restoration_duration

Long

恢复时长(分钟)

最小值:0

最大值:9223372036854775807

war_room_num

String

warroom 单号

最小长度:0

最大长度:255

enterprise_project_id

String

企业项目id

最小长度:0

最大长度:64

表5 WarRoomIncident

参数

参数类型

描述

id

String

主键

最小长度:0

最大长度:100

incident_id

String

事件id

最小长度:0

最大长度:32

is_change_event

Boolean

是否变更事件

failure_level

String

事件级别

最小长度:0

最大长度:32

incident_url

String

事件单号链接

最小长度:0

最大长度:20000

表6 regions

参数

参数类型

描述

code

String

主键

最小长度:0

最大长度:100

name

String

名称

最小长度:0

最大长度:255

表7 WarRoomEnumeration

参数

参数类型

描述

id

String

枚举值id

最小长度:0

最大长度:255

name_zh

String

枚举值中文名

最小长度:0

最大长度:255

name_en

String

枚举值英文名

最小长度:0

最大长度:255

type

String

枚举类型

最小长度:0

最大长度:255

表8 impacted_application

参数

参数类型

描述

id

String

主键

最小长度:0

最大长度:100

name

String

名字

最小长度:0

最大长度:255

状态码: 400

表9 响应Body参数

参数

参数类型

描述

provider_code

String

服务标识

缺省值:4

最小长度:3

最大长度:3

error_code

String

请求响应代码,范围:0000~9999,正常时取值:0

最小长度:1

最大长度:20

error_msg

String

请求响应描述

最小长度:0

最大长度:10240

data

Object

响应数据

请求示例

{
  "marker" : 10,
  "page_size" : 1,
  "incident_num" : "string",
  "title" : "string",
  "change_num" : "string",
  "region_ids" : [ 0 ],
  "level_names" : [ "string" ],
  "impacted_services_ids" : [ 0 ],
  "root_cause_service_ids" : [ 0 ],
  "site_ids" : [ 0 ],
  "admin" : [ 0 ],
  "status" : [ 0 ],
  "triggered_start_time" : 0,
  "triggered_end_time" : 0,
  "occur_start_time" : 0,
  "occur_end_time" : 0,
  "recover_start_time" : 0,
  "recover_end_time" : 0,
  "effectiveness" : [ "string" ],
  "recover_leader_id" : [ 0 ],
  "pre_warning_briefing_p2" : true,
  "is_verify" : true
}

响应示例

状态码

状态码

描述

200

查询成功响应

400

请求失败

分享:

    相关文档

    相关产品