@Stability(value=Experimental) public static final class MetricGraphConfig.Builder extends Object
MetricGraphConfig| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MetricGraphConfig |
build()
Builds the configured instance.
|
MetricGraphConfig.Builder |
withColor(String value)
Sets the value of Color
|
MetricGraphConfig.Builder |
withDimensions(List<Dimension> value)
Sets the value of Dimensions
|
MetricGraphConfig.Builder |
withLabel(String value)
Sets the value of Label
|
MetricGraphConfig.Builder |
withMetricName(String value)
Sets the value of MetricName
|
MetricGraphConfig.Builder |
withNamespace(String value)
Sets the value of Namespace
|
MetricGraphConfig.Builder |
withPeriod(Number value)
Sets the value of Period
|
MetricGraphConfig.Builder |
withStatistic(String value)
Sets the value of Statistic
|
MetricGraphConfig.Builder |
withUnit(Unit value)
Sets the value of Unit
|
@Stability(value=Experimental) public MetricGraphConfig.Builder withMetricName(String value)
value - Name of the metric.this@Stability(value=Experimental) public MetricGraphConfig.Builder withNamespace(String value)
value - Namespace of the metric.this@Stability(value=Experimental) public MetricGraphConfig.Builder withPeriod(Number value)
value - How many seconds to aggregate over.this@Stability(value=Experimental) public MetricGraphConfig.Builder withColor(@Nullable String value)
value - Color for the graph line.this@Stability(value=Experimental) public MetricGraphConfig.Builder withDimensions(@Nullable List<Dimension> value)
value - The dimensions to apply to the alarm.this@Stability(value=Experimental) public MetricGraphConfig.Builder withLabel(@Nullable String value)
value - Label for the metric.this@Stability(value=Experimental) public MetricGraphConfig.Builder withStatistic(@Nullable String value)
value - Aggregation function to use (can be either simple or a percentile).this@Stability(value=Experimental) public MetricGraphConfig.Builder withUnit(@Nullable Unit value)
value - The unit of the alarm.this@Stability(value=Experimental) public MetricGraphConfig build()
MetricGraphConfigNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.