Crate diagnostics_hierarchy

Source
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§

DiagnosticsHierarchy
A hierarchy of nodes representing structured data, such as Inspect or structured log data.
DiagnosticsHierarchyIterator
ExponentialHistogram
An exponential histogram property.
ExponentialHistogramParams
The parameters of an exponential histogram.
HierarchyMatcher
LinearHistogram
A linear histogram property.
LinearHistogramParams
The parameters of a linear histogram.
MissingValue
A value that couldn’t be loaded in the hierarchy and the reason.

Enums§

ArrayContent
Represents the content of a DiagnosticsHierarchy array property: a regular array or a linear/exponential histogram.
ArrayFormat
Format in which the array will be read.
Error
Errors that can happen in this library.
MissingValueReason
Reasons why the value couldn’t be loaded.
Property
A named property. Each of the fields consists of (name, value).
SelectResult

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§

DiagnosticsHierarchyGetter
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