lts__UpdateNotificationTemplate
Updates an existing Log Tank Service (LTS) notification template by name, letting you revise its description and channel-specific alert message content.
Instructions
[LTS] 该接口用于修改通知模板,根据名称进行修改。
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": {
"domain_id": "<domain_id>",
"locale": "<locale>",
"name": "<name>",
"project_id": "<project_id>",
"source": "<source>",
"templates": "<templates>"
},
"name": "lts__UpdateNotificationTemplate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| desc | No | 模板描述,必填,只含有汉字、数字、字母、下划线不能以下划线开头和结尾,长度为0--1024 | |
| name | Yes | 通知规则名称,必填,只含有汉字、数字、字母、下划线、中划线,不能以下划线等特殊符号开头和结尾,长度为 1 - 100,创建后不可修改 | |
| type | No | 保留字段,非必填,只支持sms(短信),dingding(钉钉),wechat(企业微信),email(邮件)和webhook(网络钩子) | |
| locale | Yes | 语言,必填,目前可填zh-cn和en-us | |
| source | Yes | 模板来源,目前必填为LTS,否则会筛选不出来 | |
| domain_id | Yes | 账号id,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 | |
| templates | Yes | 模板正文,为一个数组 | |
| project_id | Yes | 项目ID,获取方式请参见:获取账号ID、项目ID、日志组ID、日志流ID(https://support.huaweicloud.com/api-lts/lts_api_0006.html)。 |