@Stability(value=Experimental) public static final class MetricProps.Builder extends Object
MetricProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
MetricProps |
build()
Builds the configured instance.
|
MetricProps.Builder |
withColor(String value)
Sets the value of Color
|
MetricProps.Builder |
withDimensions(Map<String,Object> value)
Sets the value of Dimensions
|
MetricProps.Builder |
withLabel(String value)
Sets the value of Label
|
MetricProps.Builder |
withMetricName(String value)
Sets the value of MetricName
|
MetricProps.Builder |
withNamespace(String value)
Sets the value of Namespace
|
MetricProps.Builder |
withPeriod(software.amazon.awscdk.core.Duration value)
Sets the value of Period
|
MetricProps.Builder |
withStatistic(String value)
Sets the value of Statistic
|
MetricProps.Builder |
withUnit(Unit value)
Sets the value of Unit
|
@Stability(value=Experimental) public MetricProps.Builder withMetricName(String value)
value - Name of the metric.this@Stability(value=Experimental) public MetricProps.Builder withNamespace(String value)
value - Namespace of the metric.this@Stability(value=Experimental) public MetricProps.Builder withColor(@Nullable String value)
value - Color for this metric when added to a Graph in a Dashboard.this@Stability(value=Experimental) public MetricProps.Builder withDimensions(@Nullable Map<String,Object> value)
value - Dimensions of the metric.this@Stability(value=Experimental) public MetricProps.Builder withLabel(@Nullable String value)
value - Label for this metric when added to a Graph in a Dashboard.this@Stability(value=Experimental) public MetricProps.Builder withPeriod(@Nullable software.amazon.awscdk.core.Duration value)
value - The period over which the specified statistic is applied.this@Stability(value=Experimental) public MetricProps.Builder withStatistic(@Nullable String value)
value - What function to use for aggregating.this@Stability(value=Experimental) public MetricProps.Builder withUnit(@Nullable Unit value)
value - Unit for the metric that is associated with the alarm.this@Stability(value=Experimental) public MetricProps build()
MetricPropsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.