Skip to content

MetricRuleTemplateDeploymentProps

Properties for defining a MetricRuleTemplateDeployment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cms-metricruletemplatedeployment

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkcms"
&alicloudroscdkcms.MetricRuleTemplateDeploymentProps {
    GroupId: interface{},
    TemplateIds: interface{},
    AppendMode: interface{},
    ApplyMode: interface{},
    EnableEndTime: interface{},
    EnableStartTime: interface{},
    NotifyLevel: interface{},
    SilenceTime: interface{},
    Webhook: interface{},
}

Properties

Name Type Description
GroupId interface{} Property groupId: Apply group ID.
TemplateIds interface{} Property templateIds: The ID list of the Alarm Template to be applied.
AppendMode interface{} Property appendMode: Template application policy.Value: all: Delete all rules created by the alarm template on the selected group, and then create a new alarm rule by the template (default). append: Delete the rules created by the alarm template on the selected group, and then create a new alarm rule based on the current template.
ApplyMode interface{} Property applyMode: How to apply templates.Value: GROUP_INSTANCE_FIRST: Application grouping instances are preferred.When applying an alarm template, the application grouping instance is preferred. If the instance does not exist in the application grouping, the rules in the template are ignored. ALARM_TEMPLATE_FIRST: Alarm template instances are preferred.When an alarm template is applied, an alarm rule is created regardless of whether the instance exists in the application group.
EnableEndTime interface{} Property enableEndTime: The end time when the alarm takes effect.Value range: 0~23, indicating 00:59 to 23:59.
EnableStartTime interface{} Property enableStartTime: The start time when the alarm takes effect.Value range: 0~23, indicating 00:00 to 23:00.
NotifyLevel interface{} Property notifyLevel: The alert notification method.
SilenceTime interface{} Property silenceTime: Channel silence period.Unit: seconds.Default value: 86400. Note When the monitoring data continues to exceed the alarm rule threshold, only one alarm notification will be sent during each silence cycle.
Webhook interface{} Property webhook: When an alarm occurs, the specified URL address will be called back and a POST request will be sent.

GroupIdRequired

GroupId interface{}
  • Type: interface{}

Property groupId: Apply group ID.

For how to get the application group ID, see DescribeMonitorGroups.


TemplateIdsRequired

TemplateIds interface{}
  • Type: interface{}

Property templateIds: The ID list of the Alarm Template to be applied.

For how to get the alarm template ID, see DescribeMetricRuleTemplateList.


AppendModeOptional

AppendMode interface{}
  • Type: interface{}

Property appendMode: Template application policy.Value: all: Delete all rules created by the alarm template on the selected group, and then create a new alarm rule by the template (default). append: Delete the rules created by the alarm template on the selected group, and then create a new alarm rule based on the current template.


ApplyModeOptional

ApplyMode interface{}
  • Type: interface{}

Property applyMode: How to apply templates.Value: GROUP_INSTANCE_FIRST: Application grouping instances are preferred.When applying an alarm template, the application grouping instance is preferred. If the instance does not exist in the application grouping, the rules in the template are ignored. ALARM_TEMPLATE_FIRST: Alarm template instances are preferred.When an alarm template is applied, an alarm rule is created regardless of whether the instance exists in the application group.


EnableEndTimeOptional

EnableEndTime interface{}
  • Type: interface{}

Property enableEndTime: The end time when the alarm takes effect.Value range: 0~23, indicating 00:59 to 23:59.


EnableStartTimeOptional

EnableStartTime interface{}
  • Type: interface{}

Property enableStartTime: The start time when the alarm takes effect.Value range: 0~23, indicating 00:00 to 23:00.


NotifyLevelOptional

NotifyLevel interface{}
  • Type: interface{}

Property notifyLevel: The alert notification method.

Valid values: Set the value to 4. A value of 4 indicates that alert notifications are sent by using TradeManager and DingTalk chatbots.


SilenceTimeOptional

SilenceTime interface{}
  • Type: interface{}

Property silenceTime: Channel silence period.Unit: seconds.Default value: 86400. Note When the monitoring data continues to exceed the alarm rule threshold, only one alarm notification will be sent during each silence cycle.


WebhookOptional

Webhook interface{}
  • Type: interface{}

Property webhook: When an alarm occurs, the specified URL address will be called back and a POST request will be sent.