as__CreateScalingNotification
Configures SMN notification topics for an Auto Scaling group so subscribed endpoints receive alerts when specified scaling events occur.
Instructions
[AS] 给弹性伸缩组配置通知功能。每调用一次该接口,伸缩组即配置一个通知主题及其通知场景,每个伸缩组最多可以增加5个主题。通知主题由用户事先在SMN创建并进行订阅,当通知主题对应的通知场景出现时,伸缩组会向用户的订阅终端发送通知。
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": {
"project_id": "<project_id>",
"scaling_group_id": "<scaling_group_id>",
"topic_scene": "<topic_scene>",
"topic_urn": "<topic_urn>"
},
"name": "as__CreateScalingNotification"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic_urn | Yes | SMN服务中Topic的唯一的资源标识。 | |
| project_id | Yes | 项目ID。 | |
| topic_scene | Yes | 通知场景,有以下五种类型。SCALING_UP:扩容成功。SCALING_UP_FAIL:扩容失败。SCALING_DOWN:减容成功。SCALING_DOWN_FAIL:减容失败。SCALING_GROUP_ABNORMAL:伸缩组发生异常 | |
| scaling_group_id | Yes | 伸缩组标识。 |