harvest-watch-tower-node

1.0.8 • Public • Published

#Installation

You can simply install the node module for Harvest Watch Tower with the following command:

npm i --save harvest-watch-tower-node

#Initialization const harvestWatchTower = require("harvest-watch-tower-node");

const harvestWatchTowerLog = harvestWatchTower.init({ beamId : "beamId", host : "watchtower.graindata.com", dev : false, token : "token" //Required for non-public beams });

beamId: Required - This is the beam id provided by Watch Tower host: Optional - Default watchtower.graindata.com, can be used to set custom host dev: Optional - Default false, if true logs will not be visible in dashboards token: Required for non-public beams

#Logging There are 6 logging levels:

debug info start done warning error critical

Each has it's own function within your "harvestWatchTowerLog" object.

harvestWatchTowerLog.info({ message : "message", executionId : "executionId", customData : { var1 : "value1" }
})

message: Required - This is your logging message as a string executionId: Required for start and done logging. This is used to check whether a start process has also a done message customData: Optional - Object with custom data variables

Readme

Keywords

none

Package Sidebar

Install

npm i harvest-watch-tower-node

Weekly Downloads

5

Version

1.0.8

License

ISC

Unpacked Size

18.2 kB

Total Files

7

Last publish

Collaborators

  • graindata