| Modifier and Type | Interface and Description |
|---|---|
static class |
Gauge.Builder
Builder for
Gauges. |
| Modifier and Type | Method and Description |
|---|---|
static Gauge.Builder |
builder(String name)
Create new builder for
Gauge. |
default void |
decrement()
Decrement the gauge by one.
|
void |
decrement(double amount)
Decrement the gauge by
amount. |
double |
get() |
default void |
increment()
Increment the gauge by one.
|
void |
increment(double amount)
Increment the gauge by
amount. |
void |
set(double value)
Set the gauge to the given value.
|
static Gauge.Builder builder(String name)
Gauge.name - The name of the metric.Gauge.default void increment()
void increment(double amount)
amount.amount - Amount to add to the gauge.default void decrement()
void decrement(double amount)
amount.amount - Amount to subtract from the gauge.void set(double value)
value - The value to set to the gauge.double get()
Copyright © 2018 WSO2. All rights reserved.