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

Description

 
Synopsis

Documentation

data Dimension Source #

A dimension is a name/value pair that is part of the identity of a metric. You can assign up to 10 dimensions to a metric. Because dimensions are part of the unique identifier for a metric, whenever you add a unique name/value pair to one of your metrics, you are creating a new variation of that metric.

See: newDimension smart constructor.

Constructors

Dimension' 

Fields

  • name :: Text

    The name of the dimension. Dimension names must contain only ASCII characters and must include at least one non-whitespace character.

  • value :: Text

    The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.

Instances

Instances details
Eq Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Read Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Show Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Generic Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Associated Types

type Rep Dimension :: Type -> Type #

NFData Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Methods

rnf :: Dimension -> () #

Hashable Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

ToQuery Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

FromXML Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

type Rep Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

type Rep Dimension = D1 ('MetaData "Dimension" "Amazonka.CloudWatch.Types.Dimension" "libZSservicesZSamazonka-cloudwatchZSamazonka-cloudwatch" 'False) (C1 ('MetaCons "Dimension'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDimension Source #

Create a value of Dimension 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:name:Dimension', dimension_name - The name of the dimension. Dimension names must contain only ASCII characters and must include at least one non-whitespace character.

$sel:value:Dimension', dimension_value - The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.

dimension_name :: Lens' Dimension Text Source #

The name of the dimension. Dimension names must contain only ASCII characters and must include at least one non-whitespace character.

dimension_value :: Lens' Dimension Text Source #

The value of the dimension. Dimension values must contain only ASCII characters and must include at least one non-whitespace character.