APPSTATE - Teradata Ecosystem Manager

Teradata Ecosystem Manager Event System API Reference

Product
Teradata Ecosystem Manager
Release Number
15.11
Published
May 2016
Language
English (United States)
Last Update
2018-05-03
dita:mapPath
nxw1467305977314.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-3204
lifecycle
previous
Product Category
Analytical Ecosystem
#include <tmsmapi.h>
//initialize Api
pCtx = TM_Init();
//Create Event placeholder.
pApplicationStateEvent = MSM_CreateWEvent(pCtx,NULL);
pApplicationStateEvent->eventType=APPSTATEEVENT;//set event type
pApplicationStateEvent->szTDPID=L”sampleTDPID”;//set TDPID
pApplicationStateEvent->iStateCode=10;//set statecode
pApplicationStateEvent->szApplicationId=L"SampleApplication";//set application id
status=MSM_SendWEvent(pCtx,pApplicationStateEvent);//send event
MSM_FreeAndClearWEventMembers(pCtx, pApplicationStateEvent);
//Free event. Do not forget to call this
MSM_FreeWEvent(pCtx, pApplicationStateEvent);
//Free Context.do not forget to call this.
TM_Free(pCtx);