pub struct Snapshot { /* fields omitted */ }
A point-in-time view of metric data.
Gets the counter value for the given metric key.
Returns None
if the metric key has no counter value in this snapshot.
Gets the gauge value for the given metric key.
Returns None
if the metric key has no gauge value in this snapshot.
Gets the given timing percentile for given metric key.
Returns None
if the metric key has no value at the given percentile in this snapshot.
Gets the given value percentile for the given metric key.
Returns None
if the metric key has no value at the given percentile in this snapshot.
Gets a collection of the metrics with signed values.
Gets a collection of the metrics with unsigned values.
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static