@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-31T18:36:51.306Z") @Stability(value=Stable) public interface MetricStatConfig extends software.amazon.jsii.JsiiSerializable
NOTE: unit is no longer on this object since it is only used for Alarms, and doesn't mean what one
would expect it to mean there anyway. It is most likely to be misused.
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.*;
import software.amazon.awscdk.core.*;
Object value;
MetricStatConfig metricStatConfig = MetricStatConfig.builder()
.metricName("metricName")
.namespace("namespace")
.period(Duration.minutes(30))
.statistic("statistic")
// the properties below are optional
.account("account")
.dimensions(List.of(Dimension.builder()
.name("name")
.value(value)
.build()))
.region("region")
.unitFilter(Unit.SECONDS)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
MetricStatConfig.Builder
A builder for
MetricStatConfig |
static class |
MetricStatConfig.Jsii$Proxy
An implementation for
MetricStatConfig |
| Modifier and Type | Method and Description |
|---|---|
static MetricStatConfig.Builder |
builder() |
default String |
getAccount()
Account which this metric comes from.
|
default List<Dimension> |
getDimensions()
The dimensions to apply to the alarm.
|
String |
getMetricName()
Name of the metric.
|
String |
getNamespace()
Namespace of the metric.
|
Duration |
getPeriod()
How many seconds to aggregate over.
|
default String |
getRegion()
Region which this metric comes from.
|
String |
getStatistic()
Aggregation function to use (can be either simple or a percentile).
|
default Unit |
getUnitFilter()
Unit used to filter the metric stream.
|
@Stability(value=Stable) @NotNull String getMetricName()
@Stability(value=Stable) @NotNull String getNamespace()
@Stability(value=Stable) @NotNull Duration getPeriod()
@Stability(value=Stable) @NotNull String getStatistic()
@Stability(value=Stable) @Nullable default String getAccount()
Default: Deployment account.
@Stability(value=Stable) @Nullable default List<Dimension> getDimensions()
Default: []
@Stability(value=Stable) @Nullable default String getRegion()
Default: Deployment region.
@Stability(value=Stable) @Nullable default Unit getUnitFilter()
Only refer to datums emitted to the metric stream with the given unit and ignore all others. Only useful when datums are being emitted to the same metric stream under different units.
This field has been renamed from plain unit to clearly communicate
its purpose.
Default: - Refer to all metric datums
@Stability(value=Stable) static MetricStatConfig.Builder builder()
MetricStatConfig.Builder of MetricStatConfigCopyright © 2023. All rights reserved.