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() @IntrinsicCandidate()
  6. def counter(name: String): Counter[Long]

    A counter, which can be incremented by longs.

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

    A counter, which can be incremented by doubles.

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

    A counter, which can be incremented by integers.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def frequency(name: String): Frequency[String]

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

  12. 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.Metric.

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

    A gauge, which can be set to a value.

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

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. def succeed[Out](out: => Out): Metric[Unit, Any, Out]

    Creates a metric that ignores input and produces constant output.

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

    A summary metric.

  23. def summaryInstant(name: String, maxAge: zio.Duration, maxSize: Int, error: Double, quantiles: Chunk[Double]): Summary[(Double, Instant)]
  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. 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").

  26. def toString(): String
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  28. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. 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

Inherited from AnyRef

Inherited from Any

Ungrouped