JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 17
  • Score
    100M100P100Q46510F
  • License MIT

Module to perform CRUD operations on Whisper, the RRD database.

Package Exports

  • whisperdb

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (whisperdb) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

whisperdb

A npm module for performing CRUD operations on the Whisper rrd database.

Usage

whisperdb is easy to use:

var whisper = require('whisper');

//Creates a whisper file with the name at the path mentioned.

whisper.create(absPath, name, pointPattern, function(){
    //callback routine
});

//Updates the whisper file with the values in timeSeriesArray
//timeSeriesArray - JSON with all the key value pairs. Key is the epoch time, value is the corresponding value to be updated in whisper file.	

whisper.update(absPath, timeSeriesArray, function(){
    //callback routine
});

//Copies content of source to destination if not present.

whisper.fill(srcPath, dstPath, function(){
    //callback routine
});

//Merge two separate whisper files.

whisper.merge(fromPath, toPath, function(){
    //callback routine
});