Metric

zio.metrics.Metric
See theMetric companion trait
object Metric

Attributes

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

Members list

Type members

Classlikes

implicit class CounterSyntax[In](counter: Metric[Counter, In, Any])

Attributes

Source
Metric.scala
Supertypes
class Object
trait Matchable
class Any
implicit class GaugeSyntax[In](gauge: Metric[Gauge, In, Any])

Attributes

Source
Metric.scala
Supertypes
class Object
trait Matchable
class Any
implicit class InvariantSyntax[Type, In, Out](self: Metric[Type, In, Out])

Attributes

Source
Metric.scala
Supertypes
class Object
trait Matchable
class Any
object runtime

Core metrics that are updated by the ZIO runtime system.

Core metrics that are updated by the ZIO runtime system.

Attributes

Source
Metric.scala
Supertypes
class Object
trait Matchable
class Any
Self type
runtime.type

Types

type Counter[-In] = Metric[Counter, In, Counter]

Attributes

Source
Metric.scala
type Frequency[-In] = Metric[Frequency, In, Frequency]

Attributes

Source
Metric.scala
type Gauge[-In] = Metric[Gauge, In, Gauge]

Attributes

Source
Metric.scala
type Histogram[-In] = Metric[Histogram, In, Histogram]

Attributes

Source
Metric.scala
type Summary[-In] = Metric[Summary, In, Summary]

Attributes

Source
Metric.scala

Value members

Concrete methods

def counter(name: String): Counter[Long]

A counter, which can be incremented by longs.

A counter, which can be incremented by longs.

Attributes

Source
Metric.scala
def counter(name: String, description: String): Counter[Long]

A counter, which can be incremented by longs.

A counter, which can be incremented by longs.

Attributes

Source
Metric.scala

A counter, which can be incremented by doubles.

A counter, which can be incremented by doubles.

Attributes

Source
Metric.scala
def counterDouble(name: String, description: String): Counter[Double]

A counter, which can be incremented by doubles.

A counter, which can be incremented by doubles.

Attributes

Source
Metric.scala
def counterInt(name: String): Counter[Int]

A counter, which can be incremented by integers.

A counter, which can be incremented by integers.

Attributes

Source
Metric.scala
def counterInt(name: String, description: String): Counter[Int]

A counter, which can be incremented by integers.

A counter, which can be incremented by integers.

Attributes

Source
Metric.scala

A string histogram metric, which keeps track of the counts of different strings.

A string histogram metric, which keeps track of the counts of different strings.

Attributes

Source
Metric.scala
def frequency(name: String, description: String): Frequency[String]

A string histogram metric, which keeps track of the counts of different strings.

A string histogram metric, which keeps track of the counts of different strings.

Attributes

Source
Metric.scala
def fromMetricKey[Type <: MetricKeyType](key: MetricKey[Type]): Metric[Type, key.keyType.In, key.keyType.Out]

Creates a metric from a metric key. This is the primary constructor for zio.metrics.Metric.

Creates a metric from a metric key. This is the primary constructor for zio.metrics.Metric.

Attributes

Source
Metric.scala
def gauge(name: String): Gauge[Double]

A gauge, which can be set to a value.

A gauge, which can be set to a value.

Attributes

Source
Metric.scala
def gauge(name: String, description: String): Gauge[Double]

A gauge, which can be set to a value.

A gauge, which can be set to a value.

Attributes

Source
Metric.scala
def histogram(name: String, boundaries: Boundaries): Histogram[Double]

A numeric histogram metric, which keeps track of the count of numbers that fall in bins with the specified boundaries.

A numeric histogram metric, which keeps track of the count of numbers that fall in bins with the specified boundaries.

Attributes

Source
Metric.scala
def histogram(name: String, description: String, boundaries: Boundaries): Histogram[Double]

A numeric histogram metric, which keeps track of the count of numbers that fall in bins with the specified boundaries.

A numeric histogram metric, which keeps track of the count of numbers that fall in bins with the specified boundaries.

Attributes

Source
Metric.scala
def succeed[Out](out: => Out): Metric[Unit, Any, Out]

Creates a metric that ignores input and produces constant output.

Creates a metric that ignores input and produces constant output.

Attributes

Source
Metric.scala
def summary(name: String, maxAge: Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[Double]

A summary metric.

A summary metric.

Attributes

Source
Metric.scala
def summary(name: String, description: String, maxAge: Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[Double]

A summary metric.

A summary metric.

Attributes

Source
Metric.scala
def summaryInstant(name: String, maxAge: Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[(Double, Instant)]

Attributes

Source
Metric.scala
def summaryInstant(name: String, description: String, maxAge: Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[(Double, Instant)]

Attributes

Source
Metric.scala
def timer(name: String, chronoUnit: ChronoUnit): Metric[Histogram, Duration, Histogram]

Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.). The unit of time will automatically be added to the metric as a tag ("time_unit: milliseconds").

Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.). The unit of time will automatically be added to the metric as a tag ("time_unit: milliseconds").

Attributes

Source
Metric.scala
def timer(name: String, description: String, chronoUnit: ChronoUnit): Metric[Histogram, Duration, Histogram]

Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.). The unit of time will automatically be added to the metric as a tag ("time_unit: milliseconds").

Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.). The unit of time will automatically be added to the metric as a tag ("time_unit: milliseconds").

Attributes

Source
Metric.scala
def timer(name: String, chronoUnit: ChronoUnit, boundaries: Chunk[Double]): Metric[Histogram, Duration, Histogram]

Attributes

Source
Metric.scala
def timer(name: String, description: String, chronoUnit: ChronoUnit, boundaries: Chunk[Double]): Metric[Histogram, Duration, Histogram]

Attributes

Source
Metric.scala

Implicits

Implicits

final implicit def CounterSyntax[In](counter: Metric[Counter, In, Any]): CounterSyntax[In]

Attributes

Source
Metric.scala
final implicit def GaugeSyntax[In](gauge: Metric[Gauge, In, Any]): GaugeSyntax[In]

Attributes

Source
Metric.scala
final implicit def InvariantSyntax[Type, In, Out](self: Metric[Type, In, Out]): InvariantSyntax[Type, In, Out]

Attributes

Source
Metric.scala