MetricPolicy class

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.

Constructors

MetricPolicy({required ContainerLevelMetrics containerLevelMetrics, List<MetricPolicyRule>? metricPolicyRules})
MetricPolicy.fromJson(Map<String, dynamic> json)
factory

Properties

containerLevelMetrics ContainerLevelMetrics
A setting to enable or disable metrics at the container level.
final
hashCode int
The hash code for this object.
no setterinherited
metricPolicyRules List<MetricPolicyRule>?
A parameter that holds an array of rules that enable metrics at the object level. This parameter is optional, but if you choose to include it, you must also include at least one rule. By default, you can include up to five rules. You can also request a quota increase to allow up to 300 rules per policy.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited