amazonka-autoscaling-2.0: Amazon Auto Scaling SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AutoScaling.Types.Metric

Description

 
Synopsis

Documentation

data Metric Source #

Represents a specific metric.

See: newMetric smart constructor.

Constructors

Metric' 

Fields

Instances

Instances details
ToQuery Metric Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Metric

FromXML Metric Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Metric

Generic Metric Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Metric

Associated Types

type Rep Metric :: Type -> Type #

Methods

from :: Metric -> Rep Metric x #

to :: Rep Metric x -> Metric #

Read Metric Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Metric

Show Metric Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Metric

NFData Metric Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Metric

Methods

rnf :: Metric -> () #

Eq Metric Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Metric

Methods

(==) :: Metric -> Metric -> Bool #

(/=) :: Metric -> Metric -> Bool #

Hashable Metric Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Metric

Methods

hashWithSalt :: Int -> Metric -> Int #

hash :: Metric -> Int #

type Rep Metric Source # 
Instance details

Defined in Amazonka.AutoScaling.Types.Metric

type Rep Metric = D1 ('MetaData "Metric" "Amazonka.AutoScaling.Types.Metric" "amazonka-autoscaling-2.0-IerpHfP4BA3Ir4ZL2IR1De" 'False) (C1 ('MetaCons "Metric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricDimension])) :*: (S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newMetric Source #

Create a value of Metric 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:dimensions:Metric', metric_dimensions - The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

$sel:namespace:Metric', metric_namespace - The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

$sel:metricName:Metric', metric_metricName - The name of the metric.

metric_dimensions :: Lens' Metric (Maybe [MetricDimension]) Source #

The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.

metric_namespace :: Lens' Metric Text Source #

The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.

metric_metricName :: Lens' Metric Text Source #

The name of the metric.