Package org.jclouds.cloudwatch.domain
Class GetMetricStatistics.Builder
java.lang.Object
org.jclouds.cloudwatch.domain.GetMetricStatistics.Builder
- Enclosing class:
GetMetricStatistics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a newly-createdGetMetricStatisticsOptionsV2
based on the contents of theBuilder
.A dimension describing qualities of the metric.dimensions
(Set<Dimension> dimensions) A list of dimensions describing qualities of the metric.The time stamp to use for determining the last datapoint to return.metricName
(String metricName) The name of the metric.The namespace of the metric.period
(int period) The granularity, in seconds, of the returned datapoints.The time stamp to use for determining the first datapoint to return.statistic
(Statistics statistic) The metric statistic to return.statistics
(Set<Statistics> statistics) The metric statistics to return.The unit for the metric.
-
Constructor Details
-
Builder
public Builder()Creates a new builder. The returned builder is equivalent to the builder generated byinvalid reference
ListMetricsOptions#builder
-
-
Method Details
-
dimensions
A list of dimensions describing qualities of the metric.- Parameters:
dimensions
- the dimensions describing the qualities of the metric- Returns:
- this
Builder
object
-
dimension
A dimension describing qualities of the metric.- Parameters:
dimension
- the dimension describing the qualities of the metric- Returns:
- this
Builder
object
-
endTime
The time stamp to use for determining the last datapoint to return. The value specified is exclusive so results will include datapoints up to the time stamp specified.- Parameters:
endTime
- the timestamp to use for determining the last datapoint to return- Returns:
- this
Builder
object
-
metricName
The name of the metric.- Parameters:
metricName
- the metric name to filter against- Returns:
- this
Builder
object
-
namespace
The namespace of the metric.- Parameters:
namespace
- the namespace to filter against- Returns:
- this
Builder
object
-
period
The granularity, in seconds, of the returned datapoints.- Parameters:
period
- the granularity, in seconds, of the returned datapoints- Returns:
- this
Builder
object
-
startTime
The time stamp to use for determining the first datapoint to return. The value specified is inclusive so results include datapoints with the time stamp specified.- Parameters:
startTime
- The time stamp to use for determining the first datapoint to return- Returns:
- this
Builder
object
-
statistics
The metric statistics to return.- Parameters:
statistics
- the metric statistics to return.- Returns:
- this
Builder
object
-
statistic
The metric statistic to return. (Can be called multiple times up to a maximum of 5 times.)- Parameters:
statistic
- the metric statistic to return- Returns:
- this
Builder
object
-
unit
The unit for the metric.- Parameters:
unit
- the unit for the metric- Returns:
- this
Builder
object
-
build
Returns a newly-createdGetMetricStatisticsOptionsV2
based on the contents of theBuilder
.
-