Hi. I am trying to programmatically trigger an event which should subsequently trigger an alarm which will appear in the Alarm Manager. I manage to successfully trigger an event via the API, however, I get the warning message: “Event message not known”. The tag in my XML string corresponds with the Name of the Analytics Event I am trying to trigger, which is linked to the “source” an Alarm Definition - with the same name. Please see detailed steps I took.
- In the management client, I created a new Analytics Event and named it ‘test_event’
- I then created a new Alarm definition and set the “Triggering Event” to the “test_event” I had just created - I set the “Sources” to the first 3 camera channels on my NVR (Recording Server)
- When I click the “Test Event” button on my Analytics Event, it successfully triggers the alarm and I can see it appear in the Alarm manager on the Smart Client
I then attempted to trigger the event programmatically using the XML Analytics Events API Trigger via a Socket. My request returns a Success with status code 200, however, the alarm does not appear in the alarm manager on the Smart Client, furthermore, the requests gives the warning message “Event message not known”. Please see below, the XML string I am using in my request
00000000-0000-0000-0000-000000000000
2023-07-20T09:14:39.7342498+01:00
test_event
test_event
192.168.10.55,0
As you can see, I am setting the tag to “test_event” which, according to the documentation, is supposed to correspond with the name of the Analytics Event that is linked to the alarm (in order to trigger the alarm). Under the
According to the documentation, if the tag is not set correctly to correspond with the correct Analytics Event linked to the Alarm Definition, then the alarm will not be triggered. Furthermore, If I specify the wrong input source for the event that does not correspond to the list of sources on the alarm definition, then the event will not be triggered.
I just don’t see what I’m doing wrong. My tag aligns with my Event Name (I set the Alarm Name to the same thing, just in case) and then the IP address of the NVR along with the channel number is correct according to the alarm definition. I followed these documentation entries:
http://download.milestonesys.com/MIPSDK/Samples/TriggerAlarmFromExternal-ConceptSolution.pdf
As a second problem, I wanted to try use the FQID in the
I appreciate any help or suggestions you can provide, perhaps I am missing the mark completely in my interpretation of the docs.
TIA