告警与响应相关接口/告警事件
POSTAlerting起始版本 1.0同步需要认证
解决告警事件
手动解决告警事件标记已处理。
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
路径参数
请求参数
路径参数
eventIdString必填事件标识符解决。
请求体字段
resolvedByString必填用户解决中告警。
示例: admin
commentString必填可选分辨率评论。
示例: Resolved by scaling up the instance
响应状态
请求地址
POST/api/v1/alerting/events/{eventId}/resolve
/api/v1/alerting/events/{eventId}/resolve
请求示例
curl -X POST '{host}/api/v1/alerting/events/{eventId}/resolve' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"resolvedBy":"admin","comment":"Resolved by scaling up the instance"}'
响应示例
200{
"uuid": "event-001",
"ruleUuid": "rule-abc123",
"ruleName": "High CPU Usage",
"resourceType": "vm",
"resourceUuid": "res-abc123",
"metricName": "cpu_usage_percent",
"currentValue": 95.3,
"threshold": 90.0
}变更历史
此 API 暂无变更历史记录。
