> This page is for NeMo Relay, version dev.
> For other versions, use one of these documentation indexes:
> - Latest (v0.11.1) (default): https://docs.nvidia.com/nemo/relay/latest/llms.txt
> - dev: https://docs.nvidia.com/nemo/relay/dev/llms.txt
> - v0.11.1: https://docs.nvidia.com/nemo/relay/v0.11.1/llms.txt
> - v0.10.4: https://docs.nvidia.com/nemo/relay/v0.10.4/llms.txt
> - v0.9.4: https://docs.nvidia.com/nemo/relay/v0.9.4/llms.txt
> - v0.8.4: https://docs.nvidia.com/nemo/relay/v0.8.4/llms.txt
> - v0.7.3: https://docs.nvidia.com/nemo/relay/v0.7.3/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/relay/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/relay/_mcp/server.

# Struct Diagnostic Observation

> Records a positive occurrence delta using admitted component and code handles.

Generated from `cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker`.

<pre />

Records a positive occurrence delta using admitted component and code handles.

## Fields

### `component: u32`

One-based component handle admitted in this diagnostic session.

### `code: u32`

One-based code handle admitted for this component.

### `failure_class: Option<String>`

Optional admitted failure-class name for this observation.

### `outcome: i32`

Explicit observed operation outcome.

### `severity: i32`

Evidence severity, independent of its observed operation outcome.

### `count: u64`

Positive occurrence delta, not an absolute counter.

### `observe_time: Option<Timestamp>`

Source observation time, preserved through projections.

### `detail: Option<String>`

Optional restricted diagnostic detail, bounded by the host policy.

### `session_id: Option<String>`

Optional trajectory session correlation, not the diagnostic transport session UUID.

### `request_id: Option<String>`

Optional trajectory request correlation; it is not an authority token.

## Implementations

### `impl DiagnosticObservation`

<pre />

#### `failure_class`

<pre />

Returns the value of `failure_class`, or the default value if `failure_class` is unset.

#### `outcome`

<pre />

Returns the enum value of `outcome`, or the default if the field is set to an invalid enum value.

#### `set_outcome`

<pre />

Sets `outcome` to the provided enum value.

#### `severity`

<pre />

Returns the enum value of `severity`, or the default if the field is set to an invalid enum value.

#### `set_severity`

<pre />

Sets `severity` to the provided enum value.

#### `detail`

<pre />

Returns the value of `detail`, or the default value if `detail` is unset.

#### `session_id`

<pre />

Returns the value of `session_id`, or the default value if `session_id` is unset.

#### `request_id`

<pre />

Returns the value of `request_id`, or the default value if `request_id` is unset.

## Trait Implementations

### `impl Clone for DiagnosticObservation`

<pre />

#### `clone`

<pre />

#### `clone_from`

<pre />

### `impl Debug for DiagnosticObservation`

<pre />

#### `fmt`

<pre />

### `impl Default for DiagnosticObservation`

<pre />

#### `default`

<pre />

### `impl Hash for DiagnosticObservation`

<pre />

#### `hash`

<pre />

#### `hash_slice`

<pre />

### `impl Message for DiagnosticObservation`

<pre />

#### `encoded_len`

<pre />

#### `clear`

<pre />

#### `encode`

<pre />

#### `encode_to_vec`

<pre />

#### `encode_length_delimited`

<pre />

#### `encode_length_delimited_to_vec`

<pre />

#### `decode`

<pre />

#### `decode_length_delimited`

<pre />

#### `merge`

<pre />

#### `merge_length_delimited`

<pre />

### `impl Name for DiagnosticObservation`

<pre />

#### `NAME`

<pre />

#### `PACKAGE`

<pre />

#### `full_name`

<pre />

#### `type_url`

<pre />

### `impl PartialEq for DiagnosticObservation`

<pre />

#### `eq`

<pre />

#### `ne`

<pre />

### `impl Eq for DiagnosticObservation`

<pre />

### `impl StructuralPartialEq for DiagnosticObservation`

<pre />