告警与响应相关接口/告警通道与集成
POSTAlerting起始版本 1.0同步需要认证
创建告警渠道
创建新通知渠道告警投递。
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
请求参数
请求体字段
nameString必填资源名称。
示例: Ops Email Channel
descriptionString必填资源的详细描述。
示例: Email notifications for operations team
typeString必填类型。
示例: email
configObject必填配置信息。
示例: (nested object)
templateIdString必填模板ID。
示例: tmpl-email-001
响应状态
请求地址
POST/api/v1/alerting/channels
/api/v1/alerting/channels
请求示例
curl -X POST '{host}/api/v1/alerting/channels' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"Ops Email Channel","description":"Email notifications for operations team","type":"email","config":"(nested object)","templateId":"tmpl-email-001","status":"active"}'
响应示例
200{
"uuid": "chan-001",
"name": "Ops Email Channel",
"description": "Email notifications for operations team",
"type": "email",
"status": "active",
"config": null,
"templateId": "tmpl-email-001",
"alertCount": 150
}变更历史
此 API 暂无变更历史记录。
