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§
- macros
- Macro utilities for building a
DiagnosticsHierarchy
. - serialization
- Inspect Format
- testing
Macros§
- hierarchy
- This macro simplifies creating diagnostics hierarchies, to remove the need of writing multiple nested hierarchies and manually writing all properties.
Structs§
- Diagnostics
Hierarchy - A hierarchy of nodes representing structured data, such as Inspect or structured log data.
- Diagnostics
Hierarchy Iterator - Exponential
Histogram - An exponential histogram property.
- Exponential
Histogram Params - The parameters of an exponential histogram.
- Hierarchy
Matcher - Linear
Histogram - A linear histogram property.
- Linear
Histogram Params - The parameters of a linear histogram.
- Missing
Value - A value that couldn’t be loaded in the hierarchy and the reason.
Enums§
- Array
Content - Represents the content of a DiagnosticsHierarchy array property: a regular array or a linear/exponential histogram.
- Array
Format - Format in which the array will be read.
- Error
- Errors that can happen in this library.
- Missing
Value Reason - Reasons why the value couldn’t be loaded.
- Property
- A named property. Each of the fields consists of (name, value).
- Select
Result
Constants§
- EXPONENTIAL_
HISTOGRAM_ EXTRA_ SLOTS - Extra slots for an exponential histogram: 3 parameter slots (floor, initial step and step multiplier) and 2 overflow slots.
- LINEAR_
HISTOGRAM_ EXTRA_ SLOTS - Extra slots for a linear histogram: 2 parameter slots (floor, step size) and 2 overflow slots.
Traits§
- Diagnostics
Hierarchy Getter - A type which can function as a “view” into a diagnostics hierarchy, optionally allocating a new instance to service a request.
Functions§
- filter_
hierarchy - Filters a diagnostics hierarchy using a set of path selectors and their associated property selectors.
- filter_
tree - Filters a hierarchy given a tree selector.
- select_
from_ hierarchy