abstract class Summary[A] extends ZIOMetric[A]
A Summary represents a sliding window of a time series along with
metrics for certain percentiles of the time series, referred to as
quantiles. Quantiles describe specified percentiles of the sliding window
that are of interest. For example, if we were using a summary to track the
response time for requests over the last hour then we might be interested
in the 50th percentile, 90th percentile, 95th percentile, and 99th
percentile for response times.
- Self Type
- Summary[A]
- Alphabetic
- By Inheritance
- Summary
- ZIOMetric
- ZIOAspect
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Summary(name: String, maxAge: zio.Duration, maxSize: Int, error: Double, quantiles: Chunk[Double], tags: Chunk[MetricLabel])
Abstract Value Members
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
- def >>>[LowerR1 >: Nothing, UpperR1 <: Any, LowerE1 >: Nothing, UpperE1 <: Any, LowerA1 >: Nothing, UpperA1 <: A](that: ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]): ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]
- Definition Classes
- ZIOAspect
- def @@[LowerR1 >: Nothing, UpperR1 <: Any, LowerE1 >: Nothing, UpperE1 <: Any, LowerA1 >: Nothing, UpperA1 <: A](that: ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]): ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]
Returns a new aspect that represents the sequential composition of this aspect with the specified one.
Returns a new aspect that represents the sequential composition of this aspect with the specified one.
- Definition Classes
- ZIOAspect
- def andThen[LowerR1 >: Nothing, UpperR1 <: Any, LowerE1 >: Nothing, UpperE1 <: Any, LowerA1 >: Nothing, UpperA1 <: A](that: ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]): ZIOAspect[LowerR1, UpperR1, LowerE1, UpperE1, LowerA1, UpperA1]
- Definition Classes
- ZIOAspect
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def copy(name: String = name, maxAge: zio.Duration = maxAge, maxSize: Int = maxSize, error: Double = error, quantiles: Chunk[Double] = quantiles, tags: Chunk[MetricLabel] = tags): Summary[A]
Returns a copy of this summary with the specified name, maximum age, maximum size, error, quantiles, and tags.
- val count: UIO[Long]
Returns the current count of all the values ever observed by this summary.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(that: Any): Boolean
Returns whether this summary is equal to the specified summary.
Returns whether this summary is equal to the specified summary.
- Definition Classes
- Summary → AnyRef → Any
- final val error: Double
- 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()
- final def hashCode(): Int
Returns the hash code of this summary.
Returns the hash code of this summary.
- Definition Classes
- Summary → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final val maxAge: zio.Duration
- final val maxSize: Int
- lazy val metricType: Class[_ <: Summary[A]]
The type of this summary.
The type of this summary.
- Attributes
- protected
- final val name: String
- 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(value: Double): UIO[Any]
Adds the specified value to the time series represented by this summary, also recording the
Instantwhen the value was observed. - val quantileValues: UIO[Chunk[(Double, Option[Double])]]
Returns the values corresponding to each quantile in this summary.
- final val quantiles: Chunk[Double]
- val sum: UIO[Double]
Returns the current sum of all the values ever observed by this summary.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final val tags: Chunk[MetricLabel]
- 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()