public class MetricCriteria extends Object
Constructor and Description |
---|
MetricCriteria() |
Modifier and Type | Method and Description |
---|---|
List<MetricDimension> |
dimensions()
Get list of dimension conditions.
|
String |
metricName()
Get name of the metric.
|
String |
metricNamespace()
Get namespace of the metric.
|
String |
name()
Get name of the criteria.
|
MetricAlertRuleCondition |
operator()
Get the criteria operator.
|
double |
threshold()
Get the criteria threshold value that activates the alert.
|
MetricAlertRuleTimeAggregation |
timeAggregation()
Get the criteria time aggregation types.
|
MetricCriteria |
withDimensions(List<MetricDimension> dimensions)
Set list of dimension conditions.
|
MetricCriteria |
withMetricName(String metricName)
Set name of the metric.
|
MetricCriteria |
withMetricNamespace(String metricNamespace)
Set namespace of the metric.
|
MetricCriteria |
withName(String name)
Set name of the criteria.
|
MetricCriteria |
withOperator(MetricAlertRuleCondition operator)
Set the criteria operator.
|
MetricCriteria |
withThreshold(double threshold)
Set the criteria threshold value that activates the alert.
|
MetricCriteria |
withTimeAggregation(MetricAlertRuleTimeAggregation timeAggregation)
Set the criteria time aggregation types.
|
public String name()
public MetricCriteria withName(String name)
name
- the name value to setpublic String metricName()
public MetricCriteria withMetricName(String metricName)
metricName
- the metricName value to setpublic String metricNamespace()
public MetricCriteria withMetricNamespace(String metricNamespace)
metricNamespace
- the metricNamespace value to setpublic MetricAlertRuleCondition operator()
public MetricCriteria withOperator(MetricAlertRuleCondition operator)
operator
- the operator value to setpublic MetricAlertRuleTimeAggregation timeAggregation()
public MetricCriteria withTimeAggregation(MetricAlertRuleTimeAggregation timeAggregation)
timeAggregation
- the timeAggregation value to setpublic double threshold()
public MetricCriteria withThreshold(double threshold)
threshold
- the threshold value to setpublic List<MetricDimension> dimensions()
public MetricCriteria withDimensions(List<MetricDimension> dimensions)
dimensions
- the dimensions value to setCopyright © 2019. All rights reserved.