GenericEvent Message data...

Hi all.

I need to intercept a GenericEvent and then use message data to do great things. My problem is that when receive message notification, into message data I can’t find message payload. In other word I find the name and many other info, but not the payload sent by my external producer.

Where I can find it ?

Thanks.

Ciao.

Gigi

Event data will not include “payload” there is no way to get that unfortunately. As a workaround, it is possible to use Analytics events instead of GenericEvent.

Why the GenericEvent don’t include payload ? Very strange.

In any case, I can’t use Analytics events as workaround, because I have to catch external events sent by external system that send me message data that I must to parse and eventually, create alarm line. In my mind the most simple way to do it, is to receive Generic events that matches regular expression on port 1234. By my NewEventsIndication Handler, i catch the event, parse it and then create AlarmLine.

Exist some other way to do it ?

Thanks.

Ciao.

Gigi

The design of generic events is very old, it has always been like that and there are no plans for changing it.

Thinking about a possible workaround..

You can receive port 1234 and get the content unmodified, then you can omit the generic events in XProtect and then you can instead submit alarms or events (E.g. Analytics Events) to XProtect. To listen for and receive this communication is not MIP SDK so when implementing your own service/application to do it there is no help from the MIP SDK. There is in the MIP SDK however the needed functionality to raise alarms and other events.