CurrentTimeRecorder

prometheus4cats.CurrentTimeRecorder$
See theCurrentTimeRecorder companion trait

Attributes

Companion
trait
Source
CurrentTimeRecorder.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

implicit class CurrentTimeRecorderSyntax[F[_]](recorder: CurrentTimeRecorder[F, Unit])

Attributes

Source
CurrentTimeRecorder.scala
Supertypes
class Object
trait Matchable
class Any
implicit class LabelledCurrentTimeRecorderSyntax[F[_], A](recorder: CurrentTimeRecorder[F, A])(implicit ev: Unit =:!= A)

Attributes

Source
CurrentTimeRecorder.scala
Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

def fromDoubleGauge[F[_] : Clock, A](gauge: Gauge[F, Double, A])(f: FiniteDuration => Double): CurrentTimeRecorder[F, A]

Create a CurrentTimeRecorder from a Gauge that records scala.Double values

Create a CurrentTimeRecorder from a Gauge that records scala.Double values

The best way to construct a CurrentTimeRecorder is to use the asCurrentTimeRecorder on the gauge DSL provided by MetricFactory

Value parameters

f

a function to go from the current time represented in scala.concurrent.duration.FiniteDuration as a scala.Double

gauge

the Gauge instance to set the current time value against

Attributes

Source
CurrentTimeRecorder.scala
def fromLongGauge[F[_] : Clock, A](gauge: Gauge[F, Long, A])(f: FiniteDuration => Long): CurrentTimeRecorder[F, A]

Create a CurrentTimeRecorder from a Gauge that records scala.Long values

Create a CurrentTimeRecorder from a Gauge that records scala.Long values

The best way to construct a CurrentTimeRecorder is to use the asCurrentTimeRecorder on the gauge DSL provided by MetricFactory

Value parameters

f

a function to go from the current time represented in scala.concurrent.duration.FiniteDuration as a scala.Long

gauge

the Gauge instance to set the current time value against

Attributes

Source
CurrentTimeRecorder.scala

Implicits

Implicits

final implicit def CurrentTimeRecorderSyntax[F[_]](recorder: CurrentTimeRecorder[F, Unit]): CurrentTimeRecorderSyntax[F]

Attributes

Source
CurrentTimeRecorder.scala
final implicit def LabelledCurrentTimeRecorderSyntax[F[_], A](recorder: CurrentTimeRecorder[F, A])(implicit ev: Unit =:!= A): LabelledCurrentTimeRecorderSyntax[F, A]

Attributes

Source
CurrentTimeRecorder.scala
implicit def labelsContravariant[F[_]]: LabelsContravariant[[_] =>> CurrentTimeRecorder[F, _$8]]

Attributes

Source
CurrentTimeRecorder.scala