0.0.3 • Published 7 years ago

@smartcloud/operations v0.0.3

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
7 years ago

@smartcloud/operations

Operations Module of SmartCloud Utility Library for Node.js

npm installation

$ npm install --save @smartcloud/operations

Initialization

The module has core class named "SmartCloudOperations". To initialize an SmartCloudOperations object, pass the follow parameters.

* maxRetries - (optional) specify maximum number of times that process can retry in case of failure.  If not specified, default will be 10.

Sample usage

const SmartCloudOps = require('@smartcloud/operations');

var ops = new SmartCloudOps.SmartCloudOperations();

Methods

  • updateOperation(operationDetails) method - Update operation based on operation details passed. Expected operationDetails' properties functionName - function name related to this operation status - current operation's relevant status message - update message * fact - relevant generic SmartCloud fact details