public static interface CfnAlarm.MetricProperty
Metric
is a property of the MetricStat property type.
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.*; MetricProperty metricProperty = MetricProperty.builder() .dimensions(List.of(DimensionProperty.builder() .name("name") .value("value") .build())) .metricName("metricName") .namespace("namespace") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnAlarm.MetricProperty.Builder
A builder for
CfnAlarm.MetricProperty |
static class |
CfnAlarm.MetricProperty.Jsii$Proxy
An implementation for
CfnAlarm.MetricProperty |
Modifier and Type | Method and Description |
---|---|
static CfnAlarm.MetricProperty.Builder |
builder() |
default java.lang.Object |
getDimensions()
The metric dimensions that you want to be used for the metric that the alarm will watch..
|
default java.lang.String |
getMetricName()
The name of the metric that you want the alarm to watch.
|
default java.lang.String |
getNamespace()
The namespace of the metric that the alarm will watch.
|
default java.lang.Object getDimensions()
default java.lang.String getMetricName()
This is a required field.
default java.lang.String getNamespace()
static CfnAlarm.MetricProperty.Builder builder()
CfnAlarm.MetricProperty.Builder
of CfnAlarm.MetricProperty