@smartcloud/operations

0.0.3 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @smartcloud/operations

Weekly Downloads

1

Version

0.0.3

License

Apache-2.0

Last publish

Collaborators

  • spt-arif
  • jacrowland1
  • spt-edison
  • alexkozlov
  • deanscratcherd
  • kin.chan
  • mib1085
  • connorsage