libZSservicesZSamazonka-iotZSamazonka-iot
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.IoT.Types.MetricValue

Description

 
Synopsis

Documentation

data MetricValue Source #

The value to be compared with the metric.

See: newMetricValue smart constructor.

Constructors

MetricValue' 

Fields

  • cidrs :: Maybe [Text]

    If the comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared with the metric.

  • count :: Maybe Natural

    If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be compared with the metric.

  • ports :: Maybe [Natural]

    If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with the metric.

  • numbers :: Maybe [Double]

    The numeral values of a metric.

  • number :: Maybe Double

    The numeral value of a metric.

  • strings :: Maybe [Text]

    The string values of a metric.

Instances

Instances details
Eq MetricValue Source # 
Instance details

Defined in Amazonka.IoT.Types.MetricValue

Read MetricValue Source # 
Instance details

Defined in Amazonka.IoT.Types.MetricValue

Show MetricValue Source # 
Instance details

Defined in Amazonka.IoT.Types.MetricValue

Generic MetricValue Source # 
Instance details

Defined in Amazonka.IoT.Types.MetricValue

Associated Types

type Rep MetricValue :: Type -> Type #

NFData MetricValue Source # 
Instance details

Defined in Amazonka.IoT.Types.MetricValue

Methods

rnf :: MetricValue -> () #

Hashable MetricValue Source # 
Instance details

Defined in Amazonka.IoT.Types.MetricValue

ToJSON MetricValue Source # 
Instance details

Defined in Amazonka.IoT.Types.MetricValue

FromJSON MetricValue Source # 
Instance details

Defined in Amazonka.IoT.Types.MetricValue

type Rep MetricValue Source # 
Instance details

Defined in Amazonka.IoT.Types.MetricValue

newMetricValue :: MetricValue Source #

Create a value of MetricValue 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:cidrs:MetricValue', metricValue_cidrs - If the comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared with the metric.

$sel:count:MetricValue', metricValue_count - If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be compared with the metric.

$sel:ports:MetricValue', metricValue_ports - If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with the metric.

$sel:numbers:MetricValue', metricValue_numbers - The numeral values of a metric.

$sel:number:MetricValue', metricValue_number - The numeral value of a metric.

$sel:strings:MetricValue', metricValue_strings - The string values of a metric.

metricValue_cidrs :: Lens' MetricValue (Maybe [Text]) Source #

If the comparisonOperator calls for a set of CIDRs, use this to specify that set to be compared with the metric.

metricValue_count :: Lens' MetricValue (Maybe Natural) Source #

If the comparisonOperator calls for a numeric value, use this to specify that numeric value to be compared with the metric.

metricValue_ports :: Lens' MetricValue (Maybe [Natural]) Source #

If the comparisonOperator calls for a set of ports, use this to specify that set to be compared with the metric.

metricValue_numbers :: Lens' MetricValue (Maybe [Double]) Source #

The numeral values of a metric.

metricValue_number :: Lens' MetricValue (Maybe Double) Source #

The numeral value of a metric.

metricValue_strings :: Lens' MetricValue (Maybe [Text]) Source #

The string values of a metric.