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§
- hierarchy
- This macro simplifies creating diagnostics hierarchies, to remove the need of writing multiple nested hierarchies and manually writing all properties.
Structs§
- Builder
Args - Arguments used to create a new
LogsDataBuilder
. - Data
- An instance of diagnostics data with typed metadata and an optional nested payload.
- Diagnostics
Hierarchy - A hierarchy of nodes representing structured data, such as Inspect or structured log data.
- Inspect
- Inspect carries snapshots of data trees hosted by components.
- Inspect
Data Builder - Inspect
Error - Possible error that can come in a
DiagnosticsData
object where the data source isDataSource::Inspect
.. - Inspect
Metadata - The metadata contained in a
DiagnosticsData
object where the data source isDataSource::Inspect
. - LogText
Display Options - Display options for unstructured logs.
- LogText
Presenter - Used to control stringification options of Data
- Logs
- Logs carry streams of structured events from components.
- Logs
Data Builder - Internal state of the LogsDataBuilder impl External customers should not directly access these fields.
- Logs
Metadata - The metadata contained in a
DiagnosticsData
object where the data source isDataSource::Logs
.
Enums§
- Data
Source - The source of diagnostics data
- Error
- Errors that can happen in this library.
- Extended
Moniker - One of:
- Inspect
Handle Name - The possible name for a handle to inspect data. It could be a filename (being deprecated) or a
name published using
fuchsia.inspect.InspectSink
. - LogError
- Possible errors that can come in a
DiagnosticsData
object where the data source isDataSource::Logs
. - LogText
Color - Configuration for the color of a log line that is displayed in tools using
LogTextPresenter
. - LogTime
Display Format - Configuration for how to display the timestamp associated to a log line.
- Logs
Field - An enum containing well known argument names passed through logs, as well
as an
Other
variant for any other argument names. - Property
- A named property. Each of the fields consists of (name, value).
- Severity
- Severities a log message can have, often called the log’s “level”.
- Timezone
- Options for the timezone associated to the timestamp of a log line.
Constants§
- DROPPED_
LABEL - The label for the number of dropped logs in the log metadata.
- FILE_
PATH_ LABEL - The label for the file associated with a log line.
- LINE_
NUMBER_ LABEL - The label for the line number in the file associated with a log line.
- MESSAGE_
LABEL - The label for the message in the log payload.
- MESSAGE_
LABEL_ STRUCTURED - The label for the contents of a message in the log payload.
- PID_
LABEL - The label for the process koid in the log metadata.
- TAG_
LABEL - The label for a tag in the log metadata.
- TID_
LABEL - The label for the thread koid in the log metadata.
Traits§
- Diagnostics
Data - A trait implemented by marker types which denote “kinds” of diagnostics data.
- Metadata
- Metadata
Error
Functions§
Type Aliases§
- Inspect
Data - A diagnostics data object containing inspect data.
- Logs
Data - A diagnostics data object containing logs data.
- Logs
Hierarchy - A diagnostics data payload containing logs data.
- Logs
Property - A diagnostics hierarchy property keyed by
LogsField
. - Timestamp