Interface MetricExpressionConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MetricExpressionConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:58.530Z")
@Stability(Stable)
public interface MetricExpressionConfig
extends software.amazon.jsii.JsiiSerializable
Properties for a concrete metric.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.cloudwatch.*; Metric metric; MetricExpressionConfig metricExpressionConfig = MetricExpressionConfig.builder() .expression("expression") .period(123) .usingMetrics(Map.of( "usingMetricsKey", metric)) // the properties below are optional .searchAccount("searchAccount") .searchRegion("searchRegion") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forMetricExpressionConfig
static final class
An implementation forMetricExpressionConfig
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getExpression
Math expression for the metric. -
getPeriod
How many seconds to aggregate over. -
getUsingMetrics
Metrics used in the math expression. -
getSearchAccount
Account to evaluate search expressions within.Default: - Deployment account.
-
getSearchRegion
Region to evaluate search expressions within.Default: - Deployment region.
-
builder
- Returns:
- a
MetricExpressionConfig.Builder
ofMetricExpressionConfig
-