abstract class Histogram[A] extends ZIOMetric[A]
A Histogram is a metric representing a collection of numerical values
with the distribution of the cumulative values over time. A typical use of
this metric would be to track the time to serve requests. Histograms allow
visualizing not only the value of the quantity being measured but its
distribution. Histograms are constructed with user specified boundaries
which describe the buckets to aggregate values into.
- Self Type
- Histogram[A]
- Alphabetic
- By Inheritance
- Histogram
- ZIOMetric
- ZIOAspect
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new Histogram(name: String, boundaries: Boundaries, tags: Chunk[MetricLabel])
Abstract Value Members
- abstract def apply[R, E, A1 <: A](zio: ZIO[R, E, A1])(implicit trace: ZTraceElement): ZIO[R, E, A1]
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
- final val boundaries: Boundaries
-
def
buckets(implicit trace: ZTraceElement): UIO[Chunk[(Double, Long)]]
Returns the current sum and count of values in each bucket of this histogram.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
copy(name: String = name, boundaries: Boundaries = boundaries, tags: Chunk[MetricLabel] = tags): Histogram[A]
Returns a copy of this histogram with the specified name, boundaries, and tags.
-
def
count(implicit trace: ZTraceElement): UIO[Long]
Returns the current count of values in this histogram.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
equals(that: Any): Boolean
Returns whether this histogram is equal to the specified histogram.
Returns whether this histogram is equal to the specified histogram.
- Definition Classes
- Histogram → AnyRef → Any
-
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()
-
final
def
hashCode(): Int
Returns the hash code of this histogram.
Returns the hash code of this histogram.
- Definition Classes
- Histogram → AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
lazy val
metricType: Class[_ <: Histogram[A]]
The type of this histogram.
The type of this histogram.
- 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)(implicit trace: ZTraceElement): UIO[Any]
Adds the specified value to the distribution of values represented by this histogram.
-
def
sum(implicit trace: ZTraceElement): UIO[Double]
Returns the current sum of values in this histogram.
-
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( ... )
-
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()