cURL
curl --request POST \ --url 'https://api.flashcat.cloud/incident/create?app_key=' \ --header 'Content-Type: application/json' \ --data ' { "incident_severity": "Critical", "title": "Database connection timeout on prod-db-01", "channel_id": 2551105804131, "assigned_to": { "person_ids": [ 2476444212131 ] } } '
{ "request_id": "01HK8XQE3Z7JM2NTFQ5YJ8P9R4", "data": { "incident_id": "69db2ef1a0fe7db6448b14f1", "title": "API test incident for docs" } }
手动创建一个新故障并分派处理人员。
on-call
在 Flashduty 控制台 账户 → APP Key 中签发的 app_key。调用任何公开 API 时都必须携带。它等同于所属账户的身份凭证,请妥善保管。
手动创建故障所需的参数。
故障严重程度。
Info
Warning
Critical
故障标题,最多 512 个字符。
512
故障描述,最多 1024 个字符。
1024
归属的协作空间 ID,留空表示独立故障。
故障处理人员指派目标。person_ids 与 escalate_rule_id 至少设置一项。
person_ids
escalate_rule_id
Show child attributes
成功
成功响应结构。2xx 响应中 request_id 标识本次调用(同时出现在 Flashcat-Request-Id 响应头中),data 为接口业务 payload。失败响应使用不同结构,参见 ErrorResponse。
request_id
Flashcat-Request-Id
data
ErrorResponse
本次请求的唯一 ID,也会在 Flashcat-Request-Id 响应头中返回。反馈问题时请一并附上。
"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"
手动创建故障的返回结果。
此页面对您有帮助吗?