| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudWatch.Types.Dimension
Description
Synopsis
- data Dimension = Dimension' {}
- newDimension :: Text -> Text -> Dimension
- dimension_name :: Lens' Dimension Text
- dimension_value :: Lens' Dimension Text
Documentation
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
| |
Instances
| ToQuery Dimension Source # | |
Defined in Amazonka.CloudWatch.Types.Dimension Methods toQuery :: Dimension -> QueryString # | |
| FromXML Dimension Source # | |
| Generic Dimension Source # | |
| Read Dimension Source # | |
| Show Dimension Source # | |
| NFData Dimension Source # | |
Defined in Amazonka.CloudWatch.Types.Dimension | |
| Eq Dimension Source # | |
| Hashable Dimension Source # | |
Defined in Amazonka.CloudWatch.Types.Dimension | |
| type Rep Dimension Source # | |
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))) | |
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.