Skip to navigation

nemo_relay.diagnostics

View as Markdown

Generated from python/nemo_relay/diagnostics.py.

Module nemo_relay.diagnostics.

Optional readers for configuration-driven, process-local diagnostics.

Classes

DiagnosticsError(RuntimeError)

Reader failure with a stable machine-readable reason.

Methods

DiagnosticsError
def DiagnosticsError(reason: str) -> None

Create an instance.

DiagnosticsReader

Read-only service capability, independent of plugin activation lifetime.

Methods

DiagnosticsReader
def DiagnosticsReader(native: _NativeReader) -> None

Create an instance.

snapshot
def snapshot(query: dict[str, Any] | None = None) -> dict[str, Any]

Return one bounded page; diagnostic counters and durations are int.

snapshot_json
def snapshot_json(query: dict[str, Any] | None = None) -> str

Return canonical JSON with decimal-string diagnostic integers.

inspect_memory
def inspect_memory(query: dict[str, Any] | None = None) -> dict[str, Any]

Return one bounded memory page; diagnostic counters and durations are int.

inspect_memory_json
def inspect_memory_json(query: dict[str, Any] | None = None) -> str

Return canonical JSON with decimal-string diagnostic integers.

info
def info() -> dict[str, Any]

Return separate core/copy budgets, occupancy, and logging coverage.

Functions

reader

def reader() -> DiagnosticsReader

Obtain a reader for the process diagnostics service.