Relationship between rules and analytics events

Dear all,

Can someone enlighten me by:

1). How can I relate between rules and analytics events (in particular events generated from SDK)?

2). Any example for such relationship, i.e. which one needs to be set up first, and which one needs to follow which one? Is rule and analytics event independent one of another?

Many thanks,

Willie

The simplest way is to simply make the rulle trigger on your analytics event. The rule would look like:

Perform an action on MyAnalyticsEvent01 (Analytics Events)
      from All cameras
Create log entry: 'Analytics event happened.'

This rule will write a log entry when the analytics event MyAnalyticsEvent01 happens, it is just an example.

Now setting up and testing the analytics event might be something you also need. I suggest you read about the “Analytics Event trigger via MIP .Net library” sample in the MIP SDK Documentation and try it out.

There could be other scenarios on which you want to trigger a rule to do something, there is so many possibilities. If this example does not fit what you want to achieve please elaborate on what you want..

Thanks Bo.

In the “Manage Rule” page, there is "Perform an action on . When we click on , we will be able to choose the event. I only can see the events if I added them under “Generic Events”. Is it expected?

Actually my “events” will be similar to those events generated by MIPS SDK.

Can you advise me further on this please.

Many thanks,

Willie

Basically, what I need to do is I will generate a Milestone alert using “Analytics Event trigger via MIP .Net library”. I need to create a Milestone rule to record the video capture within 1 minute before and 1 minute after the events / alerts generated. To do this, I need to ensure that my analytics events / alerts can be seen by the “Rules” engine

Can you advise on how to create such “Rules” in detail please?

Many thanks,

Willie

I suspect that you have not created the Analytics Event, if you have not created an Analytics Event first in the Management Client I think it will behave as you describe.You could say that in the Management Client you first create a Analytics Event “definition”, so that the actual events can happen.

In the MIP Documentation in the description of the Analytics Event trigger via MIP .Net library sample, there is a step to setup an analytics event.

Same information and a little more is in this document. (http://download.milestonesys.com/MIPSDK/Samples/TriggerAlarmFromExternal-ConceptSolution.pdf)

There is an element of guessing here, if this does not fit the situation you have please describe further your observations working with this.