libZSservicesZSamazonka-piZSamazonka-pi
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.Pi.Types.DataPoint

Description

 
Synopsis

Documentation

data DataPoint Source #

A timestamp, and a single numerical value, which together represent a measurement at a particular point in time.

See: newDataPoint smart constructor.

Constructors

DataPoint' 

Fields

  • timestamp :: POSIX

    The time, in epoch format, associated with a particular Value.

  • value :: Double

    The actual value associated with a particular Timestamp.

Instances

Instances details
Eq DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Read DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Show DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Generic DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Associated Types

type Rep DataPoint :: Type -> Type #

NFData DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Methods

rnf :: DataPoint -> () #

Hashable DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

FromJSON DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

type Rep DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

type Rep DataPoint = D1 ('MetaData "DataPoint" "Amazonka.Pi.Types.DataPoint" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "DataPoint'" 'PrefixI 'True) (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double)))

newDataPoint Source #

Create a value of DataPoint 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:timestamp:DataPoint', dataPoint_timestamp - The time, in epoch format, associated with a particular Value.

$sel:value:DataPoint', dataPoint_value - The actual value associated with a particular Timestamp.

dataPoint_timestamp :: Lens' DataPoint UTCTime Source #

The time, in epoch format, associated with a particular Value.

dataPoint_value :: Lens' DataPoint Double Source #

The actual value associated with a particular Timestamp.