class Aws::MediaStore::Types::MetricPolicy

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].

[1]: docs.aws.amazon.com/mediastore/latest/ug/policies-metric-examples.html

@note When making an API call, you may pass MetricPolicy

data as a hash:

    {
      container_level_metrics: "ENABLED", # required, accepts ENABLED, DISABLED
      metric_policy_rules: [
        {
          object_group: "ObjectGroup", # required
          object_group_name: "ObjectGroupName", # required
        },
      ],
    }

@!attribute [rw] container_level_metrics

A setting to enable or disable metrics at the container level.
@return [String]

@!attribute [rw] metric_policy_rules

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][1] to allow up to 300 rules per policy.

[1]: https://console.aws.amazon.com/servicequotas/home?region=us-east-1#!/services/mediastore/quotas
@return [Array<Types::MetricPolicyRule>]

@see docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/MetricPolicy AWS API Documentation

Constants

SENSITIVE