AttributeValue#

class AttributeValue#

Bases: object

An attribute sample with its value, status, and timestamps.

A missing or Null value yields None. Check status for sample quality. Bad or Uncertain quality can accompany a readable value. If accessing value raises a conversion error, the status and timestamps are still available.

Attributes

attribute_id

The attribute associated with this result.

server_picoseconds

Original server fractional field, in units of 10 picoseconds.

server_timestamp

Native server timestamp, without the fractional field.

server_unix_timestamp

Server Unix nanoseconds, including the truncated fractional field.

source_picoseconds

Original source fractional field, in units of 10 picoseconds.

source_timestamp

Native source timestamp, without the fractional field.

source_unix_timestamp

Source Unix nanoseconds, including the truncated fractional field.

status

Original sample quality; defaults to Good when absent.

value

The semantic payload.

attribute_id#

The attribute associated with this result.

Type:

AttributeId

server_picoseconds#

Original server fractional field, in units of 10 picoseconds.

Type:

int | None

server_timestamp#

Native server timestamp, without the fractional field.

Type:

DateTime | None

server_unix_timestamp#

Server Unix nanoseconds, including the truncated fractional field.

Type:

int | None

source_picoseconds#

Original source fractional field, in units of 10 picoseconds.

Type:

int | None

source_timestamp#

Native source timestamp, without the fractional field.

Type:

DateTime | None

source_unix_timestamp#

Source Unix nanoseconds, including the truncated fractional field.

Type:

int | None

status#

Original sample quality; defaults to Good when absent.

Type:

StatusCode

value#

The semantic payload.

Raises:

OpcUaError – BadTypeMismatch for an incompatible fixed attribute payload, BadNotSupported for unsupported types or dimensions, or BadOutOfRange for an unrepresentable sampling interval.

Type:

object | None