@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.264Z") @Stability(value=Stable) public interface MetricExpressionConfig extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
MetricExpressionConfig.Builder
A builder for
MetricExpressionConfig |
static class |
MetricExpressionConfig.Jsii$Proxy
An implementation for
MetricExpressionConfig |
| Modifier and Type | Method and Description |
|---|---|
static MetricExpressionConfig.Builder |
builder() |
String |
getExpression()
Math expression for the metric.
|
Number |
getPeriod()
How many seconds to aggregate over.
|
default String |
getSearchAccount()
Account to evaluate search expressions within.
|
default String |
getSearchRegion()
Region to evaluate search expressions within.
|
Map<String,IMetric> |
getUsingMetrics()
Metrics used in the math expression.
|
@Stability(value=Stable) @NotNull String getExpression()
@Stability(value=Stable) @NotNull Number getPeriod()
@Stability(value=Stable) @NotNull Map<String,IMetric> getUsingMetrics()
@Stability(value=Stable) @Nullable default String getSearchAccount()
Default: - Deployment account.
@Stability(value=Stable) @Nullable default String getSearchRegion()
Default: - Deployment region.
@Stability(value=Stable) static MetricExpressionConfig.Builder builder()
MetricExpressionConfig.Builder of MetricExpressionConfigCopyright © 2022. All rights reserved.