参数 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | ListNotifyTemplates | 接口名称。当前 API 的名称为 ListNotifyTemplates。 |
Version | String | 是 | 2018-01-01 | 接口版本。当前 API 的版本为 2018-01-01。 |
Name | String | 否 | template-demo | 通知模版名称。
|
Ids | Array of String | 否 | 189828***00 | 通知模版 ID。 |
Types | Array of String | 否 | metric | 通知模版类型,取值:
|
Channels | Array of String | 否 | email | 通知渠道,取值:
|
PageNumber | Integer | 否 | 1 | 分页查询参数,用于设置当前页码。默认值为 1。
|
PageSize | Integer | 否 | 30 | 分页查询参数,用于设置每页行数。默认值为 30。 |
参数 | 类型 | 示例值 | 描述 |
Data | - | 通知模版详情。 |
参数 | 类型 | 示例值 | 描述 |
Id | String | 189828***00 | 通知模版 ID。 |
Name | String | template-demo | 通知模版名称。 |
Description | String | this is a template-demo | 通知模版描述信息。 |
Type | String | metric | 通知模版类型,取值:
|
Channel | String | email | 通知渠道,取值:
|
Title | String | 【{{ .Level | translate "Level" "zh" }}】【{{ translate "Type" "zh" .Type }}】平台账户{{ .AccountName }}({{ .AccountId }})的告警策略"{{ .RuleName }}"{{ if (contains "Recovered" .Type) }}恢复正常{{ else }}发生{{ .Level | translate "Level" "zh" }}级别告警{{ end }} | 通知模版的标题。 |
Content | String | 告警信息: 告警类型:{{ .Type }} 账号名称:{{ .AccountName }} 账号 ID:{{ .AccountId }} 告警策略名称:{{ .RuleName }} 告警策略 ID:{{ .RuleId }} 告警策略详情:{{ .RuleURL }} | 通知模版的内容。 |