public static final class DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder category(String category)
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder escalations(DescribeMetricRuleTemplateAttributeResponseBody.Escalations escalations)
* GreaterThanOrEqualToThreshold: greater than or equal to the threshold * GreaterThanThreshold: greater than the threshold * LessThanOrEqualToThreshold: less than or equal to the threshold * LessThanThreshold: less than the threshold * NotEqualToThreshold: not equal to the threshold * GreaterThanYesterday: greater than the metric value at the same time yesterday * LessThanYesterday: less than the metric value at the same time yesterday * GreaterThanLastWeek: greater than the metric value at the same time last week * LessThanLastWeek: less than the metric value at the same time last week * GreaterThanLastPeriod: greater than the metric value in the last monitoring cycle * LessThanLastPeriod: less than the metric value in the last monitoring cycle
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder labels(DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplateLabels labels)
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder metricName(String metricName)
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder namespace(String namespace)
* KEEP_LAST_STATE (default value): No operation is performed. * INSUFFICIENT_DATA: An alert whose content is "Insufficient data" is triggered. * OK: The alert rule has no active alerts.
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder noDataPolicy(String noDataPolicy)
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder ruleName(String ruleName)
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder selector(String selector)
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate.Builder webhook(String webhook)
public DescribeMetricRuleTemplateAttributeResponseBody.AlertTemplate build()
Copyright © 2023. All rights reserved.