@ikonintegration/mod-resources-tracker-client
v0.1.1
Published
Module resources tracker client
Downloads
376
Readme
module-resources-tracker-client
Resources tracker module nodejs API client
Overall
How to Use
import RTClient from '@ikonintegration/mod-resources-tracker-client';
const client = new RTClient({ busName: 'XXXX', region: 'ev-region', source: 'myappname' });
//Appends events
client.appendEvent(RTCClient.newDynamoEvent(tableName, 0, 15));
//drains the pool
await client.drain();
Available Claim Events
Product:
- API.newDynamoEvent(tableName, readUnits, writeUnits)
- API.newECSExecutionEvent(taskID, containerInstanceID, moreDetails)
- API.newLambdaInvocationEvent(invocationID)
- API.newSearchEvent(clusterID, queryCount)
- API.newStepFunctionExecutionEvent(invocationID)