@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)",
date="2022-08-02T20:25:28.658Z")
public interface MetricExpressionConfig
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() |
java.lang.String |
getExpression()
Math expression for the metric.
|
java.lang.Number |
getPeriod()
How many seconds to aggregate over.
|
default java.lang.String |
getSearchAccount()
Account to evaluate search expressions within.
|
default java.lang.String |
getSearchRegion()
Region to evaluate search expressions within.
|
java.util.Map<java.lang.String,IMetric> |
getUsingMetrics()
Metrics used in the math expression.
|
java.lang.String getExpression()
java.lang.Number getPeriod()
java.util.Map<java.lang.String,IMetric> getUsingMetrics()
default java.lang.String getSearchAccount()
Default: - Deployment account.
default java.lang.String getSearchRegion()
Default: - Deployment region.
static MetricExpressionConfig.Builder builder()
MetricExpressionConfig.Builder
of MetricExpressionConfig