alerts.routing.manage。字段同新建路由规则,没带的可选字段回到默认值。规则的位置不变,改顺序用调整顺序。已经开启的事件不受影响。
curl -X PUT http://localhost:5080/api/v1/alerts/routing/rules/$RULE_ID \
-H "authorization: Bearer $MS_TOKEN" \
-H "content-type: application/json" \
-d '{"name": "Payments in production", "enabled": false, "target": {"kind": "team", "team_id": "<team-id>"}}'
告警
修改路由规则
整体写回一条告警路由规则。
curl -X PUT http://localhost:5080/api/v1/alerts/routing/rules/$RULE_ID \
-H "authorization: Bearer $MS_TOKEN" \
-H "content-type: application/json" \
-d '{"name": "Payments in production", "enabled": false, "target": {"kind": "team", "team_id": "<team-id>"}}'
最后修改于 2026年10月31日