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 |
Documentation
data TimeSeriesDataPoint Source #
The timeseries data type represents the values of a measure over time. A time series is an array of rows of timestamps and measure values, with rows sorted in ascending order of time. A TimeSeriesDataPoint is a single data point in the time series. It represents a tuple of (time, measure value) in a time series.
See: newTimeSeriesDataPoint
smart constructor.
Instances
newTimeSeriesDataPoint Source #
Create a value of TimeSeriesDataPoint
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:time:TimeSeriesDataPoint'
, timeSeriesDataPoint_time
- The timestamp when the measure value was collected.
$sel:value:TimeSeriesDataPoint'
, timeSeriesDataPoint_value
- The measure value for the data point.
timeSeriesDataPoint_time :: Lens' TimeSeriesDataPoint Text Source #
The timestamp when the measure value was collected.
timeSeriesDataPoint_value :: Lens' TimeSeriesDataPoint Datum Source #
The measure value for the data point.