@Stability(value=Experimental) public static final class MathExpression.Builder extends Object implements software.amazon.jsii.Builder<MathExpression>
MathExpression.| Modifier and Type | Method and Description |
|---|---|
MathExpression |
build() |
MathExpression.Builder |
color(String color)
(experimental) Color for this metric when added to a Graph in a Dashboard.
|
static MathExpression.Builder |
create() |
MathExpression.Builder |
expression(String expression)
(experimental) The expression defining the metric.
|
MathExpression.Builder |
label(String label)
(experimental) Label for this metric when added to a Graph in a Dashboard.
|
MathExpression.Builder |
period(Duration period)
(experimental) The period over which the expression's statistics are applied.
|
MathExpression.Builder |
usingMetrics(Map<String,? extends IMetric> usingMetrics)
(experimental) The metrics used in the expression, in a map.
|
@Stability(value=Experimental) public static MathExpression.Builder create()
MathExpression.Builder.@Stability(value=Experimental) public MathExpression.Builder color(String color)
Default: - Automatic color
color - Color for this metric when added to a Graph in a Dashboard. This parameter is required.this@Stability(value=Experimental) public MathExpression.Builder label(String label)
Default: - Expression value is used as label
label - Label for this metric when added to a Graph in a Dashboard. This parameter is required.this@Stability(value=Experimental) public MathExpression.Builder period(Duration period)
This period overrides all periods in the metrics used in this math expression.
Default: Duration.minutes(5)
period - The period over which the expression's statistics are applied. This parameter is required.this@Stability(value=Experimental) public MathExpression.Builder expression(String expression)
expression - The expression defining the metric. This parameter is required.this@Stability(value=Experimental) public MathExpression.Builder usingMetrics(Map<String,? extends IMetric> usingMetrics)
The key is the identifier that represents the given metric in the expression, and the value is the actual Metric object.
usingMetrics - The metrics used in the expression, in a map. This parameter is required.this@Stability(value=Experimental) public MathExpression build()
build in interface software.amazon.jsii.Builder<MathExpression>Copyright © 2021. All rights reserved.