A mutable, integer-valued gauge.
Moduleekg-core-0.1.2.0Haskell2010
System.Metrics.Gauge
This module defines a type for mutable, integer-valued gauges. Gauges are variable values and can be used to track e.g. the current number of concurrent connections. All operations on gauges are thread-safe.
- 1 type
- 7 values
- Packageekg-core-0.1.2.0
- Exports8
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceGauge.hs
Create a new, zero initialized, gauge.
Get the current value of the gauge.
Increase the gauge by one.
Decrease the gauge by one.
Increase the gauge by the given amount.
Decrease the gauge by the given amount.
Set the gauge to the given value.