Packages

object Metric

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Metric
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Counter[-In] = Metric[MetricKeyType.Counter, In, MetricState.Counter]
  2. implicit class CounterSyntax[In] extends AnyRef
  3. type Frequency[-In] = Metric[MetricKeyType.Frequency, In, MetricState.Frequency]
  4. type Gauge[-In] = Metric[MetricKeyType.Gauge, In, MetricState.Gauge]
  5. implicit class GaugeSyntax[In] extends AnyRef
  6. type Histogram[-In] = Metric[MetricKeyType.Histogram, In, MetricState.Histogram]
  7. implicit class InvariantSyntax[Type, In, Out] extends AnyRef
  8. type Summary[-In] = Metric[MetricKeyType.Summary, In, MetricState.Summary]

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def counter(name: String, description: String): Counter[Long]

    A counter, which can be incremented by longs.

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

    A counter, which can be incremented by longs.

  8. def counterDouble(name: String, description: String): Counter[Double]

    A counter, which can be incremented by doubles.

  9. def counterDouble(name: String): Counter[Double]

    A counter, which can be incremented by doubles.

  10. def counterInt(name: String, description: String): Counter[Int]

    A counter, which can be incremented by integers.

  11. def counterInt(name: String): Counter[Int]

    A counter, which can be incremented by integers.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def frequency(name: String, description: String): Frequency[String]

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

  15. def frequency(name: String): Frequency[String]

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

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

    Creates a metric from a metric key.

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

  17. def gauge(name: String, description: String): Gauge[Double]

    A gauge, which can be set to a value.

  18. def gauge(name: String): Gauge[Double]

    A gauge, which can be set to a value.

  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. 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.

  22. 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.

  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def succeed[Out](out: => Out): Metric[Unit, Any, Out]

    Creates a metric that ignores input and produces constant output.

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

    A summary metric.

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

    A summary metric.

  30. def summaryInstant(name: String, description: String, maxAge: zio.Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[(Double, Instant)]
  31. def summaryInstant(name: String, maxAge: zio.Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[(Double, Instant)]
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def timer(name: String, description: String, chronoUnit: ChronoUnit, boundaries: Chunk[Double]): Metric[MetricKeyType.Histogram, zio.Duration, MetricState.Histogram]
  34. def timer(name: String, chronoUnit: ChronoUnit, boundaries: Chunk[Double]): Metric[MetricKeyType.Histogram, zio.Duration, MetricState.Histogram]
  35. def timer(name: String, description: String, chronoUnit: ChronoUnit): Metric[MetricKeyType.Histogram, zio.Duration, MetricState.Histogram]

    Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.).

    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").

  36. def timer(name: String, chronoUnit: ChronoUnit): Metric[MetricKeyType.Histogram, zio.Duration, MetricState.Histogram]

    Creates a timer metric, based on a histogram, which keeps track of durations in the specified unit of time (milliseconds, seconds, etc.).

    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").

  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. object runtime

    Core metrics that are updated by the ZIO runtime system.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped