MetricRuleTemplateProps
Properties for defining a MetricRuleTemplate
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cms-metricruletemplate
Initializer
import com.aliyun.ros.cdk.cms.MetricRuleTemplateProps;
MetricRuleTemplateProps.builder()
.name(java.lang.String)
.name(IResolvable)
// .alertTemplates(IResolvable)
// .alertTemplates(java.util.List<IResolvable)
// .alertTemplates(AlertTemplatesProperty>)
// .description(java.lang.String)
// .description(IResolvable)
// .restVersion(java.lang.Number)
// .restVersion(IResolvable)
// .templateId(java.lang.Number)
// .templateId(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
name |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property name: The name of the alert template. |
alertTemplates |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property alertTemplates: Valid values of N: 0 to 200. |
description |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property description: The description of the alert template. |
restVersion |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property restVersion: The version of the alert template. |
templateId |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property templateId: The ID of the alert template. |
name
Required
public java.lang.Object getName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property name: The name of the alert template.
alertTemplates
Optional
public java.lang.Object getAlertTemplates();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
AlertTemplatesProperty>
Property alertTemplates: Valid values of N: 0 to 200.
description
Optional
public java.lang.Object getDescription();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property description: The description of the alert template.
restVersion
Optional
public java.lang.Object getRestVersion();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property restVersion: The version of the alert template.
Call DescribeMetricRuleTemplateList or DescribeMetricRuleTemplateAttribute to obtain information about the alert templates. The combination of version and ID uniquely identifies an alert template.
templateId
Optional
public java.lang.Object getTemplateId();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property templateId: The ID of the alert template.