Open Tom-Willemsen opened 5 years ago
The alert mechanism would work in very much the same way as run control, and the underlying structure is already in place from #3949. It is possible to trigger alerts when values go out of range currently, but it requires setting various variables in the background. This ticket adds a GUI to make this easier to configure:
I am proposing we add a couple of extra options to alert/run control logic, these would apply to both run control and alerts: • number of seconds a value must be out of range before out of range alert/waiting is triggered • number of seconds a value must be back in range for in range alert/running to be triggered
These values would help even out fluctuations, but also make it easy to add an alerts like “instrument has been in state YYY for ZZZ seconds” without us needing to add a special case. We would add well known special cases, like instrument has been waiting for YYY seconds, to the page where phone numbers/emails are configured.
When an alert is triggered, or things come back into range, this will be recorded at the server side, but it may be useful to log the fact an alert has been triggered (but not to whom) client side somewhere too (for if somebody is testing the mechanism)
It might be possible to associate the user alert information with a (single?) fixed location in experiment details. When an experiment changes and these are reloaded for the next group, this would then also change and the users would also automatically be refreshed. Is it essential for alerts to be otherwise linked with a specific user?
I am not sure now how much users will want to have alerts, in the first instance we are going to have scientists only to mirror SECI. As there will be no on-site users in September alerts to users may be even less needed. Putting the details on the user page and clearing with rb number change is certainly one option.
As an instrument scientist I would like to be able to set up my own customized alerts for blocks being out of range.
Note: Some of the server logic for this may have been implemented in https://github.com/ISISComputingGroup/IBEX/issues/3949 , although that ticket is not fully complete at the time of writing.
This ticket is to provide an interface in the GUI, probably similar to the existing run control interface, so that scientists can configure this themselves without needing to do manual
caput
commands from a terminal. We should also consider whether, like run control, these settings can be set both as part of the configuration and then temporarily overridden.Requested by MERLIN specifically as they want to be able to configure the alert of their collimator without needing to ask us to reconfigure nagios. It was, apparently, also a feature of SECI.
See also https://github.com/ISISComputingGroup/IBEX/issues/3811
EPICS FOR
Acceptance