@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 |
searchAccount(String searchAccount)
(experimental) Account to evaluate search expressions within.
|
MathExpression.Builder |
searchRegion(String searchRegion)
(experimental) Region to evaluate search expressions within.
|
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 searchAccount(String searchAccount)
Specifying a searchAccount has no effect to the account used for metrics within the expression (passed via usingMetrics).
Default: - Deployment account.
searchAccount - Account to evaluate search expressions within. This parameter is required.this@Stability(value=Experimental) public MathExpression.Builder searchRegion(String searchRegion)
Specifying a searchRegion has no effect to the region used for metrics within the expression (passed via usingMetrics).
Default: - Deployment region.
searchRegion - Region to evaluate search expressions within. This parameter is required.this@Stability(value=Experimental) public MathExpression.Builder expression(String expression)
When an expression contains a SEARCH function, it cannot be used within an Alarm.
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.
Default: - Empty map.
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 © 2022. All rights reserved.