Operations Module of SmartCloud Utility Library for Node.js
npm install @smartcloud/operationsOperations Module of SmartCloud Utility Library for Node.js
sh
$ npm install --save @smartcloud/operations
`$3
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.
$3
`js
const SmartCloudOps = require('@smartcloud/operations');var ops = new SmartCloudOps.SmartCloudOperations();
`` 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