public static final class DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder extends Object
构造器和说明 |
---|
Builder() |
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder actionEnable(String actionEnable)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder alarmActions(String alarmActions)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder comparisonOperator(String comparisonOperator)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder dimensions(String dimensions)
* OK: normal. * ALARM: The alert is triggered.
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder evaluationCount(String evaluationCount)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder expression(String expression)
* true: The alert rule is enabled. * false: The alert rule is disabled.
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder level(String level)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder metricName(String metricName)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder namespace(String namespace)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder okActions(String okActions)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder period(String period)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder ruleId(String ruleId)
> If you specify a statistical period for the alert rule, raw data is queried based on the statistical period.
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder ruleName(String ruleName)
* `>=` * `>` * `<=` * `<` * `=` * `!=` * 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 DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder stateValue(String stateValue)
* 1: critical * 2: warning * 3: information
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder statistics(String statistics)
public DescribeSiteMonitorAttributeResponseBody.MetricRule.Builder threshold(String threshold)
* Availability: the percentage of available detection points * AvailableNumber: the number of available detection points * ErrorCodeMaximum: a status code for an alert * ErrorCodeMinimum: all status codes for a set of alerts * Average: response time
public DescribeSiteMonitorAttributeResponseBody.MetricRule build()
Copyright © 2023. All rights reserved.