Interface MetricProps
- All Superinterfaces:
CommonMetricOptions,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
MetricProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.881Z")
@Stability(Stable)
public interface MetricProps
extends software.amazon.jsii.JsiiSerializable, CommonMetricOptions
Properties for a metric.
Example:
HostedZone hostedZone = HostedZone.Builder.create(this, "MyHostedZone").zoneName("example.org").build();
Metric metric = Metric.Builder.create()
.namespace("AWS/Route53")
.metricName("DNSQueries")
.dimensionsMap(Map.of(
"HostedZoneId", hostedZone.getHostedZoneId()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forMetricPropsstatic final classAn implementation forMetricProps -
Method Summary
Modifier and TypeMethodDescriptionstatic MetricProps.Builderbuilder()Name of the metric.Namespace of the metric.Methods inherited from interface software.amazon.awscdk.services.cloudwatch.CommonMetricOptions
getAccount, getColor, getDimensions, getDimensionsMap, getLabel, getPeriod, getRegion, getStatistic, getUnitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMetricName
Name of the metric. -
getNamespace
Namespace of the metric. -
builder
- Returns:
- a
MetricProps.BuilderofMetricProps
-