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();