Class MetricsOptions
java.lang.Object
io.vertx.core.metrics.MetricsOptions
- Direct Known Subclasses:
DropwizardMetricsOptions, MicrometerMetricsOptions
Vert.x metrics base configuration, this class can be extended by provider implementations to configure
those specific implementations.
- Author:
- Julien Viet
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanThe default value of metrics enabled false -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorMetricsOptions(JsonObject json) Create an instance from aJsonObjectMetricsOptions(MetricsOptions other) Copy constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanWill metrics be enabled on the Vert.x instance?setEnabled(boolean enable) Set whether metrics will be enabled on the Vert.x instance.toJson()toString()
-
Field Details
-
DEFAULT_METRICS_ENABLED
public static final boolean DEFAULT_METRICS_ENABLEDThe default value of metrics enabled false- See Also:
-
-
Constructor Details
-
MetricsOptions
public MetricsOptions()Default constructor -
MetricsOptions
Copy constructor- Parameters:
other- The otherMetricsOptionsto copy when creating this
-
MetricsOptions
Create an instance from aJsonObject- Parameters:
json- the JsonObject to create it from
-
-
Method Details
-
isEnabled
public boolean isEnabled()Will metrics be enabled on the Vert.x instance?- Returns:
- true if enabled, false if not.
-
setEnabled
Set whether metrics will be enabled on the Vert.x instance.- Parameters:
enable- true if metrics enabled, or false if not.- Returns:
- a reference to this, so the API can be used fluently
-
toJson
-
toString
-