public static class PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
String |
comparisonOperator
The operator that is used to compare the metric value with the threshold.
|
String |
metricName
The metric that is used to monitor the cloud service.
|
Long |
period
The aggregation period of the metric.
|
String |
statistics
The statistical method of the metric.
|
String |
threshold
The alert threshold.
|
| 构造器和说明 |
|---|
PutResourceMetricRuleRequestCompositeExpressionExpressionList() |
@NameInMap(value="ComparisonOperator") public String comparisonOperator
The operator that is used to compare the metric value with the threshold. Valid values:
* 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
@NameInMap(value="MetricName") public String metricName
The metric that is used to monitor the cloud service.
@NameInMap(value="Period") public Long period
The aggregation period of the metric.
Unit: seconds.
@NameInMap(value="Statistics") public String statistics
The statistical method of the metric. Valid values:
* $Maximum: the maximum value
* $Minimum: the minimum value
* $Average: the average value
* $Availability: the availability rate (usually used for site monitoring)
> `$` is the prefix of the metric. For information about the Alibaba Cloud services that are supported by CloudMonitor, see [Appendix 1: Metrics](~~163515~~).
@NameInMap(value="Threshold") public String threshold
The alert threshold.
public PutResourceMetricRuleRequestCompositeExpressionExpressionList()
public static PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList build(Map<String,?> map) throws Exception
Exceptionpublic PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList setComparisonOperator(String comparisonOperator)
public String getComparisonOperator()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList setMetricName(String metricName)
public String getMetricName()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList setPeriod(Long period)
public Long getPeriod()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList setStatistics(String statistics)
public String getStatistics()
public PutResourceMetricRuleRequest.PutResourceMetricRuleRequestCompositeExpressionExpressionList setThreshold(String threshold)
public String getThreshold()
Copyright © 2024. All rights reserved.