public class VertxJmxMetricsOptions extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DOMAIN
Default value for the domain = metrics.
|
static boolean |
DEFAULT_ENABLED
Default value for enabled = false.
|
static int |
DEFAULT_STEP
Default value for metric collection interval (in seconds) = 10.
|
Constructor and Description |
---|
VertxJmxMetricsOptions()
Default constructor
|
VertxJmxMetricsOptions(JsonObject json)
Create an instance from a
JsonObject |
VertxJmxMetricsOptions(VertxJmxMetricsOptions other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
String |
getDomain()
Get the JMX domain under which metrics are published
|
int |
getStep()
Get the step of push intervals, in seconds
|
boolean |
isEnabled()
Will JMX reporting be enabled?
|
VertxJmxMetricsOptions |
setDomain(String domain)
Set the JMX domain under which to publish metrics
|
VertxJmxMetricsOptions |
setEnabled(boolean enabled)
Set true to enable Prometheus reporting
|
VertxJmxMetricsOptions |
setStep(int step)
Push interval steps, in seconds.
|
JsonObject |
toJson() |
io.micrometer.jmx.JmxConfig |
toMicrometerConfig()
Convert these options to a Micrometer's
JmxConfig object |
public static final boolean DEFAULT_ENABLED
public static final String DEFAULT_DOMAIN
public static final int DEFAULT_STEP
public VertxJmxMetricsOptions()
public VertxJmxMetricsOptions(VertxJmxMetricsOptions other)
other
- The other VertxJmxMetricsOptions
to copy when creating thispublic VertxJmxMetricsOptions(JsonObject json)
JsonObject
json
- the JsonObject to create it frompublic JsonObject toJson()
public boolean isEnabled()
public VertxJmxMetricsOptions setEnabled(boolean enabled)
public String getDomain()
public VertxJmxMetricsOptions setDomain(String domain)
public int getStep()
public VertxJmxMetricsOptions setStep(int step)
public io.micrometer.jmx.JmxConfig toMicrometerConfig()
JmxConfig
objectCopyright © 2022 Eclipse. All rights reserved.