MCPcopy
hub / github.com/prometheus/client_golang / SetToCurrentTime

Method SetToCurrentTime

prometheus/gauge.go:52–52  ·  view source on GitHub ↗

SetToCurrentTime sets the Gauge to the current Unix time in seconds.

()

Source from the content-addressed store, hash-verified

50
51 // SetToCurrentTime sets the Gauge to the current Unix time in seconds.
52 SetToCurrentTime()
53}
54
55// GaugeOpts is an alias for Opts. See there for doc comments.

Callers 3

TestGaugeSetCurrentTimeFunction · 0.95
ExamplePusher_PushFunction · 0.95
ExamplePusher_AddFunction · 0.65

Implementers 1

gaugeprometheus/gauge.go

Calls

no outgoing calls

Tested by 3

TestGaugeSetCurrentTimeFunction · 0.76
ExamplePusher_PushFunction · 0.76
ExamplePusher_AddFunction · 0.52