pswamp.gui.alarms.overview
Attributes
Classes
Widget for showing overview of alarms |
Functions
|
Module Contents
- class pswamp.gui.alarms.overview.AlarmOverview(config, alarm_keeper, measurement_data_available=True, alarm_details_dock=None, grid_view=None)
Bases:
PySide6.QtWidgets.QWidgetWidget for showing overview of alarms
- Parameters:
config (dict) – pswamp Configuration file.
alarm_keeper (AlarmMonitor) – Object which stores alarm data.
measurement_data_available (bool) – Determines if alarm views are shown.
alarm_details_dock (QDockWidget) – Dock where to show alarm details.
grid_view (GridViewContainer) – Allow content to be shown on the SLD.
- config
- kafka_kwargs
- kafka_topics
- alarm_topic
- alarm_keeper
- measurement_data_available = True
- alarm_details_dock = None
- grid_view = None
- tableWidget
- row_to_uuid
- alarm_handling_dialogues
- timer
- cell_was_clicked(row, column)
Show alarm details when cell is clicked.
Use row and col to determine which alarm was clicked, and run an alarm handling dialogue targeting the selected alarm.
- Parameters:
row (int) – Row of the clicked cell.
column (int) – Column of the clicked cell.
- update_display()
Update the alarm overview table
Update the table based on content stored in the AlarmMonitor (self.alarm_keeper). The color of alarms is determined by the status, e.g., unseen: red, acknowledged or not_critical: light red, silenced: gray.
- pswamp.gui.alarms.overview.run_alarm_handling(config)
- pswamp.gui.alarms.overview.config