# AttributeValue

## class AttributeValue

Bases: [`object`](https://docs.python.org/3/builtins/functions.html#object "(in Python v3.15)")

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`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeValue.md#instro.opcua.types.AttributeValue.attribute_id "instro.opcua.types.AttributeValue.attribute_id") | The attribute associated with this result. |
| --- | --- |
| [`server_picoseconds`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeValue.md#instro.opcua.types.AttributeValue.server_picoseconds "instro.opcua.types.AttributeValue.server_picoseconds") | Original server fractional field, in units of 10 picoseconds. |
| [`server_timestamp`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeValue.md#instro.opcua.types.AttributeValue.server_timestamp "instro.opcua.types.AttributeValue.server_timestamp") | Native server timestamp, without the fractional field. |
| [`server_unix_timestamp`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeValue.md#instro.opcua.types.AttributeValue.server_unix_timestamp "instro.opcua.types.AttributeValue.server_unix_timestamp") | Server Unix nanoseconds, including the truncated fractional field. |
| [`source_picoseconds`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeValue.md#instro.opcua.types.AttributeValue.source_picoseconds "instro.opcua.types.AttributeValue.source_picoseconds") | Original source fractional field, in units of 10 picoseconds. |
| [`source_timestamp`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeValue.md#instro.opcua.types.AttributeValue.source_timestamp "instro.opcua.types.AttributeValue.source_timestamp") | Native source timestamp, without the fractional field. |
| [`source_unix_timestamp`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeValue.md#instro.opcua.types.AttributeValue.source_unix_timestamp "instro.opcua.types.AttributeValue.source_unix_timestamp") | Source Unix nanoseconds, including the truncated fractional field. |
| [`status`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeValue.md#instro.opcua.types.AttributeValue.status "instro.opcua.types.AttributeValue.status") | Original sample quality; defaults to Good when absent. |
| [`value`](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeValue.md#instro.opcua.types.AttributeValue.value "instro.opcua.types.AttributeValue.value") | The semantic payload. |

### attribute_id

The attribute associated with this result.

Type:
:   [*AttributeId*](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.AttributeId.md#instro.opcua.types.AttributeId "instro.opcua.types.AttributeId")

### server_picoseconds

Original server fractional field, in units of 10 picoseconds.

Type:
:   [*int*](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)") | *None*

### server_timestamp

Native server timestamp, without the fractional field.

Type:
:   [*DateTime*](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.DateTime.md#instro.opcua.types.DateTime "instro.opcua.types.DateTime") | *None*

### server_unix_timestamp

Server Unix nanoseconds, including the truncated fractional field.

Type:
:   [*int*](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)") | *None*

### source_picoseconds

Original source fractional field, in units of 10 picoseconds.

Type:
:   [*int*](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)") | *None*

### source_timestamp

Native source timestamp, without the fractional field.

Type:
:   [*DateTime*](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.DateTime.md#instro.opcua.types.DateTime "instro.opcua.types.DateTime") | *None*

### source_unix_timestamp

Source Unix nanoseconds, including the truncated fractional field.

Type:
:   [*int*](https://docs.python.org/3/builtins/functions.html#int "(in Python v3.15)") | *None*

### status

Original sample quality; defaults to Good when absent.

Type:
:   [*StatusCode*](https://dev.nominal.io/instro/ref/protocols/instro.opcua.types.StatusCode.md#instro.opcua.types.StatusCode "instro.opcua.types.StatusCode")

### value

The semantic payload.

Raises:
:   [**OpcUaError**](https://dev.nominal.io/instro/ref/protocols/opcua.md#instro.opcua.OpcUaError "instro.opcua.OpcUaError") – `BadTypeMismatch` for an incompatible fixed attribute
    payload, `BadNotSupported` for unsupported types or dimensions,
    or `BadOutOfRange` for an unrepresentable sampling interval.

Type:
:   [*object*](https://docs.python.org/3/builtins/functions.html#object "(in Python v3.15)") | *None*
