PySide6.QtOpcUa.QOpcUaHistoryReadEventRequest¶
- class QOpcUaHistoryReadEventRequest¶
This class stores the necessary information to request historic data from a server.
Details
This is the Qt OPC UA representation for the OPC UA ReadEventDetails for reading historical data defined in OPC-UA part 11, 6.4.2 .
When requesting historic data from a server, several values need to be provided to the server to know which data to collect. The
QOpcUaHistoryReadEventRequestclass provides the required values.startTimestampandendTimestampdefine the timerange where historic events should be collected from.nodesToReaddefines from which nodes historic data should be collected.numValuesPerNodedefines the maximum number of events that should be returned per node.filteris the event filter used to determine which events and which of their fields to return.Added in version 6.7.
Synopsis¶
Methods¶
def
__init__()def
addNodeToRead()def
endTimestamp()def
filter()def
nodesToRead()def
__ne__()def
__eq__()def
setFilter()def
setNodesToRead()def
startTimestamp()def
swap()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
Constructs an invalid
QOpcUaHistoryReadEventRequest.- __init__(other)
- Parameters:
other –
QOpcUaHistoryReadEventRequest
Constructs a
QOpcUaHistoryReadEventRequestitem fromother.- __init__(nodesToRead, startTimestamp, endTimestamp, filter)
- Parameters:
nodesToRead – .list of QOpcUaReadItem
startTimestamp –
QDateTimeendTimestamp –
QDateTimefilter –
EventFilter
Constructs a
QOpcUaHistoryReadEventRequestitem with the given values.- addNodeToRead(nodeToRead)¶
- Parameters:
nodeToRead –
QOpcUaReadItem
Adds a node to the
nodeToReadlist.Returns the end time stamp.
See also
- filter()¶
- Return type:
Returns the event filter used to retrieve historical events.
See also
- nodesToRead()¶
- Return type:
.list of QOpcUaReadItem
Returns the list of nodes to read.
See also
- numValuesPerNode()¶
- Return type:
int
Returns the number of values per node.
See also
- __ne__(rhs)¶
- Parameters:
- Return type:
bool
Returns
trueiflhsis not equal torhs; otherwise returnsfalse.Two
QOpcUaHistoryReadEventRequestitems are considered not equal if theirstartTimestamp,endTimestamp,numValuesPerNode,filterornodesToReadare not equal.- __eq__(rhs)¶
- Parameters:
- Return type:
bool
Returns
trueiflhsis equal torhs; otherwise returnsfalse.Two
QOpcUaHistoryReadEventRequestitems are considered equal if theirstartTimestamp,endTimestamp,numValuesPerNode,filterandnodesToReadare equal.Sets
endTimestampfor the historical data to be fetched.See also
- setFilter(filter)¶
- Parameters:
filter –
EventFilter
Sets the event filter used to retrieve historical events to
filter.See also
- setNodesToRead(nodesToRead)¶
- Parameters:
nodesToRead – .list of QOpcUaReadItem
Sets the
nodesToReadlist.See also
- setNumValuesPerNode(numValuesPerNode)¶
- Parameters:
numValuesPerNode – int
Sets
numValuesPerNodeto indicate the number of values per node to be fetched.See also
Sets
startTimestampfor the historical data to be fetched.See also
Returns the start time stamp.
See also
- swap(other)¶
- Parameters:
other –
QOpcUaHistoryReadEventRequest
Swaps read event request object
otherwith this read event request object. This operation is very fast and never fails.