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 CallMeterbuild()Return the constructed collector.CallMeter.Builderhelp(java.lang.String help)Set the help string of the metric.CallMeter.BuilderlabelNames(java.lang.String... labelNames)Set the labelNames of the metric.CallMeter.Buildername(java.lang.String name)Set the name of the metric.CallMeter.Buildernamespace(java.lang.String namespace)Set the namespace of the metric.CallMeter.Buildersubsystem(java.lang.String subsystem)Set the subsystem of the metric.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Set the name of the metric. Required. -
subsystem
Set the subsystem of the metric. Optional. -
namespace
Set the namespace of the metric. Optional. -
help
Set the help string of the metric. Required. -
labelNames
Set the labelNames of the metric. Optional, defaults to no labels. -
build
Return the constructed collector.
-