Interface MetricExpressionConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MetricExpressionConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:34.635Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forMetricExpressionConfigstatic final classAn 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.BuilderofMetricExpressionConfig
-