public class DescribeAlarmsForMetricRequest extends AmazonWebServiceRequest implements java.io.Serializable
Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further.
Constructor and Description |
---|
DescribeAlarmsForMetricRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<Dimension> |
getDimensions()
The list of dimensions associated with the metric.
|
java.lang.String |
getMetricName()
The name of the metric.
|
java.lang.String |
getNamespace()
The namespace of the metric.
|
java.lang.Integer |
getPeriod()
The period in seconds over which the statistic is applied.
|
java.lang.String |
getStatistic()
The statistic for the metric.
|
java.lang.String |
getUnit()
The unit for the metric.
|
int |
hashCode() |
void |
setDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the metric.
|
void |
setMetricName(java.lang.String metricName)
The name of the metric.
|
void |
setNamespace(java.lang.String namespace)
The namespace of the metric.
|
void |
setPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
|
void |
setStatistic(Statistic statistic)
The statistic for the metric.
|
void |
setStatistic(java.lang.String statistic)
The statistic for the metric.
|
void |
setUnit(StandardUnit unit)
The unit for the metric.
|
void |
setUnit(java.lang.String unit)
The unit for the metric.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeAlarmsForMetricRequest |
withDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the metric.
|
DescribeAlarmsForMetricRequest |
withDimensions(Dimension... dimensions)
The list of dimensions associated with the metric.
|
DescribeAlarmsForMetricRequest |
withMetricName(java.lang.String metricName)
The name of the metric.
|
DescribeAlarmsForMetricRequest |
withNamespace(java.lang.String namespace)
The namespace of the metric.
|
DescribeAlarmsForMetricRequest |
withPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
|
DescribeAlarmsForMetricRequest |
withStatistic(Statistic statistic)
The statistic for the metric.
|
DescribeAlarmsForMetricRequest |
withStatistic(java.lang.String statistic)
The statistic for the metric.
|
DescribeAlarmsForMetricRequest |
withUnit(StandardUnit unit)
The unit for the metric.
|
DescribeAlarmsForMetricRequest |
withUnit(java.lang.String unit)
The unit for the metric.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getMetricName()
The name of the metric.
Constraints:
Length: 1 - 255
The name of the metric.
public void setMetricName(java.lang.String metricName)
The name of the metric.
Constraints:
Length: 1 - 255
metricName
- The name of the metric.
public DescribeAlarmsForMetricRequest withMetricName(java.lang.String metricName)
The name of the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
metricName
- The name of the metric.
public java.lang.String getNamespace()
The namespace of the metric.
Constraints:
Length: 1 - 255
Pattern: [^:].*
The namespace of the metric.
public void setNamespace(java.lang.String namespace)
The namespace of the metric.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace of the metric.
public DescribeAlarmsForMetricRequest withNamespace(java.lang.String namespace)
The namespace of the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace of the metric.
public java.lang.String getStatistic()
The statistic for the metric.
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
The statistic for the metric.
Statistic
public void setStatistic(java.lang.String statistic)
The statistic for the metric.
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
statistic
- The statistic for the metric.
Statistic
public DescribeAlarmsForMetricRequest withStatistic(java.lang.String statistic)
The statistic for the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
statistic
- The statistic for the metric.
Statistic
public void setStatistic(Statistic statistic)
The statistic for the metric.
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
statistic
- The statistic for the metric.
Statistic
public DescribeAlarmsForMetricRequest withStatistic(Statistic statistic)
The statistic for the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SampleCount, Average, Sum, Minimum, Maximum
statistic
- The statistic for the metric.
Statistic
public java.util.List<Dimension> getDimensions()
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
public void setDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
dimensions
- The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
public DescribeAlarmsForMetricRequest withDimensions(Dimension... dimensions)
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
Returns a reference to this object so that method calls can be chained together.
dimensions
- The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
public DescribeAlarmsForMetricRequest withDimensions(java.util.Collection<Dimension> dimensions)
The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
Returns a reference to this object so that method calls can be chained together.
dimensions
- The list of dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
public java.lang.Integer getPeriod()
The period in seconds over which the statistic is applied.
Constraints:
Range: 60 -
The period in seconds over which the statistic is applied.
public void setPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
Constraints:
Range: 60 -
period
- The period in seconds over which the statistic is applied.
public DescribeAlarmsForMetricRequest withPeriod(java.lang.Integer period)
The period in seconds over which the statistic is applied.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 60 -
period
- The period in seconds over which the statistic is applied.
public java.lang.String getUnit()
The unit for the metric.
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes,
Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits,
Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second,
Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second,
Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second,
Count/Second, None
The unit for the metric.
StandardUnit
public void setUnit(java.lang.String unit)
The unit for the metric.
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes,
Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits,
Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second,
Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second,
Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second,
Count/Second, None
unit
- The unit for the metric.
StandardUnit
public DescribeAlarmsForMetricRequest withUnit(java.lang.String unit)
The unit for the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes,
Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits,
Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second,
Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second,
Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second,
Count/Second, None
unit
- The unit for the metric.
StandardUnit
public void setUnit(StandardUnit unit)
The unit for the metric.
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes,
Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits,
Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second,
Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second,
Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second,
Count/Second, None
unit
- The unit for the metric.
StandardUnit
public DescribeAlarmsForMetricRequest withUnit(StandardUnit unit)
The unit for the metric.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: Seconds, Microseconds, Milliseconds, Bytes,
Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits,
Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second,
Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second,
Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second,
Count/Second, None
unit
- The unit for the metric.
StandardUnit
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.