class documentation
class MonitoringMixin(Generic[
Mixin for UaObject with monitoring.
| Method | __init |
Extract type for monitoring. |
| Async Method | add |
Add a new monitoring variable to this UaObject. |
| Async Method | lifecycle |
Initialize the monitoring UaVariableContainer. |
| Async Method | read |
Read all monitoring values and returns them as a dictionary. |
| Property | monitoring |
Return the monitoring UaVariableContainer . Read-only property. |
| Class Variable | __monitoring |
Undocumented |
@deprecated( 'Please use a typed Monitoring subclass instead!')
async def add_monitoring_variable(self, name: str, val: Any, *, varianttype: ua.VariantType | None = None, datatype: ua.NodeId | int | None = None, historize: bool = False, unit: str | int | None = None, _range: tuple[ float, float] | None = None) -> Node:
¶
Add a new monitoring variable to this UaObject.
@deprecated( 'Please use the typed .monitoring.<name>.read() or untyped monitoring.read_all() instead')
async def read_monitoring(self) -> Mapping[ str, Any]:
¶
Read all monitoring values and returns them as a dictionary.
Keys are the display name of OPC UA nodes, values the corresponding values.