RQ_APPST - Teradata Ecosystem Manager

Teradata Ecosystem Manager API Reference

Product
Teradata Ecosystem Manager
Release Number
16.10
Published
June 2017
Language
English (United States)
Last Update
2018-03-29
dita:mapPath
crq1488477755125.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.
pRequestApplicationStateEvent = MSM_CreateWEvent(pCtx,NULL);

pRequestApplicationStateEvent->eventType=RQ_APPSTEVENT;//set event type
pRequestApplicationStateEvent->szTDPID=L”ampleTDPID”;//set TDPID
pRequestApplicationStateEvent->iStateCode=10;//set state code
pRequestApplicationStateEvent
->szApplicationId=L"SampleApplication";//set application id
status=MSM_SendWEvent(pCtx,pRequestApplicationStateEvent);//send event

MSM_FreeAndClearWEventMembers(pCtx, pRequestApplicationStateEvent);
//Free event. Do not forget to call this
MSM_FreeWEvent(pCtx, pRequestApplicationStateEvent);
//Free Context.do not forget to call this.
TM_Free(pCtx);