libZSservicesZSamazonka-mediastoreZSamazonka-mediastore
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.MediaStore.Types.MetricPolicy

Description

 
Synopsis

Documentation

data MetricPolicy Source #

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.

See: newMetricPolicy smart constructor.

Constructors

MetricPolicy' 

Fields

Instances

Instances details
Eq MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Read MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Show MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Generic MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Associated Types

type Rep MetricPolicy :: Type -> Type #

NFData MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

Methods

rnf :: MetricPolicy -> () #

Hashable MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

ToJSON MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

FromJSON MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

type Rep MetricPolicy Source # 
Instance details

Defined in Amazonka.MediaStore.Types.MetricPolicy

type Rep MetricPolicy = D1 ('MetaData "MetricPolicy" "Amazonka.MediaStore.Types.MetricPolicy" "libZSservicesZSamazonka-mediastoreZSamazonka-mediastore" 'False) (C1 ('MetaCons "MetricPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricPolicyRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty MetricPolicyRule))) :*: S1 ('MetaSel ('Just "containerLevelMetrics") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ContainerLevelMetrics)))

newMetricPolicy Source #

Create a value of MetricPolicy with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:metricPolicyRules:MetricPolicy', metricPolicy_metricPolicyRules - 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.

$sel:containerLevelMetrics:MetricPolicy', metricPolicy_containerLevelMetrics - A setting to enable or disable metrics at the container level.

metricPolicy_metricPolicyRules :: Lens' MetricPolicy (Maybe (NonEmpty MetricPolicyRule)) Source #

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.

metricPolicy_containerLevelMetrics :: Lens' MetricPolicy ContainerLevelMetrics Source #

A setting to enable or disable metrics at the container level.