Interface CfnContainer.MetricPolicyProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnContainer.MetricPolicyProperty.Jsii$Proxy
Enclosing class:
CfnContainer

@Stability(Stable) public static interface CfnContainer.MetricPolicyProperty extends software.amazon.jsii.JsiiSerializable
The metric policy that is associated with the container.

A metric policy allows AWS Elemental MediaStore to send metrics to Amazon CloudWatch. In the policy, you must indicate whether you want MediaStore to send container-level metrics. You can also include rules to define groups of objects that you want MediaStore to send object-level metrics for.

To view examples of how to construct a metric policy for your use case, see Example Metric Policies .

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.mediastore.*;
 MetricPolicyProperty metricPolicyProperty = MetricPolicyProperty.builder()
         .containerLevelMetrics("containerLevelMetrics")
         // the properties below are optional
         .metricPolicyRules(List.of(MetricPolicyRuleProperty.builder()
                 .objectGroup("objectGroup")
                 .objectGroupName("objectGroupName")
                 .build()))
         .build();
 

See Also: