Crate diagnostics_data

source ·
Expand description

Diagnostics data

This library contains the Diagnostics data schema used for inspect and logs . This is the data that the Archive returns on fuchsia.diagnostics.ArchiveAccessor reads.

Macros

Macro to simplify tree matching in tests. The first argument is the actual tree passed as a DiagnosticsHierarchyGetter (e.g. a DiagnosticsHierarchy or an Inspector). The second argument is given to tree_assertion! which creates a TreeAssertion to validate the tree.
This macro simplifies creating diagnostics hierarchies, to remove the need of writing multiple nested hierarchies and manually writing all properties.
Macro to simplify creating TreeAssertions. Commonly used indirectly through the second parameter of assert_data_tree!. See assert_data_tree! for more usage examples.

Structs

An instance of diagnostics data with typed metadata and an optional nested payload.
A hierarchy of nodes representing structured data, such as Inspect or structured log data.
Inspect carries snapshots of data trees hosted by components.
Possible error that can come in a DiagnosticsData object where the data source is DataSource::Inspect..
The metadata contained in a DiagnosticsData object where the data source is DataSource::Inspect.
Display options for unstructured logs.
Used to control stringification options of Data
Logs carry streams of structured events from components.
Internal state of the LogsDataBuilder impl External customers should not directly access these fields.
The metadata contained in a DiagnosticsData object where the data source is DataSource::Logs.
Wraps a time for serialization and deserialization purposes.

Enums

The source of diagnostics data
Possible errors that can come in a DiagnosticsData object where the data source is DataSource::Logs.
An enum containing well known argument names passed through logs, as well as an Other variant for any other argument names.
Metadata contained in a DiagnosticsData object.
A named property. Each of the fields consists of (name, value).
Severities a log message can have, often called the log’s “level”.

Constants

Traits

A trait implemented by marker types which denote “kinds” of diagnostics data.

Type Definitions

A diagnostics data object containing inspect data.
A diagnostics data object containing logs data.
A diagnostics data payload containing logs data.
A diagnostics hierarchy property keyed by LogsField.