public class HystrixMetricsOptions
extends java.lang.Object
| Constructor and Description |
|---|
HystrixMetricsOptions()
Default constructor
|
HystrixMetricsOptions(io.vertx.core.json.JsonObject json)
Create an settings from JSON
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEndpoint() |
boolean |
isEnabled() |
HystrixMetricsOptions |
setEnabled(boolean enabled)
Enabled/disables Hystrix metrics exposed by Knot.x Server, by default - disabled.
|
HystrixMetricsOptions |
setEndpoint(java.lang.String endpoint)
Sets Hystrix metrics endpoint under which it will expose the metrics.
|
io.vertx.core.json.JsonObject |
toJson()
Convert to JSON
|
java.lang.String |
toString() |
public HystrixMetricsOptions()
public HystrixMetricsOptions(io.vertx.core.json.JsonObject json)
json - the JSONpublic io.vertx.core.json.JsonObject toJson()
public boolean isEnabled()
public HystrixMetricsOptions setEnabled(boolean enabled)
enabled - true - metrics enabled, false if disabledpublic java.lang.String getEndpoint()
public HystrixMetricsOptions setEndpoint(java.lang.String endpoint)
/hystrix-metricsendpoint - url under which metrics are providedpublic java.lang.String toString()
toString in class java.lang.Object