# How to use AnalyticEvents using the example: Vaxtor MOBOTIX HUB Event and have a look into the Metadaten within an Alarm

**URL:** <https://community.mobotix.com/t/how-to-use-analyticevents-using-the-example-vaxtor-mobotix-hub-event-and-have-a-look-into-the-metadaten-within-an-alarm/3765>\
**Category:** FAQ\
**Tags:** alarms, vaxtor, mxhub, metadata\
**Created:** [March 12, 2021, 9:57am UTC](https://community.mobotix.com/t/how-to-use-analyticevents-using-the-example-vaxtor-mobotix-hub-event-and-have-a-look-into-the-metadaten-within-an-alarm/3765 "2021-03-12T09:57:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mx-MaikC](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.mobotix.com/mx-maikc/32/1179_2.png) [@Mx-MaikC](https://community.mobotix.com/u/Mx-MaikC)\
**Post date:** [March 12, 2021, 9:57am UTC](https://community.mobotix.com/t/how-to-use-analyticevents-using-the-example-vaxtor-mobotix-hub-event-and-have-a-look-into-the-metadaten-within-an-alarm/3765/1 "2021-03-12T09:57:40Z")

</div>

The Vaxtor apps offer in their integration interface to send your metadata to the MxHub directly.

In this case, the metadata can be viewed in an MxHub alarm.

To send data directly from the app to the MxHub, you need to proceed as follows.

_ **1. Activate Milestone Analytic Event in the camera.** _

**Setup Menu: Certified Apps → Vaxtor App → Reporting → Milestone Analytic Event.**

Now enter the following data:

- **URL: “Address of Milestone Server:Port of Analytic Event”.**

- **Camera Name: Enter the IP address or camera name of the camera in your MxHub system that should receive the data.**  

* * *

_ **2. Prepare MxHub to receive Analytic Events** _

**- ManagementClient → Tools → Options → Analytic Events**

=\>Check the box **Enabled**

=\> Enter port: Default port **9090** , This must also be entered in the Vaxtor app if it is changed.

=\> Now you can decide if every address can send an analytic event or if the reception is limited to certain addresses only.

 ![Options](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/d/d80fb2db936897abfef00f020bbfe249df78cb98.png)

* * *

_ **3. Create Analytic Event** _

**- ManagementClient → Rules and Events → Analytics Events**

- Add a new Analytics event, by Right Click → **Add new…**

=\> The name must be as follows for the Vaxtor application: **VaxALPR On Camera Event**

The name must be explicitly named so.

 ![Anayltic Event](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/b/bdae88d1de0a8cc509801a447e172bfd3f40d68a.png)

* * *

_ **Explanation of the name:** _

_The Vaxtor app sends its metadata in a certain format (XML) and MxHub expects a certain structure._

_The name is contained in the “Message” section._

_If you take a closer look at the sent message, the app itself sends the following data: “Image data has been removed due to clarity”._

 ![XML Daten](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/5/59f230e5da410d169a986e5a53064380ef5053ac.png)

Message names for AI-Tech Apps:  
AITraffic: **Road**  
AIBiodeep: **Bio**  
AICrowdDeep: **Overcrowd**  
AIFacedetect: **Face**  
AIFire: **Fire**  
AIIntrusionPro: **Sterile\_Zone, Crossing\_Line, Intrusion\_Pro**  
AILoitering: **Loitering**  
AILost: **Lost**  
AIParking: **Parking\_Spot\_Change, Parking\_Lot**

* * *

_ **4. Create alarm and view the metadata in an alarm** _

- **ManagementClient → Alarms → Alarm Definitions**

- **Add a new alarm**

=\> Name can be freely assigned Ex: S74-VaxALPR

=\> Trigger Event: **Analytics Event**

=\> Select the created Analytics Event: **“VaxALPR On Camera Event”**.

=\> Sources: Select the camera to which the metadata was sent: Ex: S74-VaxALPR

=\> Time profile: here you can decide when the alarm should be active

=\> Map: Here you can decide whether the alarm is displayed on a pro app or on your own map.

=\> Initial Alarm Owner: **Select your system**.

=\> Initial alarm priority: **Select the desired priority**

 ![Alarmevent](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/a/ad3a5ff36a95550a1def0ee20249d5e72b0a1e0e.png)

Now the ManagemetClient automatically sends an alarm to the HubDesk application after receiving the metadata.

* * *

_ **5. Enable alarms and notifications in the Hub Desk.** _

To receive alarm notifications in HubDesk, you must enable them

**→ Settings → Alarm Manager**

→ There you can decide if the sound should be played that was specified in the ManagementClient or not

→ Here you can manually activate the desktop notification or accept the options set in the ManagementClient. You can find these in the ManagementClient under : **HubDeskt Profile → Alarm Manager**

 ![Alarm Maneger Smart Client](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/3/31dac3148beae221f70896135c007c58c05de3d3.png)

Generally, the app sends an alarm image from the time it has performed a detection.

You can view this under **“Alarm Manager”**.

If you additionally configure a recording through the Analytic Events, you will also receive the recording.

 ![Alarm Event Bild.PNG](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/e/e83ca5a1a74422d4cee7378110ff0f39acfa6731.jpeg)

If you click on an alarm in the alarm list with the right mouse button and click on **Edit** , you will receive, in addition to the recording, the metadata supplied, such as the following Licenseplate

 ![Alarm Metadaten](https://canada1.discourse-cdn.com/flex030/uploads/mobotix/original/2X/4/40f3545bf7bc5d25f91a38715c75b7be03e272ff.png)
