@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:51.297Z") @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 © 2023. All rights reserved.