monitoring
Monitoring context/management class to be used with CalibrationContext.
Classes
|
Monitoring context/management class to be used with CalibrationContext. |
Monitoring
- class module_testing.monitors.monitoring.Monitoring(logger, cluster)
Bases:
object
Monitoring context/management class to be used with CalibrationContext.
- __init__(logger, cluster)
- Parameters:
context – parent CalibrationContext this Monitoring instance should be attached to. Generally None, will be set by CalibrationContext on creation.
monitors – tuple of Monitor-compliant objects that should be attached to this Monitoring context.
- abort()
Sets stop signal on this Monitoring context, and sends abort to parent CalibrationContext.
Should generally be called by monitors when interlock requirements are breached.
- add_monitors(cls, name, *args, **kwargs)
- property context
- Returns:
parent CalibrationContext this Monitoring context is attached to.
- monitor(monitor)
Retrieve monitor with name monitor.
- Parameters:
monitor – Name (unique identifier) of monitor to retrieve.
- Returns:
First attached monitor found matching this identifier. Throws RuntimeError on failure to find.
- property stop
- Returns:
whether a stop request has been set.