Skip to content

MetricRuleTemplateDeploymentProps

Properties for defining a MetricRuleTemplateDeployment.

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

Initializer

import { MetricRuleTemplateDeploymentProps } from '@alicloud/ros-cdk-cms'
const metricRuleTemplateDeploymentProps: MetricRuleTemplateDeploymentProps = { ... }

Properties

Name Type Description
groupId number | @alicloud/ros-cdk-core.IResolvable Property groupId: Apply group ID.
templateIds @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[] Property templateIds: The ID list of the Alarm Template to be applied.
appendMode string | @alicloud/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 string | @alicloud/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 number | @alicloud/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 number | @alicloud/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 number | @alicloud/ros-cdk-core.IResolvable Property notifyLevel: The alert notification method.
silenceTime number | @alicloud/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 string | @alicloud/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 readonly groupId: number | IResolvable;
  • Type: number | @alicloud/ros-cdk-core.IResolvable

Property groupId: Apply group ID.

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


templateIdsRequired

public readonly templateIds: IResolvable | string | IResolvable[];
  • Type: @alicloud/ros-cdk-core.IResolvable | string | @alicloud/ros-cdk-core.IResolvable[]

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

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


appendModeOptional

public readonly appendMode: string | IResolvable;
  • Type: string | @alicloud/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 readonly applyMode: string | IResolvable;
  • Type: string | @alicloud/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 readonly enableEndTime: number | IResolvable;
  • Type: number | @alicloud/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 readonly enableStartTime: number | IResolvable;
  • Type: number | @alicloud/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 readonly notifyLevel: number | IResolvable;
  • Type: number | @alicloud/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 readonly silenceTime: number | IResolvable;
  • Type: number | @alicloud/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 readonly webhook: string | IResolvable;
  • Type: string | @alicloud/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.