Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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
languagebash
titleinstallationInstallation
npm install --save https://github.com/spinalcom/spinal-models-timeSeries.git

...

  • Import and instantiate

Code Block
titleimportImport and Instantiate
var TimeSeries = require("spinal-models-timeSeries").TimeSeries; // import

var timeSeries = new TimeSeries(); // instantiate



Methods :

addToTimeSeries

getTimeSeriesCurrentValue

getTimeSeriesBetweenDates

getDateValue

removeDate

archiveDate

getDateArchived

...

new TimeSeries()