Class CallMeter.Builder

java.lang.Object
io.github.resilience4j.prometheus.CallMeter.Builder
Enclosing interface:
CallMeter

public static class CallMeter.Builder
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    Builder()  
  • Method Summary

    Modifier and Type Method Description
    CallMeter build()
    Return the constructed collector.
    CallMeter.Builder help​(java.lang.String help)
    Set the help string of the metric.
    CallMeter.Builder labelNames​(java.lang.String... labelNames)
    Set the labelNames of the metric.
    CallMeter.Builder name​(java.lang.String name)
    Set the name of the metric.
    CallMeter.Builder namespace​(java.lang.String namespace)
    Set the namespace of the metric.
    CallMeter.Builder subsystem​(java.lang.String subsystem)
    Set the subsystem of the metric.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • name

      public CallMeter.Builder name​(java.lang.String name)
      Set the name of the metric. Required.
    • subsystem

      public CallMeter.Builder subsystem​(java.lang.String subsystem)
      Set the subsystem of the metric. Optional.
    • namespace

      public CallMeter.Builder namespace​(java.lang.String namespace)
      Set the namespace of the metric. Optional.
    • help

      public CallMeter.Builder help​(java.lang.String help)
      Set the help string of the metric. Required.
    • labelNames

      public CallMeter.Builder labelNames​(java.lang.String... labelNames)
      Set the labelNames of the metric. Optional, defaults to no labels.
    • build

      public CallMeter build()
      Return the constructed collector.