class documentation

class MonitoringMixin(Generic[MonitoringType]):

View In Hierarchy

Mixin for UaObject with monitoring.

Method __init_subclass__ Extract type for monitoring.
Async Method add_monitoring_variable Add a new monitoring variable to this UaObject.
Async Method lifecycle_monitoring Initialize the monitoring UaVariableContainer.
Async Method read_monitoring Read all monitoring values and returns them as a dictionary.
Property monitoring Return the monitoring UaVariableContainer . Read-only property.
Class Variable __monitoring Undocumented
def __init_subclass__(cls, **kwargs):

Extract type for monitoring.

@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.

@lifecycle
async def lifecycle_monitoring(self) -> AsyncGenerator[None]:

Initialize the monitoring UaVariableContainer.

@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.

@property
monitoring: MonitoringType =

Return the monitoring UaVariableContainer . Read-only property.

__monitoring: MonitoringType | None =

Undocumented