@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.262Z") @Stability(value=Stable) public interface MathExpressionProps extends software.amazon.jsii.JsiiSerializable, MathExpressionOptions
Example:
Function fn;
MathExpression allProblems = MathExpression.Builder.create()
.expression("errors + throttles")
.usingMetrics(Map.of(
"errors", fn.metricErrors(),
"faults", fn.metricThrottles()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
MathExpressionProps.Builder
A builder for
MathExpressionProps |
static class |
MathExpressionProps.Jsii$Proxy
An implementation for
MathExpressionProps |
| Modifier and Type | Method and Description |
|---|---|
static MathExpressionProps.Builder |
builder() |
String |
getExpression()
The expression defining the metric.
|
default Map<String,IMetric> |
getUsingMetrics()
The metrics used in the expression, in a map.
|
getColor, getLabel, getPeriod, getSearchAccount, getSearchRegion@Stability(value=Stable) @NotNull String getExpression()
When an expression contains a SEARCH function, it cannot be used within an Alarm.
@Stability(value=Stable) @Nullable default Map<String,IMetric> getUsingMetrics()
The key is the identifier that represents the given metric in the expression, and the value is the actual Metric object.
Default: - Empty map.
@Stability(value=Stable) static MathExpressionProps.Builder builder()
builder in interface MathExpressionOptionsMathExpressionProps.Builder of MathExpressionPropsCopyright © 2022. All rights reserved.