How to retrieve analytics event in Protocol integration and how to filter analytics event by ID and start/end timestamp both in Protocol and Component integration?

For component integration ther is an example in the sdk that already retrives Analytic events. I’ve seen that a filter can be set. Is there some documentation about how to use that filter?

In Protocol integration ther’s an example that can retrive Alarms. For what I’ve seen so far protocol lets trigger analytics events. Can it also retrive and filter them?

The ”AlamCommand” API can be used for both alarms and events. It is used in both the protocol sample “AlarmList” and the very similar component sample “AlarmClientWPF”.

Use GetEventLines to get events on-demand – or StartEventLineSession/GetSessionEventLines to subscribe to real-time events.

Both samples include an example of applying a filter (see the method ConfigureFilter). The filter specifies a list of conditions that must all be met. Each condition consists of a target (i.e. a reference to a field in the alarm/event), an operator, and a value. E.g.

new Condition

{

Target = Target.Type,

Operator = Operator.Equals,

Value = “FireAlarm”

};

The documentation is in VideoOS.Platform.Proxy.Alarm.AlarmFilter Class Reference.

http://doc.developer.milestonesys.com/html/index.html?base=miphelp/class_video_o_s_1_1_platform_1_1_proxy_1_1_alarm_1_1_alarm_filter.html&tree=tree_search.html?search=filter

In the Alarm and Event Viewer sample there is example of EventFilter used (in loadClientLPR()).

You get alarms when using GetAlarmLines and events when using GetEventLines.

You might be able to switch the sample from GetAlarmLines to GetEventLines and see what happens.