Gauge

trait Gauge extends TimerMetric
Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def dec(amount: Double): UIO[Unit]
def get: UIO[Double]
def inc(amount: Double): UIO[Unit]
def set(value: Double): UIO[Unit]

Concrete methods

def dec: UIO[Unit]
def inc: UIO[Unit]
override
def observe(amount: Duration): UIO[Unit]
Definition Classes

Inherited methods

def observe[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]

Runs the given effect and records in the metric how much time it took to succeed or fail.

Runs the given effect and records in the metric how much time it took to succeed or fail.

Inherited from
TimerMetric
def observeSuccess[R, E, A](zio: ZIO[R, E, A]): ZIO[R, E, A]

Runs the given effect and records in the metric how much time it took to succeed. Do not record failures.

Runs the given effect and records in the metric how much time it took to succeed. Do not record failures.

Inherited from
TimerMetric
def startTimer: UIO[Timer]

Starts a timer. When the timer is stopped, the duration is recorded in the metric.

Starts a timer. When the timer is stopped, the duration is recorded in the metric.

Inherited from
TimerMetric
def timer: UManaged[Timer]

A managed timer resource.

A managed timer resource.

Inherited from
TimerMetric