Interface MathExpressionProps

All Superinterfaces:, MathExpressionOptions
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.873Z") @Stability(Stable) public interface MathExpressionProps extends, MathExpressionOptions
Properties for a MathExpression.


 Function fn;
 MathExpression allProblems = MathExpression.Builder.create()
         .expression("errors + throttles")
                 "errors", fn.metricErrors(),
                 "faults", fn.metricThrottles()))
  • Method Details

    • getExpression

      @Stability(Stable) @NotNull String getExpression()
      The expression defining the metric.

      When an expression contains a SEARCH function, it cannot be used within an Alarm.

    • getUsingMetrics

      @Stability(Stable) @Nullable default Map<String,IMetric> getUsingMetrics()
      The metrics used in the expression, in a map.

      The key is the identifier that represents the given metric in the expression, and the value is the actual Metric object.

      Default: - Empty map.

    • builder

      @Stability(Stable) static MathExpressionProps.Builder builder()
      a MathExpressionProps.Builder of MathExpressionProps