Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data Metric = Metric' {}
- newMetric :: Text -> AggregationFunction -> Metric
- metric_namespace :: Lens' Metric (Maybe Text)
- metric_metricName :: Lens' Metric Text
- metric_aggregationFunction :: Lens' Metric AggregationFunction
Documentation
A calculation made by contrasting a measure and a dimension from your source data.
See: newMetric
smart constructor.
Metric' | |
|
Instances
Eq Metric Source # | |
Read Metric Source # | |
Show Metric Source # | |
Generic Metric Source # | |
NFData Metric Source # | |
Defined in Amazonka.LookoutMetrics.Types.Metric | |
Hashable Metric Source # | |
Defined in Amazonka.LookoutMetrics.Types.Metric | |
ToJSON Metric Source # | |
Defined in Amazonka.LookoutMetrics.Types.Metric | |
FromJSON Metric Source # | |
type Rep Metric Source # | |
Defined in Amazonka.LookoutMetrics.Types.Metric type Rep Metric = D1 ('MetaData "Metric" "Amazonka.LookoutMetrics.Types.Metric" "libZSservicesZSamazonka-lookoutmetricsZSamazonka-lookoutmetrics" 'False) (C1 ('MetaCons "Metric'" 'PrefixI 'True) (S1 ('MetaSel ('Just "namespace") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "metricName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "aggregationFunction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AggregationFunction)))) |
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:namespace:Metric'
, metric_namespace
- The namespace for the metric.
$sel:metricName:Metric'
, metric_metricName
- The name of the metric.
$sel:aggregationFunction:Metric'
, metric_aggregationFunction
- The function with which the metric is calculated.
metric_aggregationFunction :: Lens' Metric AggregationFunction Source #
The function with which the metric is calculated.