amazonka-cloudwatch-2.0: Amazon CloudWatch 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.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. 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. For example, many Amazon EC2 metrics publish InstanceId as a dimension name, and the actual instance ID as the value for that dimension.

You can assign up to 30 dimensions to a metric.

See: newDimension smart constructor.

Constructors

Dimension' 

Fields

  • name :: Text

    The name of the dimension. Dimension names must contain only ASCII characters, must include at least one non-whitespace character, and cannot start with a colon (:).

  • 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
ToQuery Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

FromXML 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 #

Read Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Show Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

NFData Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Methods

rnf :: Dimension -> () #

Eq Dimension Source # 
Instance details

Defined in Amazonka.CloudWatch.Types.Dimension

Hashable 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" "amazonka-cloudwatch-2.0-9xq2AWTkbYo3pEtgQNn4jD" '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, must include at least one non-whitespace character, and cannot start with a colon (:).

$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, must include at least one non-whitespace character, and cannot start with a colon (:).

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.