alerts.incidents.update。
请求体
curl -X POST http://localhost:5080/api/v1/alerts/incidents/$INCIDENT_ID/notes \
-H "authorization: Bearer $MS_TOKEN" \
-H "content-type: application/json" \
-d '{"text": "Rolled back the edge proxy."}'
{
"id": "3KEE1aXy7pRtGd2s9Lm4Qv8bNcE",
"org_id": "<organization-id>",
"incident_id": "3KEDNEyqouYJeBDTLTMTBui7XHW",
"at": 1790000300000000,
"kind": "note",
"actor": "<user-id>",
"detail": {
"text": "Rolled back the edge proxy.",
"via": "api"
}
}
告警
添加事件备注
在事件的时间线上写一条备注。
curl -X POST http://localhost:5080/api/v1/alerts/incidents/$INCIDENT_ID/notes \
-H "authorization: Bearer $MS_TOKEN" \
-H "content-type: application/json" \
-d '{"text": "Rolled back the edge proxy."}'
{
"id": "3KEE1aXy7pRtGd2s9Lm4Qv8bNcE",
"org_id": "<organization-id>",
"incident_id": "3KEDNEyqouYJeBDTLTMTBui7XHW",
"at": 1790000300000000,
"kind": "note",
"actor": "<user-id>",
"detail": {
"text": "Rolled back the edge proxy.",
"via": "api"
}
}
最后修改于 2026年10月31日