trait Gauge extends TimerMetric
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Gauge
- TimerMetric
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def dec(amount: Double): UIO[Unit]
- abstract def get: UIO[Double]
- abstract def inc(amount: Double): UIO[Unit]
- abstract def set(value: Double): UIO[Unit]
- abstract def startTimer: UIO[Timer]
Starts a timer.
Starts a timer. When the timer is stopped, the duration is recorded in the metric.
- Definition Classes
- TimerMetric
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def dec: UIO[Unit]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def inc: UIO[Unit]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def observe(amount: zio.Duration): UIO[Unit]
- Definition Classes
- Gauge → TimerMetric
- 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.
- Definition Classes
- 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.
Runs the given effect and records in the metric how much time it took to succeed. Do not record failures.
- Definition Classes
- TimerMetric
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timer: URIO[Scope, Timer]
A managed timer resource.
A managed timer resource.
- Definition Classes
- TimerMetric
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()