method Gauge.set
Sets the value.
Example:
use std.obs { metric }
fn main() io {
let g = metric.gauge("docs_set")
g.set(3.5)
print("{g.value()}")
}Output
3.5
pub(api) fn set(v: f64) ioComplexity. O(1).
Since. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
v | f64 |
Effects
io
Defined in: std/obs/obs.oxl:619