Skip to content

MetricRuleTemplateDeploymentProps

Properties for defining a MetricRuleTemplateDeployment.

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

Initializer

import com.aliyun.ros.cdk.cms.MetricRuleTemplateDeploymentProps;
MetricRuleTemplateDeploymentProps.builder()
    .groupId(java.lang.Number)
    .groupId(IResolvable)
    .templateIds(IResolvable)
    .templateIds(java.util.List<java.lang.String)
    .templateIds(IResolvable>)
//  .appendMode(java.lang.String)
//  .appendMode(IResolvable)
//  .applyMode(java.lang.String)
//  .applyMode(IResolvable)
//  .enableEndTime(java.lang.Number)
//  .enableEndTime(IResolvable)
//  .enableStartTime(java.lang.Number)
//  .enableStartTime(IResolvable)
//  .notifyLevel(java.lang.Number)
//  .notifyLevel(IResolvable)
//  .silenceTime(java.lang.Number)
//  .silenceTime(IResolvable)
//  .webhook(java.lang.String)
//  .webhook(IResolvable)
    .build();

Properties

Name Type Description
groupId java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property groupId: Apply group ID.
templateIds com.aliyun.ros.cdk.core.IResolvable OR java.util.List Property templateIds: The ID list of the Alarm Template to be applied.
appendMode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable 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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable 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 java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property enableEndTime: The end time when the alarm takes effect.Value range: 0~23, indicating 00:59 to 23:59.
enableStartTime java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property enableStartTime: The start time when the alarm takes effect.Value range: 0~23, indicating 00:00 to 23:00.
notifyLevel java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property notifyLevel: The alert notification method.
silenceTime java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable 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 java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property webhook: When an alarm occurs, the specified URL address will be called back and a POST request will be sent.

groupIdRequired

public java.lang.Object getGroupId();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property groupId: Apply group ID.

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


templateIdsRequired

public java.lang.Object getTemplateIds();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List

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

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


appendModeOptional

public java.lang.Object getAppendMode();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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 java.lang.Object getApplyMode();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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 java.lang.Object getEnableEndTime();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

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


enableStartTimeOptional

public java.lang.Object getEnableStartTime();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

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


notifyLevelOptional

public java.lang.Object getNotifyLevel();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

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 java.lang.Object getSilenceTime();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

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 java.lang.Object getWebhook();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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