Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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 :

installation
npm install --save https://github.com/spinalcom/spinal-models-timeSeries.git
  • Import and instantiate

import
var TimeSeries = require("spinal-models-timeSeries").TimeSeries;

var timeSeries = new TimeSeries();



Methods :

addToTimeSeries

getTimeSeriesCurrentValue

getTimeSeriesBetweenDates

getDateValue

removeDate

archiveDate

getDateArchived

archiveDataPerDay

  • No labels