I'd like to create a driver to monitor multiple tables (e.g, Node, RHE, ...) and then present some useful information in a table, such us, element type, severity (e.g, critical, major, ...) and number of active devices.
I'd like to retrieve only rows with severity different than "Normal", because I'm only interested in provide an overview of the alarms.
I was thinking of something like:
Any suggestion?
You can retrieve the rows through a table subscription or via a GetPartialTable message. The alarm level of the row is available through the InstanceAlarmLevel property on the index value.
Hi José,
Please could elaborate a bit more about the information displayed in the table:
- Will each row represent an element?
- or will represent an alarm for a parameter in an element?
For the first case, instead of implementing a table in a driver, have you considered displaying this information in an overview? There is a nice feature listView that allows you to display a list of elements in an overview. This list can be fully customized and allows you to define filters that will fit your use case (e.g. display elements with severity different from "Normal"):
A drawback for listView is that you will not be able to display values from parameters. In the screenshot above 'Active Devices' and 'Households' are element properties. If you would like to display values from parameters, instead of listView you could use dynamic child shapes (Generating shapes based on child items in a view or a service)
For the second case, is it possible to use the alarm console to display this information?