public class MetricTrigger extends Object
Constructor and Description |
---|
MetricTrigger() |
Modifier and Type | Method and Description |
---|---|
String |
metricName()
Get the name of the metric that defines what the rule monitors.
|
String |
metricResourceUri()
Get the resource identifier of the resource the rule monitors.
|
ComparisonOperationType |
operator()
Get the operator that is used to compare the metric data and the threshold.
|
MetricStatisticType |
statistic()
Get the metric statistic type.
|
double |
threshold()
Get the threshold of the metric that triggers the scale action.
|
TimeAggregationType |
timeAggregation()
Get time aggregation type.
|
org.joda.time.Period |
timeGrain()
Get the granularity of metrics the rule monitors.
|
org.joda.time.Period |
timeWindow()
Get the range of time in which instance data is collected.
|
MetricTrigger |
withMetricName(String metricName)
Set the name of the metric that defines what the rule monitors.
|
MetricTrigger |
withMetricResourceUri(String metricResourceUri)
Set the resource identifier of the resource the rule monitors.
|
MetricTrigger |
withOperator(ComparisonOperationType operator)
Set the operator that is used to compare the metric data and the threshold.
|
MetricTrigger |
withStatistic(MetricStatisticType statistic)
Set the metric statistic type.
|
MetricTrigger |
withThreshold(double threshold)
Set the threshold of the metric that triggers the scale action.
|
MetricTrigger |
withTimeAggregation(TimeAggregationType timeAggregation)
Set time aggregation type.
|
MetricTrigger |
withTimeGrain(org.joda.time.Period timeGrain)
Set the granularity of metrics the rule monitors.
|
MetricTrigger |
withTimeWindow(org.joda.time.Period timeWindow)
Set the range of time in which instance data is collected.
|
public String metricName()
public MetricTrigger withMetricName(String metricName)
metricName
- the metricName value to setpublic String metricResourceUri()
public MetricTrigger withMetricResourceUri(String metricResourceUri)
metricResourceUri
- the metricResourceUri value to setpublic org.joda.time.Period timeGrain()
public MetricTrigger withTimeGrain(org.joda.time.Period timeGrain)
timeGrain
- the timeGrain value to setpublic MetricStatisticType statistic()
public MetricTrigger withStatistic(MetricStatisticType statistic)
statistic
- the statistic value to setpublic org.joda.time.Period timeWindow()
public MetricTrigger withTimeWindow(org.joda.time.Period timeWindow)
timeWindow
- the timeWindow value to setpublic TimeAggregationType timeAggregation()
public MetricTrigger withTimeAggregation(TimeAggregationType timeAggregation)
timeAggregation
- the timeAggregation value to setpublic ComparisonOperationType operator()
public MetricTrigger withOperator(ComparisonOperationType operator)
operator
- the operator value to setpublic double threshold()
public MetricTrigger withThreshold(double threshold)
threshold
- the threshold value to setCopyright © 2019. All rights reserved.