@Stability(value=Experimental) public static final class CommonMetricOptions.Builder extends Object implements software.amazon.jsii.Builder<CommonMetricOptions>
CommonMetricOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CommonMetricOptions.Builder |
account(String account)
Sets the value of
CommonMetricOptions.getAccount() |
CommonMetricOptions |
build()
Builds the configured instance.
|
CommonMetricOptions.Builder |
color(String color)
Sets the value of
CommonMetricOptions.getColor() |
CommonMetricOptions.Builder |
dimensions(Map<String,? extends Object> dimensions)
Sets the value of
CommonMetricOptions.getDimensions() |
CommonMetricOptions.Builder |
label(String label)
Sets the value of
CommonMetricOptions.getLabel() |
CommonMetricOptions.Builder |
period(Duration period)
Sets the value of
CommonMetricOptions.getPeriod() |
CommonMetricOptions.Builder |
region(String region)
Sets the value of
CommonMetricOptions.getRegion() |
CommonMetricOptions.Builder |
statistic(String statistic)
Sets the value of
CommonMetricOptions.getStatistic() |
CommonMetricOptions.Builder |
unit(Unit unit)
Sets the value of
CommonMetricOptions.getUnit() |
@Stability(value=Experimental) public CommonMetricOptions.Builder account(String account)
CommonMetricOptions.getAccount()
account
- Account which this metric comes from.this
@Stability(value=Experimental) public CommonMetricOptions.Builder color(String color)
CommonMetricOptions.getColor()
color
- The hex color code, prefixed with '#' (e.g. '#00ff00'), to use when this metric is rendered on a graph. The `Color` class has a set of standard colors that can be used here.this
@Stability(value=Experimental) public CommonMetricOptions.Builder dimensions(Map<String,? extends Object> dimensions)
CommonMetricOptions.getDimensions()
dimensions
- Dimensions of the metric.this
@Stability(value=Experimental) public CommonMetricOptions.Builder label(String label)
CommonMetricOptions.getLabel()
label
- Label for this metric when added to a Graph in a Dashboard.this
@Stability(value=Experimental) public CommonMetricOptions.Builder period(Duration period)
CommonMetricOptions.getPeriod()
period
- The period over which the specified statistic is applied.this
@Stability(value=Experimental) public CommonMetricOptions.Builder region(String region)
CommonMetricOptions.getRegion()
region
- Region which this metric comes from.this
@Stability(value=Experimental) public CommonMetricOptions.Builder statistic(String statistic)
CommonMetricOptions.getStatistic()
statistic
- What function to use for aggregating.
Can be one of the following:
this
@Stability(value=Experimental) public CommonMetricOptions.Builder unit(Unit unit)
CommonMetricOptions.getUnit()
unit
- Unit used to filter the metric stream.
Only refer to datums emitted to the metric stream with the given unit and
ignore all others. Only useful when datums are being emitted to the same
metric stream under different units.
The default is to use all matric datums in the stream, regardless of unit, which is recommended in nearly all cases.
CloudWatch does not honor this property for graphs.
this
@Stability(value=Experimental) public CommonMetricOptions build()
build
in interface software.amazon.jsii.Builder<CommonMetricOptions>
CommonMetricOptions
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.