method Gauge.value
The current value.
Example:
use std.obs { metric }
fn main() io {
let g = metric.gauge("docs_gauge_value")
g.set(9.0)
print("{g.value()}")
}Output
9.0
pub(api) fn value() -> f64 ioComplexity. O(1).
Since. 1.0.0-beta
Returns
f64
Effects
io
Defined in: std/obs/obs.oxl:701