| 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.LookoutMetrics.Types.Metric
Description
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.
Constructors
| Metric' | |
Fields
| |
Instances
| FromJSON Metric Source # | |
| ToJSON Metric Source # | |
Defined in Amazonka.LookoutMetrics.Types.Metric | |
| Generic Metric Source # | |
| Read Metric Source # | |
| Show Metric Source # | |
| NFData Metric Source # | |
Defined in Amazonka.LookoutMetrics.Types.Metric | |
| Eq Metric Source # | |
| Hashable Metric Source # | |
Defined in Amazonka.LookoutMetrics.Types.Metric | |
| type Rep Metric Source # | |
Defined in Amazonka.LookoutMetrics.Types.Metric type Rep Metric = D1 ('MetaData "Metric" "Amazonka.LookoutMetrics.Types.Metric" "amazonka-lookoutmetrics-2.0-5gJoMWEA4GrGsqHAPh1b9h" '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)))) | |
Arguments
| :: Text | |
| -> AggregationFunction | |
| -> Metric |
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.