Snapshots are not shown in Alarms [c# SDK, Milestone 2022 R1]

Hi,

I have a plugin integration that generates Analytic Events in Alarm Manager tab.

Due a final client need, I´m developing a solution to generate Milestone Alarms too.

My issue is that I can see snapshot images with certain information of our software if I use Analytic Events.

There are the images inserted in the left panel.

But when I try to do the same with alarms, I can not see it (note that I´m able to generate alarms properly in the system)

alarmPreview2The images in the grid are from the part of the UI that is “editable” from code. But we need to show the same images that in the first image, but using Alarms instead of Analytic Events.

From the code side (I´m using you SDK, in c#), I populate both structures in a similar way:

Where snapshotList contains the same type of images for both elements .

when I send the message, I do it in a similar way too:

Is this possible in Alarms? I understand that if we have the same field SnapshotList in both kinf of notifications I´m able to see the same information in Alarm Manager tab.

Maybe I´m doing something wrong?

Thanks in advance for your time.

Regards,

Albert.

In case this is not possible, what is the way to add images on this part, when you open an alarm?

(I mean the grid below the stream image)

I made an experiment and modified the LibrayEventGenerator sample so that the sample includes the snapshot list when submitting alarms. I find that I see snapshots in the Alarm Preview window. It threw me off guard that the sample did not do this in the first place. I wonder if you might have something similar.(?)

My modification is simple, in EventForm.cs line 141 I did:

// lines copied from 98-104
SnapshotList snapshots = new SnapshotList(); 
for (int ix = 0; ix < _imageList.Count; ix++)
{
	snapshots.Add(new Snapshot()
	{
		Image = convertImage(_imageList[ix])
	});
}
 
Alarm alarm = new Alarm()
{
	// line added
	SnapshotList = snapshots,

Please try this and see if you get the snapshots in the Alarm Preview.

https://doc.developer.milestonesys.com/html/index.html?base=samples/componentsamples/libraryeventgenerator/readme.html&tree=tree_2.html

Good morning Bo,

finally I found the reason of this issue.

In my case, when I create the SnapshotList structure, I add, for each Snapshot, the Image and the FQID of the associated camera.

It seems that, using Analytic events, you can stablish both values for each Snapshot and then the images are sended correctly to Milestone VMS.

But in case of Alarms not!

If I create the Snapshot like this:

imageI’m able to see the images in the VMS software.

So the image format was correct, the process of the Alarm too, but it seem that FQID value “blocks” the images sended through SnapShotList field, but only in Alarms, not in Analytic Events.

That is curious, because I can see this information about the SnapShotList field

Anyway, this was the problem, and now it works.

Thanks so much for your help!

Regards,

Dani.