Crate diagnostics_reader

Source
Expand description

A library for reading Inspect and Log data from the ArchiveAccessor FIDL protocol.

Macros§

hierarchy
This macro simplifies creating diagnostics hierarchies, to remove the need of writing multiple nested hierarchies and manually writing all properties.

Structs§

ArchiveReader
Utility for reading inspect data of a running component using the injected Archive Reader service.
ComponentSelector
An inspect tree selector for a component.
Data
An instance of diagnostics data with typed metadata and an optional nested payload.
DiagnosticsHierarchy
A hierarchy of nodes representing structured data, such as Inspect or structured log data.
Inspect
Inspect carries snapshots of data trees hosted by components.
Logs
Logs carry streams of structured events from components.
Subscription
A subscription used for reading logs.
SubscriptionResultsStream
A stream for reading diagnostics data

Enums§

Error
Errors that this library can return
Property
A named property. Each of the fields consists of (name, value).
RetryConfig
Retry configuration for ArchiveReader
Severity
Severities a log message can have, often called the log’s “level”.

Traits§

CheckResponse
Trait used to verify that a JSON payload has a valid diagnostics payload.
DiagnosticsDataType
A trait representing a type of diagnostics data.
SerializableValue
Before unsealing this, consider whether your code belongs in this file.
ToComponentSelectorArguments
Trait used for things that can be converted to component selector arguments.
ToSelectorArguments
Trait used for things that can be converted to selector arguments.

Type Aliases§

InspectArchiveReader
Alias for ArchiveReader. Used for reading inspect.
LogsArchiveReader
Alias for ArchiveReader. Used for reading logs.