@Stability(value=Stable)
public static interface CfnAlarm.MetricStatProperty
extends software.amazon.jsii.JsiiSerializable
// 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.*;
MetricStatProperty metricStatProperty = MetricStatProperty.builder()
.metric(MetricProperty.builder()
.dimensions(List.of(DimensionProperty.builder()
.name("name")
.value("value")
.build()))
.metricName("metricName")
.namespace("namespace")
.build())
.period(123)
.stat("stat")
// the properties below are optional
.unit("unit")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnAlarm.MetricStatProperty.Builder
A builder for
CfnAlarm.MetricStatProperty |
static class |
CfnAlarm.MetricStatProperty.Jsii$Proxy
An implementation for
CfnAlarm.MetricStatProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnAlarm.MetricStatProperty.Builder |
builder() |
Object |
getMetric()
`CfnAlarm.MetricStatProperty.Metric`.
|
Number |
getPeriod()
`CfnAlarm.MetricStatProperty.Period`.
|
String |
getStat()
`CfnAlarm.MetricStatProperty.Stat`.
|
default String |
getUnit()
`CfnAlarm.MetricStatProperty.Unit`.
|
@Stability(value=Stable) @NotNull Object getMetric()
@Stability(value=Stable) @NotNull Number getPeriod()
@Stability(value=Stable) @NotNull String getStat()
@Stability(value=Stable) @Nullable default String getUnit()
@Stability(value=Stable) static CfnAlarm.MetricStatProperty.Builder builder()
Copyright © 2021. All rights reserved.