SLO 与服务质量相关接口/SLO
POSTSLO起始版本 1.0同步需要认证
创建预算告警
创建燃烧速率告警配置SLO目标。
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
路径参数
请求参数
路径参数
sloIdString必填SLO唯一标识。
请求体字段
configObject必填配置信息。
idString资源ID。
示例: alert-cfg-001
sloIdStringSLO唯一标识。
示例: slo-xyz789
consumedPctThresholdLong已使用比例阈值。
示例: 80
severityString告警级别。
示例: warning
notificationChannelsList通知渠道列表。
示例: item1,item2
响应状态
请求地址
POST/api/v1/slo/objectives/{sloId}/budget-alerts
/api/v1/slo/objectives/{sloId}/budget-alerts
请求示例
curl -X POST '{host}/api/v1/slo/objectives/{sloId}/budget-alerts' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"config":{"id":"alert-cfg-001","sloId":"slo-xyz789","consumedPctThreshold":80.0,"severity":"warning","notificationChannels":"item1,item2"}}'
响应示例
200{
"id": "alert-cfg-001",
"sloId": "slo-xyz789",
"consumedPctThreshold": 80.0,
"severity": "warning",
"notificationChannels": []
}变更历史
此 API 暂无变更历史记录。
