Object/Class

io.chrisdavenport.epimetheus

Summary

Related Docs: class Summary | package epimetheus

Permalink

object Summary

Source
Summary.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Summary
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class Quantile extends AnyRef

    Permalink

    The percentile and tolerated error to be observed

    The percentile and tolerated error to be observed

    There is a safe constructor, and a macro constructor which can statically verify these values if they are known at compile time.

    Quantile.quantile(0.5, 0.05) - 50th percentile (= median) with 5% tolerated error

    Quantile.quantile(0.9, 0.01) - 90th percentile with 1% tolerated error

    Quantile.quantile(0.99, 0.001) - 99th percentile with 0.1% tolerated error

  2. final class UnlabelledSummary[F[_], A] extends AnyRef

    Permalink

    Generic Unlabeled Summary

    Generic Unlabeled Summary

    Apply a label to be able to measure events.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Quantile

    Permalink
  5. object Unsafe

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val defaultAgeBuckets: Int

    Permalink
  9. val defaultMaxAgeSeconds: Long

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. def labelled[F[_], A, N <: Nat](cr: CollectorRegistry[F], name: String, help: String, labels: Sized[IndexedSeq[String], N], f: (A) ⇒ Sized[IndexedSeq[String], N], quantiles: Quantile*)(implicit arg0: Sync[F], arg1: Clock[F]): F[UnlabelledSummary[F, A]]

    Permalink

    Default Constructor for a labelled Summary.

    Default Constructor for a labelled Summary.

    maxAgeSeconds is set to defaultMaxAgeSeconds which is 10 minutes.

    ageBuckets is the number of buckets for the sliding time window, set to defaultAgeBuckets which is 5.

    This generates a specific number of labels via Sized, in combination with a function to generate an equally Sized set of labels from some type. Values are applied by position.

    This counter needs to have a label applied to the UnlabelledSummary in order to be measureable or recorded.

    cr

    CollectorRegistry this Summary will be registred with

    name

    The name of the Summary.

    help

    The help string of the metric

    labels

    The name of the labels to be applied to this metric

    f

    Function to take some value provided in the future to generate an equally sized list of strings as the list of labels. These are assigned to labels by position.

    quantiles

    The measurements to track for specifically over the sliding time window.

  17. def labelledQuantiles[F[_], A, N <: Nat](cr: CollectorRegistry[F], name: String, help: String, maxAgeSeconds: Long, ageBuckets: Int, labels: Sized[IndexedSeq[String], N], f: (A) ⇒ Sized[IndexedSeq[String], N], quantiles: Quantile*)(implicit arg0: Sync[F], arg1: Clock[F]): F[UnlabelledSummary[F, A]]

    Permalink

    Constructor for a labelled Summary.

    Constructor for a labelled Summary.

    maxAgeSeconds is set to defaultMaxAgeSeconds which is 10 minutes.

    ageBuckets is the number of buckets for the sliding time window, set to defaultAgeBuckets which is 5.

    This generates a specific number of labels via Sized, in combination with a function to generate an equally Sized set of labels from some type. Values are applied by position.

    This counter needs to have a label applied to the UnlabelledSummary in order to be measureable or recorded.

    cr

    CollectorRegistry this Summary will be registred with

    name

    The name of the Summary.

    help

    The help string of the metric

    maxAgeSeconds

    Set the duration of the time window is, i.e. how long observations are kept before they are discarded.

    ageBuckets

    Set the number of buckets used to implement the sliding time window. If your time window is 10 minutes, and you have ageBuckets=5, buckets will be switched every 2 minutes. The value is a trade-off between resources (memory and cpu for maintaining the bucket) and how smooth the time window is moved.

    labels

    The name of the labels to be applied to this metric

    f

    Function to take some value provided in the future to generate an equally sized list of strings as the list of labels. These are assigned to labels by position.

    quantiles

    The measurements to track for specifically over the sliding time window.

  18. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  19. def noLabels[F[_]](cr: CollectorRegistry[F], name: String, help: String, quantiles: Quantile*)(implicit arg0: Sync[F], arg1: Clock[F]): F[Summary[F]]

    Permalink

    Default Constructor for a Summary with no labels.

    Default Constructor for a Summary with no labels.

    maxAgeSeconds is set to defaultMaxAgeSeconds which is 10 minutes.

    ageBuckets is the number of buckets for the sliding time window, set to defaultAgeBuckets which is 5.

    If you want to exert control, use the full constructor noLabelsQuantiles

    cr

    CollectorRegistry this Summary will be registered with

    name

    The name of the Summary

    help

    The help string of the metric

    quantiles

    The measurements to track for specifically over the sliding time window.

  20. def noLabelsQuantiles[F[_]](cr: CollectorRegistry[F], name: String, help: String, maxAgeSeconds: Long, ageBuckets: Int, quantiles: Quantile*)(implicit arg0: Sync[F], arg1: Clock[F]): F[Summary[F]]

    Permalink

    Constructor for a Summary with no labels.

    Constructor for a Summary with no labels.

    maxAgeSeconds is set to defaultMaxAgeSeconds which is 10 minutes.

    ageBuckets is the number of buckets for the sliding time window, set to defaultAgeBuckets which is 5.

    If you want to exert control, use the full constructor noLabelsQuantiles

    cr

    CollectorRegistry this Summary will be registered with

    name

    The name of the Summary

    help

    The help string of the metric

    maxAgeSeconds

    Set the duration of the time window is, i.e. how long observations are kept before they are discarded.

    ageBuckets

    Set the number of buckets used to implement the sliding time window. If your time window is 10 minutes, and you have ageBuckets=5, buckets will be switched every 2 minutes. The value is a trade-off between resources (memory and cpu for maintaining the bucket) and how smooth the time window is moved.

    quantiles

    The measurements to track for specifically over the sliding time window.

  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped