How to get video recording associated to an alarm in Protocol Integration?

My final goal is to get the several seconds recordings associated with an Alarm that is generated by external code using protocol integration.

I created a User Defined event named DEMO

I have a rule that will record a video on DEMO event for the device from the metadata of the event.

Then when I create an Event with SOAP

```

event = factory.BaseEvent(**{

     "EventHeader": {

      "ID": uuid.uuid4(),

      "Timestamp": datetime.now(),

      "Type": 'DEMO',

      "Priority": 1,

      "PriorityName": "High",

      "Name": "DEMO",

      "Message": "EVENT TEST",

      "Source": vms.\_compose\_source(camera\_guid)

    }})

```

I send it by using AddEvent of Central/AlarmServiceToken?wsdl

Nevertheless, my rules do not triggers to record of a video.

When I create an Alarm directly by using the method Add of the same service I can see my alarm in SmartClient and the camera is correctly associated. But I don’t have a 3 second record from this camera , and It says No recording available when I double click the alarm in Alarm Manager.

User-defined Events are triggered using Server Command Service. My guess is that you are triggering Analytics Events instead.

https://doc.developer.milestonesys.com/html/index.html?base=serversoaphelp/index.html&tree=tree_3.html

@Rie Kiuchi (Milestone Systems)​ I will try that endpoint.

General question: where should I look up the description of an endpoint to understand that AddEvent = Analytics Event and EventTrigger = User-Defined Event ? If I understand correctly, the good way is to read about the whole Service and then infer the particular endpoints’ usage?

Ah, I think I should look at the description of classes associated with each service.

@Rie Kiuchi (Milestone Systems)​ How to get user-defined event guid by event name with Protocol Integration ?

Found it :sweat_smile: it’s ‘EventTypes’ in /ManagementServer/ServerCommandService.svc?wsdl

getConfiguration endpoint