Polish PrometheusProperties
See gh-45503 Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
This commit is contained in:
committed by
Stéphane Nicoll
parent
1dfa5c721c
commit
1325429e5e
@@ -101,7 +101,7 @@ public class PrometheusProperties {
|
||||
/**
|
||||
* Enable publishing over a Prometheus Pushgateway.
|
||||
*/
|
||||
private Boolean enabled = false;
|
||||
private boolean enabled;
|
||||
|
||||
/**
|
||||
* Address (host:port) for the Pushgateway.
|
||||
@@ -153,11 +153,11 @@ public class PrometheusProperties {
|
||||
*/
|
||||
private ShutdownOperation shutdownOperation = ShutdownOperation.NONE;
|
||||
|
||||
public Boolean getEnabled() {
|
||||
public boolean isEnabled() {
|
||||
return this.enabled;
|
||||
}
|
||||
|
||||
public void setEnabled(Boolean enabled) {
|
||||
public void setEnabled(boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user