Gauge

Instrument that tracks the latest observed value of a given measure.

Companion:
object
trait Tagging[Gauge]
class Object
trait Matchable
class Any
class Volatile

Value members

Abstract methods

Decrements the current value by one.

Decrements the current value by one.

def decrement(times: Double): Gauge

Decrements the current value the provided number of times.

Decrements the current value the provided number of times.

Increments the current value by one.

Increments the current value by one.

def increment(times: Double): Gauge

Increments the current value the provided number of times.

Increments the current value the provided number of times.

def update(value: Double): Gauge

Sets the current value of the gauge to the provided value.

Sets the current value of the gauge to the provided value.

Inherited methods

def autoUpdate(consumer: Gauge => Unit): Gauge

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Inherited from:
Instrument
def autoUpdate(consumer: Consumer[Gauge], interval: Duration): Gauge

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Inherited from:
Instrument
def autoUpdate(consumer: Consumer[Gauge]): Gauge

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Inherited from:
Instrument
def autoUpdate(consumer: Gauge => Unit, interval: Duration): Gauge

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Inherited from:
Instrument

Returns the metric to which this instrument belongs.

Returns the metric to which this instrument belongs.

Inherited from:
Instrument
def remove(): Boolean

Removes this instrument from the metric.

Removes this instrument from the metric.

Inherited from:
Instrument

Returns the tags used to create this instrument.

Returns the tags used to create this instrument.

Inherited from:
Instrument
override def withTag(key: String, value: Long): Gauge
Definition Classes
Inherited from:
Instrument
override def withTag(key: String, value: Boolean): Gauge
Definition Classes
Inherited from:
Instrument
override def withTag(key: String, value: String): Gauge
Definition Classes
Inherited from:
Instrument
override def withTags(tags: TagSet): Gauge
Definition Classes
Inherited from:
Instrument