16.20 - STEP - Teradata Ecosystem Manager

Teradata® Ecosystem Manager API Reference

prodname
Teradata Ecosystem Manager
vrm_release
16.20
created_date
December 2020
category
Programming Reference
featnum
B035-3204-107K
#include <tmsmapi.h>
//initialize Api
pCtx = TM_Init();
//Create MSM_UofW placeholder.
pUOW=MSM_CreateUOW(pCtx);
//Create Event placeholder.
pStepEvent = MSM_CreateWEvent(pCtx,pUOW);
pStepEvent->szResourceId=L”sampleResId”;//set resource-id
pStepEvent->eventType=STEPEVENT;//set event type
pStepEvent->szTDPID=L”sampleTDPID”;//set MSM_AddWResourceType(pCtx,pStepEvent,L”FLOAD”);//Add multi-argument resourceType
MSM_AddWLargeActivityCount(pCtx,pStepEvent, L"123456789123456789123456789123456789.12");//Add multi-argument large activityCount
pStepEvent->szJobStep = szJobStep;//set job step
status=MSM_SendWEvent(pCtx,pStepEvent);//send event
MSM_FreeAndClearWEventMembers(pCtx,pStartEvent);
MSM_ClearUofWMembers(pCtx,pUOW);//Free event. Do not forget to call this
MSM_FreeWEvent(pCtx,pSteptEvent);
//Free UnitOfWork. Do not forget to call this.
MSM_FreeUOW(pCtx,pUOW);
//Free Context.do not forget to call this.
TM_Free(pCtx);