Packages

o

sttp.client3.prometheus

PrometheusBackend

object PrometheusBackend

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

Type Members

  1. final case class RequestCollectors(maybeTimer: Option[Timer], maybeGauge: Option[Child]) extends Product with Serializable

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. val DefaultErrorCounterName: String
  5. val DefaultFailureCounterName: String
  6. val DefaultHistogramName: String
  7. val DefaultMethodLabel: String
  8. val DefaultRequestSizeName: String
  9. val DefaultRequestsInProgressGaugeName: String
  10. val DefaultResponseSizeName: String
  11. val DefaultStatusLabel: String
  12. val DefaultSuccessCounterName: String
  13. def addMethodLabel[T <: BaseCollectorConfig](config: T, req: Request[_, _]): PrometheusBackend.addMethodLabel.T.T

    Add, if not present, a "method" label.

    Add, if not present, a "method" label. That is, if the user already supplied such a label, it is left as-is.

    config

    The collector config to which the label should be added.

    returns

    The modified collector config. The config can be used when configuring the backend using apply.

  14. def addStatusLabel[T <: BaseCollectorConfig](config: T, resp: Response[_]): PrometheusBackend.addStatusLabel.T.T

    Add, if not present, a "status" label.

    Add, if not present, a "status" label. That is, if the user already supplied such a label, it is left as-is.

    config

    The collector config to which the label should be added.

    returns

    The modified collector config. The config can be used when configuring the backend using apply.

  15. def apply[F[_], P](delegate: SttpBackend[F, P], requestToHistogramNameMapper: (Request[_, _]) ⇒ Option[HistogramCollectorConfig] = ..., requestToInProgressGaugeNameMapper: (Request[_, _]) ⇒ Option[CollectorConfig] = ..., responseToSuccessCounterMapper: (Request[_, _], Response[_]) ⇒ Option[CollectorConfig] = ..., responseToErrorCounterMapper: (Request[_, _], Response[_]) ⇒ Option[CollectorConfig] = ..., requestToFailureCounterMapper: (Request[_, _], Throwable) ⇒ Option[CollectorConfig] = ..., requestToSizeSummaryMapper: (Request[_, _]) ⇒ Option[CollectorConfig] = ..., responseToSizeSummaryMapper: (Request[_, _], Response[_]) ⇒ Option[CollectorConfig] = ..., collectorRegistry: CollectorRegistry = CollectorRegistry.defaultRegistry): SttpBackend[F, P]
  16. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  17. def clear(collectorRegistry: CollectorRegistry): Unit

    Clear cached collectors (gauges and histograms) both from the given collector registry, and from the backend.

  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

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