Why does the priority level of the analytics event not change?

I set the new priority in the event header, but this has no effect to the Priority level on the smart client.

EventHeader eventHeader = new EventHeader()

                   {

                       ID = Guid.NewGuid(),

                       Class = "Operational",

                       Type = "DoorState",

                       Timestamp = DateTime.Now,

                       Message = analyticsEventName,

                       Name = [door.Name](https://door.Name),

                       Source = new EventSource { FQID = door.FQID, Name = [door.Name](https://door.Name) },

                       CustomTag = "Door info",

                       Priority = priority

                   };

New priority is 3 but it shows 1!

What could be wrong?

Try to see

-–

void VideoOS.Platform.Proxy.AlarmClient.IAlarmClient.UpdateAlarm (Guid id, string text, int state, int priority, System.DateTime time, string assignedTo) [inline]

-

Updates a specific alarm with the input parameters. Only valid input parameters is updated.

Parameters:

id Id of the alarm to be updated

text The text will not be added to the alarm but to the alarm history which contains the history of alarm updates VideoOS.Platform.Proxy.Alarm.AlarmHistory. If null no text is written

state The new alarm state. Only states greater than 0 is valid

priority The new alarm priority. Only priorities greater than 0 is valid

time The time of the update

assignedTo The new assigned to owner. If null no owner is assigned

-–

You can see this used in the Alarm and Event Viewer sample.

Thanks,

with the UpdateAlarm function it is working. :slightly_smiling_face: