Skip to content

MetricRuleTemplateDeploymentProps

Properties for defining a MetricRuleTemplateDeployment.

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

Initializer

using AlibabaCloud.SDK.ROS.CDK.Cms;
new MetricRuleTemplateDeploymentProps {
    object GroupId,
    object TemplateIds,
    object AppendMode = null,
    object ApplyMode = null,
    object EnableEndTime = null,
    object EnableStartTime = null,
    object NotifyLevel = null,
    object SilenceTime = null,
    object Webhook = null
};

Properties

Name Type Description
GroupId object Property groupId: Apply group ID.
TemplateIds object Property templateIds: The ID list of the Alarm Template to be applied.
AppendMode object 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 object 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 object Property enableEndTime: The end time when the alarm takes effect.Value range: 0~23, indicating 00:59 to 23:59.
EnableStartTime object Property enableStartTime: The start time when the alarm takes effect.Value range: 0~23, indicating 00:00 to 23:00.
NotifyLevel object Property notifyLevel: The alert notification method.
SilenceTime object 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 object Property webhook: When an alarm occurs, the specified URL address will be called back and a POST request will be sent.

GroupIdRequired

public object GroupId { get; set; }
  • Type: object

Property groupId: Apply group ID.

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


TemplateIdsRequired

public object TemplateIds { get; set; }
  • Type: object

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

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


AppendModeOptional

public object AppendMode { get; set; }
  • Type: object

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

public object ApplyMode { get; set; }
  • Type: object

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

public object EnableEndTime { get; set; }
  • Type: object

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


EnableStartTimeOptional

public object EnableStartTime { get; set; }
  • Type: object

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


NotifyLevelOptional

public object NotifyLevel { get; set; }
  • Type: object

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

public object SilenceTime { get; set; }
  • Type: object

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

public object Webhook { get; set; }
  • Type: object

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