When we convert the created RSS feed into Milestone via the API, it appears in the Alarms section of the Smart Client. However, it is not logged as an event. How can we display it as an event in the Smart Client?
I need to understand what you are doing. “we convert the created RSS feed into Milestone via the API”, please explain what you are doing in terms of what method and what API exactly,
We capture images and process them with our own LPR system to extract metadata, which we then attempt to forward to Milestone.
We convert our system-generated RSS feed into alarm parameters using the CreateAlarm method available in the Milestone XProtect Restful API, and then send these parameters to the Milestone system. As a result, the feed appears as an alarm on the Smart Client, but it is not logged as an event.
Yes, events and alarms are two different things in Milestone XProtect.
Events are all sorts of things that happens. Alarms are events that are augmented to be presented to the end-users, so that an operator can take action or similar.
The issue was discussed in this old knowledge base article, which was written long before the API you are now using.
https://developer.milestonesys.com/s/article/Create-an-alarm-from-a-MIP-SDK-based-application
From what you ask I think the answer is that you should consider submitting events instead of alarms and either make an alarm definition using code or document for the users how to make the alarm definition.
If this gets to be the solution you can use Rest API to submit events. - https://doc.developer.milestonesys.com/mipvmsapi/api/events-rest/v1/#tag/Events/operation/Events_Post
Hello Bo!
The problem is; we can see the events in logs but on smart client we cant still display the events that we triggered.
When we use RestAPI, we got the notification says that “event received” but still, we cannot see events in Smart Client.
In the Smart Client you can see events in the Alarm Manager workspace, or another view where you are using the Alarm List. Going into setup mode you can configure the Alarm List to show either alarms or events. I am guessing this is what you are using, if something else let me know.
The Smart Client only shows events that are saved. Per default only a few events are saved. This is a precaution to avoid unnecessary storing of data and to avoid potentially to overfill the SQL Server configuration database.
You can configure the storing and the retention of events. In the Management Client go to Tools - Options, and pick the Alarms and Events tab. Here you can configure the retention for alarms and events, if the retention is 0 the events will not be saved at all. If not saved the events are not shown in the Alarm List even if it is configured to show events.
Try to change the retention time for the type of event you are working with, see if it solves the issue.
I found an older thread where I have some guidance on setting the retention.. - https://developer.milestonesys.com/s/question/0D5bH00000SWBoLSAX/is-it-possible-to-get-last-occurred-userdefined-event-using-rest-api