跳转到主要内容
POST
更新故障复盘基础信息

限制说明

使用说明

  • 需要 On-call Pro 许可。
  • 调用方须为账户所有者或管理员,或是该报告所属团队的成员,否则返回 AccessDenied。
  • 整体覆盖:省略 incidents_latest_close_seconds 和 incidents_total_duration_seconds 时写为 0,省略 responder_ids 时清空处理人员。
  • responder_ids 中无法解析为人员的 ID 会被丢弃;保存的每个处理人员 assigned_at 为当前时间,acknowledged_at 为 0。
  • 每次调用都会记录到账户审计日志,请不要把敏感信息放在请求字段中。

授权

app_key
string
query
必填

在 Flashduty 控制台 我的 → APP Key 中创建的 APP Key。可通过 query 参数 app_key 或请求头 Fd-App-Key 传入。实际可访问范围是该 APP Key 的权限范围与创建者当前角色权限的交集,请妥善保管。

请求体

application/json

写回复盘报告的故障基础信息。

post_mortem_id
string
必填

复盘 ID,可通过 POST /incident/post-mortem/list 获取。

incidents_highest_severity
enum<string>
必填

关联故障中的最高严重程度。

  • Critical:严重。
  • Warning:警告。
  • Info:提醒。
  • Ok:已恢复。
可用选项:
Critical,
Warning,
Info,
Ok
incidents_earliest_start_seconds
integer<int64>
必填

最早关联故障开始时间的 Unix 秒级时间戳。

必填范围: x >= 1
incidents_latest_close_seconds
integer<int64>

关联故障中最晚的关闭时间,Unix 秒级时间戳。0(省略时也为 0)表示尚未关闭。

必填范围: x >= 0
incidents_total_duration_seconds
integer<int64>

故障总时长(秒);省略时为 0。

必填范围: x >= 0
responder_ids
integer<int64>[]

作为报告处理人员保存的成员 ID。会替换已保存的列表;省略或传 [] 表示清空。无法解析为人员的 ID 会被丢弃。

响应

成功

成功响应结构。2xx 响应中 request_id 标识本次调用(同时出现在 Flashcat-Request-Id 响应头中),data 为接口业务 payload。失败响应使用不同结构,参见 ErrorResponse。

request_id
string
必填

本次请求的唯一 ID,也会在 Flashcat-Request-Id 响应头中返回。反馈问题时请一并附上。

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

data
object

无返回数据。不同接口的 data 可能是 {},也可能不出现在响应中;请只根据 HTTP 200 且没有 error 判断成功。