Interface MetricExpressionConfig

All Superinterfaces:
All Known Implementing Classes:

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


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 Metric metric;
 MetricExpressionConfig metricExpressionConfig = MetricExpressionConfig.builder()
                 "usingMetricsKey", metric))
         // the properties below are optional
  • Method Details

    • getExpression

      @Stability(Stable) @NotNull String getExpression()
      Math expression for the metric.
    • getPeriod

      @Stability(Stable) @NotNull Number getPeriod()
      How many seconds to aggregate over.
    • getUsingMetrics

      @Stability(Stable) @NotNull Map<String,IMetric> getUsingMetrics()
      Metrics used in the math expression.
    • getSearchAccount

      @Stability(Stable) @Nullable default String getSearchAccount()
      Account to evaluate search expressions within.

      Default: - Deployment account.

    • getSearchRegion

      @Stability(Stable) @Nullable default String getSearchRegion()
      Region to evaluate search expressions within.

      Default: - Deployment region.

    • builder

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