Introduction :
A time series is a series of numerical values representing the evolution of a specific quantity over time. this API allows easy management of these data.
Usage :
To use the spinalTimeSeries API, you must :
Install :
Code Block | ||||
---|---|---|---|---|
| ||||
npm install --save https://github.com/spinalcom/spinal-models-timeSeries.git |
...
Import and instantiate
Code Block | ||
---|---|---|
| ||
var TimeSeries = require("spinal-models-timeSeries").TimeSeries; // import var timeSeries = new TimeSeries(); // instantiate |
Methods :
addToTimeSeries
getTimeSeriesCurrentValue
getTimeSeriesBetweenDates
getDateValue
removeDate
archiveDate
getDateArchived
...