How can I add a map to an AnalyticsEvent in a PlugIn?

I can add a camera to a trigger, but how can I add a map?

EventHeader eventHeader = new EventHeader()

               {

                   ID = Guid.NewGuid(),

                   Class = "Operational",

                   Type = "DoorState",

                   Timestamp = DateTime.Now,

                   Message = "Door open",

                   Name = [door.Name](https://door.Name),

                   Source = new EventSource { FQID = door.FQID, Name = [door.Name](https://door.Name) },

                   CustomTag = "Door info"

               };

               AnalyticsEvent eventData = new AnalyticsEvent

               {

                   EventHeader = eventHeader

               };

               if (cameraFQID != null)

               {

                   eventData.ReferenceList = new ReferenceList();

                   eventData.ReferenceList.Add(new Reference() { FQID = cameraFQID });

You can add a camera to an AnalyticsEvent as you correctly outline.

You cannot in the same way add a map.

When you make an Alarm Definiton you can set an related map for the alarm.

PS. As it is right now you cannot create Alarm Definitions using the MIP SDK , Alarm Definitions will have to be created manually in the Management Client.

Thanks for the answer.

This feature would make things a lot easier and save configuration work.

Would be a good thing for the next release.

In the MIP SDK 2018R1 coming shortly you can now work with time profiles, user-defined events, analytics events and generic events in the Configuration API. This a step towards also being capable of supporting alarm definitions. Alarm definitions will be added later but right now there is no schedule which can be announced.

Ok, thanks…:slightly_smiling_face: