libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch
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.CloudWatch.Types.Metric

Description

 
Synopsis

Documentation

data Metric Source #

Represents a specific metric.

See: newMetric smart constructor.

Constructors

Metric' 

Fields

Instances

Instances details
Eq Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Methods

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

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

Read Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Show Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Generic Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Associated Types

type Rep Metric :: Type -> Type #

Methods

from :: Metric -> Rep Metric x #

to :: Rep Metric x -> Metric #

NFData Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Methods

rnf :: Metric -> () #

Hashable Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

Methods

hashWithSalt :: Int -> Metric -> Int #

hash :: Metric -> Int #

ToQuery Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

FromXML Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

type Rep Metric Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Metric

type Rep Metric = D1 ('MetaData "Metric" "Amazonka.CloudWatch.Types.Metric" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "Metric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Dimension])))))

newMetric :: Metric 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:metricName:Metric', metric_metricName - The name of the metric. This is a required field.

$sel:namespace:Metric', metric_namespace - The namespace of the metric.

$sel:dimensions:Metric', metric_dimensions - The dimensions for the metric.

metric_metricName :: Lens' Metric (Maybe Text) Source #

The name of the metric. This is a required field.

metric_namespace :: Lens' Metric (Maybe Text) Source #

The namespace of the metric.

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

The dimensions for the metric.