Expand description
Diagnostics hierarchy
This library provides a tree strcture used to store diagnostics data such as inspect and logs, as well as utilities for reading from it, serializing and deserializing it and testing it.
Modules§
- Macro utilities for building a
DiagnosticsHierarchy
. - Inspect Format
Macros§
- This macro simplifies creating diagnostics hierarchies, to remove the need of writing multiple nested hierarchies and manually writing all properties.
Structs§
- A hierarchy of nodes representing structured data, such as Inspect or structured log data.
- An exponential histogram property.
- The parameters of an exponential histogram.
- A linear histogram property.
- The parameters of a linear histogram.
- A value that couldn’t be loaded in the hierarchy and the reason.
Enums§
- Represents the content of a DiagnosticsHierarchy array property: a regular array or a linear/exponential histogram.
- Format in which the array will be read.
- Errors that can happen in this library.
- Reasons why the value couldn’t be loaded.
- A named property. Each of the fields consists of (name, value).
Constants§
- Extra slots for an exponential histogram: 3 parameter slots (floor, initial step and step multiplier) and 2 overflow slots.
- Extra slots for a linear histogram: 2 parameter slots (floor, step size) and 2 overflow slots.
Traits§
- A type which can function as a “view” into a diagnostics hierarchy, optionally allocating a new instance to service a request.
Functions§
- Filters a diagnostics hierarchy using a set of path selectors and their associated property selectors.
- Filters a hierarchy given a tree selector.