dws__CreateEventSub
Creates a data warehouse event subscription to send notifications through SMN, letting you define the event source, category, severity, and message target for alerts.
Instructions
[DWS] 添加订阅的事件。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"notification_target": "<notification_target>",
"notification_target_name": "<notification_target_name>",
"notification_target_type": "<notification_target_type>",
"project_id": "<project_id>"
},
"name": "dws__CreateEventSub"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | 事件标签 | |
| name | Yes | 事件订阅名称 | |
| enable | No | 是否开启订阅 1为开启,0为关闭 | |
| category | No | 事件类别支持management,monitor,security,system alarm | |
| severity | No | 事件级别支持normal,warning | |
| source_id | No | 事件源ID | |
| time_zone | No | 时区 | |
| project_id | Yes | 租户凭证ID | |
| source_type | No | 事件源类型支持cluster,backup,disaster-recovery | |
| notification_target | Yes | 消息通知地址 | |
| notification_target_name | Yes | 消息主题名称 | |
| notification_target_type | Yes | 消息通知类型只支持SMN |