libZSservicesZSamazonka-lookoutmetricsZSamazonka-lookoutmetrics
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.LookoutMetrics.Types.Metric

Description

 
Synopsis

Documentation

data Metric Source #

A calculation made by contrasting a measure and a dimension from your source data.

See: newMetric smart constructor.

Constructors

Metric' 

Fields

Instances

Instances details
Eq Metric Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Metric

Methods

(==) :: Metric -> Metric -> Bool #

(/=) :: Metric -> Metric -> Bool #

Read Metric Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Metric

Show Metric Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Metric

Generic Metric Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Metric

Associated Types

type Rep Metric :: Type -> Type #

Methods

from :: Metric -> Rep Metric x #

to :: Rep Metric x -> Metric #

NFData Metric Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Metric

Methods

rnf :: Metric -> () #

Hashable Metric Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Metric

Methods

hashWithSalt :: Int -> Metric -> Int #

hash :: Metric -> Int #

ToJSON Metric Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Metric

FromJSON Metric Source # 
Instance details

Defined in Amazonka.LookoutMetrics.Types.Metric

type Rep Metric Source # 
Instance details

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))))

newMetric Source #

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_namespace :: Lens' Metric (Maybe Text) Source #

The namespace for the metric.

metric_metricName :: Lens' Metric Text Source #

The name of the metric.

metric_aggregationFunction :: Lens' Metric AggregationFunction Source #

The function with which the metric is calculated.