final 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
- All
Instance Constructors
- new Summary(name: String, maxAge: zio.Duration, maxSize: Int, error: Double, quantiles: Chunk[Double], tags: Chunk[MetricLabel], aspect: (Summary[A]) ⇒ MetricAspect[A])
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
- def apply[R, E, A1 <: A](zio: ZIO[R, E, A1])(implicit trace: ZTraceElement): ZIO[R, E, A1]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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.
-
def
count(implicit trace: ZTraceElement): UIO[Long]
Returns the current count of all the values ever observed by this summary.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
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
- val error: Double
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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
- val maxAge: zio.Duration
- val maxSize: Int
-
lazy val
metricType: Class[_ <: (Summary[A]) ⇒ MetricAspect[A]]
The type of this summary.
The type of this summary.
- Attributes
- protected
- 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)(implicit trace: ZTraceElement): UIO[Any]
Adds the specified value to the time series represented by this summary, also recording the
Instant
when the value was observed. -
def
quantileValues(implicit trace: ZTraceElement): UIO[Chunk[(Double, Option[Double])]]
Returns the values corresponding to each quantile in this summary.
- val quantiles: Chunk[Double]
-
def
sum(implicit trace: ZTraceElement): 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
-
def
taggedWith(f: (A) ⇒ Chunk[MetricLabel]): ZIOMetric[A]
Converts this summary metric to one where the tags depend on the measured effect's result value
- val tags: Chunk[MetricLabel]
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()