跳转至

获取故障详情



GET /api/v1/incidents/{incident_uuid}/get

概述

获取故障详情、关联摘要及生命周期统计。

调用前和使用步骤

Key需命中routine.defaultAccess或incidents.incidentsQuery之一。只操作当前API Key所属空间。本模块故障UUID取故障列表的content.data[].uuid,通常incident_前缀。公开入口不接受workspaceUUID/workspaceUUIDs,不应照搬前台/内部接口的跨空间参数。

只读当前空间未删除故障,返回完整来源resourceContent、附件、处理人、匹配值班配置、最近操作、本轮升级记录与metrics;不返回原始附件内容或承诺通知已送达。详情scheduleInfo是匹配配置,不能据此认定某成员此刻当班;标签和维度都配置时按任一匹配纳入,详情的纯标签匹配需要全部标签满足,和列表纯标签的兼容任一命中不同。

业务incidentsStatus与数据库status、累计持续秒cumulativeTime与metrics.currentCycle.durationSeconds含义不同。metrics按操作历史重建,旧历史不足可返回null,不把null当0。响应不提供专门tagInfo列表;标签关联在写入响应或标签管理核对。

路由参数

参数名 类型 必选 说明
incident_uuid string Y 当前工作空间故障UUID,不是告警事件ID、SLO UUID或评论UUID。
允许 null: False
例子: incident_example
获取或填写方式: 从故障列表获取content.data[].uuid。

请求头

参数名 类型 必选 说明
DF-API-KEY string Y 工作空间的 OpenAPI 鉴权凭据。
例子: <DF-API-KEY>
获取或填写方式: 从目标工作空间的 API Key 管理获取有该操作权限的 OpenAPI Key。

请求例子

curl --get 'https://openapi.guance.com/api/v1/incidents/incident_example/get' \
  -H 'DF-API-KEY: <DF-API-KEY>'

响应

HTTP 200,application/json。下方示例展示可直接读取的主要字段。

字段 类型 说明
content.id integer 或 null 数据库行ID;业务定位用uuid,提交前快照可null。
content.uuid string 该资源UUID。
content.status integer 数据库状态,0活动/3删除;与故障业务状态incidentsStatus不同。
content.creator string 创建主体,API Key一般为wsak_资源UUID。
content.updator string 最近更新主体,未更新可为空。
content.createAt integer Unix秒创建时间。
content.updateAt integer Unix秒最近更新时间。
content.deleteAt integer Unix秒删除时间;未删除-1。
content.workspaceUUID string 故障所属空间。
content.name string 故障名称。
content.level string 故障等级UUID,system_level_0等或issl_/isslm_历史标识;不等于等级显示名。
content.description string 或 null 故障描述。
content.source string 故障来源;本公开人工创建当前为external,不表示使用External API鉴权。
content.resourceCategory string 来源资源类别,自动故障按来源填写,人工创建公开入口通常空。
content.resourceType string 来源资源类型,聚合故障为incident_aggregation;人工创建通常空。
content.resourceUUID string 来源资源UUID,人工创建通常空。
content.resourceUrl string 保存的来源URL,响应字段首字母l小写,区别请求resourceURL。
content.resourceContent object 或 JSON 来源原始内容,类型随监控器/事件/聚合来源而变化;列表会移除此字段。
content.eventRelations array<object> 当前故障生命周期关联事件快照;重新打开新一轮可清空。
content.eventRelations[] object 来源事件关联描述,按事件类型返回动态字段,不是本接口创建故障时可配置对象。
content.eventRelations[].自定义字段 JSON 事件生产方保存的关联键值,先按实际类型读取。
content.resourceIdentity string 来源聚合/子标识,人工创建可空。
content.assigner array<string> 处理人标识列表,可能含acnt_/group_/notify_;不保证所有标识仍有效。
content.assigner[] string 一个保存的处理人/分组/通知对象标识。
content.incidentsStatus string 业务状态open/working/resolved/closed。
content.statusTime object 当前生命周期已记录的状态时间,Unix秒;并非每个状态都存在。
content.statusTime.open integer 本轮打开时间。
content.statusTime.working integer 本轮进入处理时间,可能省略。
content.statusTime.resolved integer 本轮恢复时间,可能省略。
content.statusTime.closed integer 本轮关闭时间,可能省略。
content.statusChangeTime integer 当前生命周期触发时间,重开时更新;不等同每次字段修改时间。
content.cumulativeTime integer 累计故障持续秒数;详情/列表会结合当前状态实时计算,写入响应可能为保存值。
content.eventCount integer 关联事件计数,人工创建通常0。
content.eventUpdateAt integer 来源最近事件更新时间,Unix秒,人工创建通常0。
content.dimensionTag object 维度名称到值的JSON映射。
content.dimensionTag.自定义键 JSON 调用方或来源保存的维度值,推荐字符串;host/service等另有索引字段。
content.extend object 或 JSON 故障扩展数据,自动来源可能附带聚合/事件等配置;创建公开入口目前不保存传入extend,修改才可整体替换。
content.extend.linkList array<object> 业务链接数组,保存后展示用途,不由本接口访问外部URL。
content.extend.linkList[].name string 链接显示名。
content.extend.linkList[].link string 链接地址。
content.extend.aggregationRuleUUID string 聚合来源规则UUID,如存在可用于filters.aggregationRuleUUID。
content.extend.自定义字段 JSON 其它保存的来源扩展字段,未承诺固定结构;整体替换前复制完整现有对象。
content.dtHost string 或 null host索引维度,来源于创建时dimensionTag;修改公开入口的dimensionTag目前不生效。
content.dtService string 或 null service索引维度,来源于创建时dimensionTag;修改公开入口的dimensionTag目前不生效。
content.dtResource string 或 null resource索引维度,来源于创建时dimensionTag;修改公开入口的dimensionTag目前不生效。
content.dtPodName string 或 null pod_name索引维度,来源于创建时dimensionTag;修改公开入口的dimensionTag目前不生效。
content.dtAppName string 或 null app_name索引维度,来源于创建时dimensionTag;修改公开入口的dimensionTag目前不生效。
content.dtAppId string 或 null app_id索引维度,来源于创建时dimensionTag;修改公开入口的dimensionTag目前不生效。
content.dtEnv string 或 null env索引维度,来源于创建时dimensionTag;修改公开入口的dimensionTag目前不生效。
content.dtUrl string 或 null url索引维度,来源于创建时dimensionTag;修改公开入口的dimensionTag目前不生效。
content.eventRelations[].df_fault_id string 事件生命周期ID,从事件df_fault_id或兼容df_status_fault_id生成;不是故障uuid。
content.eventRelations[].status string 该关联事件快照的df_status状态,例如critical/ok,区别故障incidentsStatus。
content.eventRelations[].aggregationValues object 仅按聚合规则关联时可有,聚合键到对应事件维度值的映射。
content.eventRelations[].aggregationValues.聚合键 JSON 聚合规则指定维度在事件中的值,按实际保存类型读取。
content.assignerInfo array<object> 实际解析成功的处理人摘要;账号完整身份字段,分组/通知对象只含uuid/name,未知标识可被忽略。
content.assignerInfo[].uuid string 主体UUID;系统回复主体可能为空或系统标识。
content.assignerInfo[].status integer 主体状态。
content.assignerInfo[].wsAccountStatus integer 空间成员状态;Key取Key状态,不是故障状态。
content.assignerInfo[].username string 登录名/Key名/系统名。
content.assignerInfo[].name string 显示名,系统AI显示名使用站点配置。
content.assignerInfo[].iconUrl string 头像URL,系统摘要可省略。
content.assignerInfo[].email string 联系邮箱;Key摘要可能为Key UUID,并非可投递邮箱。
content.assignerInfo[].mobile string 联系手机号,可为空。
content.assignerInfo[].countryCode string 区号,系统摘要可省略。
content.assignerInfo[].acntWsNickname string 空间昵称,系统摘要可省略。
content.workspaceInfo object 故障所属空间摘要。
content.workspaceInfo.uuid string 所属空间UUID。
content.workspaceInfo.name string 空间名称,无法解析可空。
content.regionCode string 当前站点代码。
content.isExternalWorkspace boolean 是否来自其他空间;本OpenAPI公开入口不接跨空间目标,通常false。
content.aggregationRuleInfo object 或 null 仅聚合故障附加,有效规则摘要或null。
content.aggregationRuleInfo.uuid string 聚合规则UUID。
content.aggregationRuleInfo.name string 聚合规则名。
content.aggregationRuleInfo.status integer 规则数据库状态。
content.scheduleInfo array<object> 当前匹配到的值班配置原始摘要,不代表此刻有人在班或通知已实际送达;详情与列表的标签匹配兼容规则有差异。
content.scheduleInfo[].id integer 或 null 数据库行ID;业务定位用uuid,提交前快照可null。
content.scheduleInfo[].uuid string 该资源UUID。
content.scheduleInfo[].status integer 数据库状态,0活动/3删除;与故障业务状态incidentsStatus不同。
content.scheduleInfo[].creator string 创建主体,API Key一般为wsak_资源UUID。
content.scheduleInfo[].updator string 最近更新主体,未更新可为空。
content.scheduleInfo[].createAt integer Unix秒创建时间。
content.scheduleInfo[].updateAt integer Unix秒最近更新时间。
content.scheduleInfo[].deleteAt integer Unix秒删除时间;未删除-1。
content.scheduleInfo[].workspaceUUID string 所属空间。
content.scheduleInfo[].name string 值班名称。
content.scheduleInfo[].timezone string IANA时区。
content.scheduleInfo[].start string 兼容的每日工作开始时刻HH:MM,按日程timezone解释,不是日期或Unix时间。
content.scheduleInfo[].end string 兼容的每日工作结束时刻HH:MM;有效日期边界另见extend.effectiveTime。
content.scheduleInfo[].tagFilter array<string> 匹配标签UUID数组。
content.scheduleInfo[].tagFilter[] string 标签UUID。
content.scheduleInfo[].dimensionFilter string 维度匹配查询表达式。
content.scheduleInfo[].notifyTargets array<string> 通知目标标识列表。
content.scheduleInfo[].notifyTargets[] string 账号/分组/通知对象等目标标识。
content.scheduleInfo[].strategyConfig array<object> 升级策略配置,按空间保存版本读取。
content.scheduleInfo[].strategyConfig[] object 一条配置策略,故障读取接口不展开执行预览。
content.scheduleInfo[].strategyConfig[].自定义字段 JSON 保存的策略级别/等待/通知配置,完整业务配置请在值班管理读取。
content.scheduleInfo[].extend object 排班/轮转等扩展配置。
content.scheduleInfo[].extend.自定义字段 JSON 保存的值班扩展键值,不能按本接口修改。
content.scheduleInfo[].isDefault boolean 是否默认值班。
content.scheduleInfo[].rotationUpdateAt integer 轮转变更Unix秒时间,历史可-1。
content.scheduleInfo[].agentUUIDs array<string> 扩展中的关联Agent UUID数组。
content.scheduleInfo[].agentUUIDs[] string 一个Agent UUID。
content.scheduleInfo[].strategyConfig[].uuid string 策略UUID。
content.scheduleInfo[].strategyConfig[].name string 策略名称。
content.scheduleInfo[].strategyConfig[].strategy array<object> 该策略的升级层级配置数组。
content.scheduleInfo[].strategyConfig[].strategy[].level integer 层级序号,通常从0开始。
content.scheduleInfo[].strategyConfig[].strategy[].levelUpTime integer 从故障状态触发时间起的升级等待秒数。
content.scheduleInfo[].strategyConfig[].strategy[].incidentsLevel array<string> 适用故障等级UUID列表。
content.scheduleInfo[].strategyConfig[].strategy[].incidentsLevel[] string 一个等级UUID。
content.scheduleInfo[].strategyConfig[].strategy[].incidentsStatus array<string> 适用故障状态列表,如open/working。
content.scheduleInfo[].strategyConfig[].strategy[].incidentsStatus[] string 一个故障状态。
content.scheduleInfo[].strategyConfig[].strategy[].ifRepeatNotify boolean 是否重复通知。
content.scheduleInfo[].strategyConfig[].strategy[].repeatNotifyInterval integer 重复通知间隔秒。
content.scheduleInfo[].strategyConfig[].strategy[].notifyConfig array<object> 该层通知配置数组。
content.scheduleInfo[].strategyConfig[].strategy[].notifyConfig[].notifyObjectType string 通知目标分类,如member/object/group,按保存版本读取。
content.scheduleInfo[].strategyConfig[].strategy[].notifyConfig[].notifyObject array<string> 通知目标标识;watchkeeper表示运行时当前值班人,不是固定账号UUID。
content.scheduleInfo[].strategyConfig[].strategy[].notifyConfig[].notifyObject[] string 一个目标账号/分组/通知对象标识或watchkeeper。
content.scheduleInfo[].strategyConfig[].strategy[].notifyConfig[].notifyMethod array<string> 通知方式,常见mobile电话/message短信/email邮件;对象通道按对象配置执行。
content.scheduleInfo[].strategyConfig[].strategy[].notifyConfig[].notifyMethod[] string 一个通知方式。
content.scheduleInfo[].extend.enableRotateNotification boolean 是否轮换通知对象。
content.scheduleInfo[].extend.rotationCycle string day/week/month/workDay/weekend/customDay/customWeek之一;历史可省略。
content.scheduleInfo[].extend.rotationInterval integer customDay轮转间隔天数1至31,customWeek周数1至4。
content.scheduleInfo[].extend.effectiveTime object 日程有效期配置。
content.scheduleInfo[].extend.effectiveTime.start integer 保存的有效开始Unix秒,缺省不设开始限制。
content.scheduleInfo[].extend.effectiveTime.end integer 保存的有效结束Unix秒,缺省不设结束限制。
content.scheduleInfo[].extend.workTime object 工作时间配置,缺省时由兼容start/end和轮转周期推导。
content.scheduleInfo[].extend.workTime.mode string allDay全天或specificTimes指定时间。
content.scheduleInfo[].extend.workTime.periods array<object> 指定工作时间段数组。
content.scheduleInfo[].extend.workTime.periods[].weekdays array<integer> 适用星期1周一至7周日。
content.scheduleInfo[].extend.workTime.periods[].weekdays[] integer 1至7之一。
content.scheduleInfo[].extend.workTime.periods[].start string 当地日开始HH:MM。
content.scheduleInfo[].extend.workTime.periods[].end string 当地日结束HH:MM。
content.scheduleInfo[].extend.agentUUIDs array<string> 关联Agent UUID,实体另有顶层agentUUIDs投影。
content.scheduleInfo[].extend.agentUUIDs[] string 一个Agent UUID。
content.operateRecord object 最近操作记录摘要,无记录时仍可有operatorInfo={}。
content.operateRecord.uuid string 操作记录UUID。
content.operateRecord.createAt integer 记录Unix秒时间。
content.operateRecord.incidentsUUID string 所属故障UUID。
content.operateRecord.workspaceUUID string 所属空间。
content.operateRecord.content string 本地化操作描述;未承诺可机器解析,按operateType/extend判断。
content.operateRecord.extend object 操作扩展,随operateType变化。
content.operateRecord.extend.before JSON 状态/等级/处理人变更前值,按操作类型可能字符串或数组。
content.operateRecord.extend.after JSON 状态/等级/处理人变更后值。
content.operateRecord.extend.source string 操作来源;缺省studio入口可能不含此键。
content.operateRecord.extend.自定义字段 JSON 升级策略等动作携带的扩展元数据,保留原值不作为请求参数。
content.operateRecord.operator string 实际操作人账号/Key/系统标识。
content.operateRecord.operateType string create/status_update/level_update/assigner_update/notify_level_update等,客户端应兼容扩展。
content.operateRecord.operatorInfo object 主体摘要,无对应信息{}。
content.operateRecord.operatorInfo.uuid string 主体UUID;系统回复主体可能为空或系统标识。
content.operateRecord.operatorInfo.status integer 主体状态。
content.operateRecord.operatorInfo.wsAccountStatus integer 空间成员状态;Key取Key状态,不是故障状态。
content.operateRecord.operatorInfo.username string 登录名/Key名/系统名。
content.operateRecord.operatorInfo.name string 显示名,系统AI显示名使用站点配置。
content.operateRecord.operatorInfo.iconUrl string 头像URL,系统摘要可省略。
content.operateRecord.operatorInfo.email string 联系邮箱;Key摘要可能为Key UUID,并非可投递邮箱。
content.operateRecord.operatorInfo.mobile string 联系手机号,可为空。
content.operateRecord.operatorInfo.countryCode string 区号,系统摘要可省略。
content.operateRecord.operatorInfo.acntWsNickname string 空间昵称,系统摘要可省略。
content.operateRecord.extend.before_info object 或 array 变更前等级摘要或处理人摘要数组;状态变更通常{},等级before本身是显示名称。
content.operateRecord.extend.after_info object 或 array 变更后等级/处理人摘要;按实际operateType和类型读取。
content.operateRecord.extend.schedule_name string 通知升级操作中的值班/策略名称摘要。
content.operateRecord.extend.incidents_status string 通知升级时故障业务状态。
content.operateRecord.extend.strategy_info object 通知升级策略快照。
content.operateRecord.extend.strategy_info.name string 所属日程名称。
content.operateRecord.extend.strategy_info.strategy object 本次选中层级及通知配置快照。
content.operateRecord.extend.notify_info object 通知目标标识到当时目标资料的映射,账号/分组/通知对象形状不同。
content.operateRecord.extend.notify_info.目标标识 object 或 string 该目标当时名称/邮箱/成员等资料,按实际类型读取;不表示成功投递。
content.operateRecord.extend.is_muted boolean 命中故障通知静默时true,即使有升级记录也未实际发送。
content.operateRecord.extend.mute_rule_info object 命中的静默规则摘要。
content.operateRecord.extend.mute_rule_info.uuid string 静默规则UUID。
content.operateRecord.extend.mute_rule_info.name string 静默规则名称。
content.operateRecord.extend.muted_notify_info object 原计划发送但被静默的目标资料映射。
content.operateRecord.extend.muted_notify_info.目标标识 object 或 string 被静默目标资料。
content.operateRecord.extend.strategy_info.strategy.level integer 层级序号,通常从0开始。
content.operateRecord.extend.strategy_info.strategy.levelUpTime integer 从故障状态触发时间起的升级等待秒数。
content.operateRecord.extend.strategy_info.strategy.incidentsLevel array<string> 适用故障等级UUID列表。
content.operateRecord.extend.strategy_info.strategy.incidentsLevel[] string 一个等级UUID。
content.operateRecord.extend.strategy_info.strategy.incidentsStatus array<string> 适用故障状态列表,如open/working。
content.operateRecord.extend.strategy_info.strategy.incidentsStatus[] string 一个故障状态。
content.operateRecord.extend.strategy_info.strategy.ifRepeatNotify boolean 是否重复通知。
content.operateRecord.extend.strategy_info.strategy.repeatNotifyInterval integer 重复通知间隔秒。
content.operateRecord.extend.strategy_info.strategy.notifyConfig array<object> 该层通知配置数组。
content.operateRecord.extend.strategy_info.strategy.notifyConfig[].notifyObjectType string 通知目标分类,如member/object/group,按保存版本读取。
content.operateRecord.extend.strategy_info.strategy.notifyConfig[].notifyObject array<string> 通知目标标识;watchkeeper表示运行时当前值班人,不是固定账号UUID。
content.operateRecord.extend.strategy_info.strategy.notifyConfig[].notifyObject[] string 一个目标账号/分组/通知对象标识或watchkeeper。
content.operateRecord.extend.strategy_info.strategy.notifyConfig[].notifyMethod array<string> 通知方式,常见mobile电话/message短信/email邮件;对象通道按对象配置执行。
content.operateRecord.extend.strategy_info.strategy.notifyConfig[].notifyMethod[] string 一个通知方式。
content.attachments array<object> 已关联附件摘要,未关联[]。
content.attachments[].uuid string 附件UUID;通过本模块downloadAttachment接口下载。
content.attachments[].fileName string 原始文件名。
content.attachments[].fileSuffix string 文件扩展名,不带点;不返回文件内容/直链。
content.upgradeInfo array<object> 本轮open以来的notify_level_update操作记录,不等于待执行升级计划。
content.upgradeInfo[].id integer 或 null 数据库行ID;业务定位用uuid,提交前快照可null。
content.upgradeInfo[].uuid string 该资源UUID。
content.upgradeInfo[].status integer 数据库状态,0活动/3删除;与故障业务状态incidentsStatus不同。
content.upgradeInfo[].creator string 创建主体,API Key一般为wsak_资源UUID。
content.upgradeInfo[].updator string 最近更新主体,未更新可为空。
content.upgradeInfo[].createAt integer Unix秒创建时间。
content.upgradeInfo[].updateAt integer Unix秒最近更新时间。
content.upgradeInfo[].deleteAt integer Unix秒删除时间;未删除-1。
content.upgradeInfo[].incidentsUUID string 所属故障UUID。
content.upgradeInfo[].workspaceUUID string 所属空间。
content.upgradeInfo[].content string 本地化操作描述;未承诺可机器解析,按operateType/extend判断。
content.upgradeInfo[].extend object 操作扩展,随operateType变化。
content.upgradeInfo[].extend.before JSON 状态/等级/处理人变更前值,按操作类型可能字符串或数组。
content.upgradeInfo[].extend.after JSON 状态/等级/处理人变更后值。
content.upgradeInfo[].extend.source string 操作来源;缺省studio入口可能不含此键。
content.upgradeInfo[].extend.自定义字段 JSON 升级策略等动作携带的扩展元数据,保留原值不作为请求参数。
content.upgradeInfo[].operator string 实际操作人账号/Key/系统标识。
content.upgradeInfo[].operateType string create/status_update/level_update/assigner_update/notify_level_update等,客户端应兼容扩展。
content.upgradeInfo[].extend.before_info object 或 array 变更前等级摘要或处理人摘要数组;状态变更通常{},等级before本身是显示名称。
content.upgradeInfo[].extend.after_info object 或 array 变更后等级/处理人摘要;按实际operateType和类型读取。
content.upgradeInfo[].extend.schedule_name string 通知升级操作中的值班/策略名称摘要。
content.upgradeInfo[].extend.incidents_status string 通知升级时故障业务状态。
content.upgradeInfo[].extend.strategy_info object 通知升级策略快照。
content.upgradeInfo[].extend.strategy_info.name string 所属日程名称。
content.upgradeInfo[].extend.strategy_info.strategy object 本次选中层级及通知配置快照。
content.upgradeInfo[].extend.notify_info object 通知目标标识到当时目标资料的映射,账号/分组/通知对象形状不同。
content.upgradeInfo[].extend.notify_info.目标标识 object 或 string 该目标当时名称/邮箱/成员等资料,按实际类型读取;不表示成功投递。
content.upgradeInfo[].extend.is_muted boolean 命中故障通知静默时true,即使有升级记录也未实际发送。
content.upgradeInfo[].extend.mute_rule_info object 命中的静默规则摘要。
content.upgradeInfo[].extend.mute_rule_info.uuid string 静默规则UUID。
content.upgradeInfo[].extend.mute_rule_info.name string 静默规则名称。
content.upgradeInfo[].extend.muted_notify_info object 原计划发送但被静默的目标资料映射。
content.upgradeInfo[].extend.muted_notify_info.目标标识 object 或 string 被静默目标资料。
content.upgradeInfo[].extend.strategy_info.strategy.level integer 层级序号,通常从0开始。
content.upgradeInfo[].extend.strategy_info.strategy.levelUpTime integer 从故障状态触发时间起的升级等待秒数。
content.upgradeInfo[].extend.strategy_info.strategy.incidentsLevel array<string> 适用故障等级UUID列表。
content.upgradeInfo[].extend.strategy_info.strategy.incidentsLevel[] string 一个等级UUID。
content.upgradeInfo[].extend.strategy_info.strategy.incidentsStatus array<string> 适用故障状态列表,如open/working。
content.upgradeInfo[].extend.strategy_info.strategy.incidentsStatus[] string 一个故障状态。
content.upgradeInfo[].extend.strategy_info.strategy.ifRepeatNotify boolean 是否重复通知。
content.upgradeInfo[].extend.strategy_info.strategy.repeatNotifyInterval integer 重复通知间隔秒。
content.upgradeInfo[].extend.strategy_info.strategy.notifyConfig array<object> 该层通知配置数组。
content.upgradeInfo[].extend.strategy_info.strategy.notifyConfig[].notifyObjectType string 通知目标分类,如member/object/group,按保存版本读取。
content.upgradeInfo[].extend.strategy_info.strategy.notifyConfig[].notifyObject array<string> 通知目标标识;watchkeeper表示运行时当前值班人,不是固定账号UUID。
content.upgradeInfo[].extend.strategy_info.strategy.notifyConfig[].notifyObject[] string 一个目标账号/分组/通知对象标识或watchkeeper。
content.upgradeInfo[].extend.strategy_info.strategy.notifyConfig[].notifyMethod array<string> 通知方式,常见mobile电话/message短信/email邮件;对象通道按对象配置执行。
content.upgradeInfo[].extend.strategy_info.strategy.notifyConfig[].notifyMethod[] string 一个通知方式。
content.metrics object 根据生命周期操作记录重建的当前轮次与总览统计,秒级。
content.metrics.currentCycle object 当前轮次。
content.metrics.currentCycle.triggerAt integer 或 null 本轮触发Unix秒。
content.metrics.currentCycle.durationSeconds integer 或 null 本轮持续秒,未恢复时计算到查询时。
content.metrics.currentCycle.firstAcknowledgeAt integer 或 null 本轮首次有效负责人确认Unix秒。
content.metrics.currentCycle.mttaSeconds integer 或 null 本轮首次确认耗时秒;尚无确认null。
content.metrics.currentCycle.resolvedAt integer 或 null 本轮恢复Unix秒,未恢复null。
content.metrics.currentCycle.mttrSeconds integer 或 null 本轮恢复耗时秒,未恢复null。
content.metrics.total object 跨轮次统计。
content.metrics.total.firstTriggerAt integer 或 null 最早生命周期触发Unix秒。
content.metrics.total.latestTriggerAt integer 或 null 最近轮次触发Unix秒。
content.metrics.total.reopenCount integer 重开次数。
content.metrics.total.avgMTTASeconds integer 或 null 有有效确认数据轮次的平均确认秒,整数截断;无样本null。
content.metrics.total.avgMTTRSeconds integer 或 null 已恢复轮次平均恢复秒,整数截断;无样本null。
content.declaration object 或 null 非空content附带的工作空间公共声明,未配置时可为null或空对象;空content对象不添加。
{
  "code": 200,
  "content": {
    "id": 123,
    "uuid": "incident_example",
    "status": 0,
    "creator": "wsak_example",
    "updator": "",
    "createAt": 1785427200,
    "updateAt": -1,
    "deleteAt": -1,
    "workspaceUUID": "wksp_example",
    "name": "支付服务异常",
    "level": "system_level_1",
    "description": "部分请求失败",
    "source": "external",
    "resourceCategory": "",
    "resourceType": "",
    "resourceUUID": "",
    "resourceUrl": "https://example.com/runbook",
    "resourceContent": {},
    "eventRelations": [],
    "resourceIdentity": "",
    "assigner": [],
    "incidentsStatus": "open",
    "statusTime": {
      "open": 1785427200
    },
    "statusChangeTime": 1785427200,
    "cumulativeTime": 0,
    "eventCount": 0,
    "eventUpdateAt": 0,
    "dimensionTag": {
      "service": "payment"
    },
    "extend": {},
    "dtHost": "",
    "dtResource": "",
    "dtPodName": "",
    "dtAppName": "",
    "dtAppId": "",
    "dtEnv": "",
    "dtUrl": "",
    "dtService": "payment",
    "assignerInfo": [],
    "attachments": [],
    "upgradeInfo": [],
    "operateRecord": {
      "operatorInfo": {}
    },
    "scheduleInfo": [],
    "workspaceInfo": {
      "uuid": "wksp_example",
      "name": "生产空间"
    },
    "regionCode": "site_example",
    "isExternalWorkspace": false,
    "metrics": {
      "currentCycle": {
        "triggerAt": 1785427200,
        "durationSeconds": 60,
        "firstAcknowledgeAt": null,
        "mttaSeconds": null,
        "resolvedAt": null,
        "mttrSeconds": null
      },
      "total": {
        "firstTriggerAt": 1785427200,
        "latestTriggerAt": 1785427200,
        "reopenCount": 0,
        "avgMTTASeconds": null,
        "avgMTTRSeconds": null
      }
    },
    "declaration": {}
  },
  "errorCode": "",
  "message": "",
  "success": true,
  "traceId": "TRACE-EXAMPLE"
}

错误响应

鉴权、限流和公共请求错误参见公共错误定义。

HTTP 状态 errorCode 触发条件 消息或响应说明 处理方式
400 ft.IncidentsNotFound 目标故障不在当前空间或已删除 未找到指定的故障 从故障列表重新获取content.data[].uuid。
500 ft.InternalServerError 数据库读取、历史对象/配置格式或关联摘要构造等未处理异常 内部错误 核对查询参数,保留traceId;可退避重试,持续失败请管理员检查相关历史记录与服务日志。

文档评价

文档内容是否对您有帮助?