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 |
Synopsis
- data Metric = Metric' {
- dimensions :: Maybe [MetricDimension]
- namespace :: Text
- metricName :: Text
- newMetric :: Text -> Text -> Metric
- metric_dimensions :: Lens' Metric (Maybe [MetricDimension])
- metric_namespace :: Lens' Metric Text
- metric_metricName :: Lens' Metric Text
Documentation
Represents a specific metric.
See: newMetric
smart constructor.
Metric' | |
|
Instances
ToQuery Metric Source # | |
Defined in Amazonka.AutoScaling.Types.Metric toQuery :: Metric -> QueryString # | |
FromXML Metric Source # | |
Generic Metric Source # | |
Read Metric Source # | |
Show Metric Source # | |
NFData Metric Source # | |
Defined in Amazonka.AutoScaling.Types.Metric | |
Eq Metric Source # | |
Hashable Metric Source # | |
Defined in Amazonka.AutoScaling.Types.Metric | |
type Rep Metric Source # | |
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)))) |
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.