How to fetch Alarm Instructions by MIP SDK ?

Hello. I have to fetch Alarm Instruction (wrote at alarm definition time) to show in my custom client plugin. Exist some method to do it by MIP SDK ?

Thank’s.

Gigi

Yes.

If you fetch the Alarm, then the Alarm.Description holds the instructions as entered in the Alarm Definition.

Try an experiment using the Alarm and Event Viewer sample. Modify the code (MainForm.cs line 340-341)

//from
row.CreateCells(dataGridViewAlarm, alarm.EventHeader.Source.Name, alarm.EventHeader.Timestamp.ToLocalTime(), alarm.EventHeader.Message, alarm.EventHeader.Priority, alarm.State, alarmDef);
//to
row.CreateCells(dataGridViewAlarm, alarm.Descritpion, alarm.EventHeader.Timestamp.ToLocalTime(), alarm.EventHeader.Message, alarm.EventHeader.Priority, alarm.State, alarmDef);

Notice how the instructions now are put in the output grid.

(Other modifications will need to be made if the sample should be work in a perfectly meaningful way, so this is only an example for quick illustration.)

Thank’s!!

Ciao.

Gigi