de.otto.edison.status.configuration.ClusterInfoProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of edison-core Show documentation
Show all versions of edison-core Show documentation
Core library for all Edison libraries.
package de.otto.edison.status.configuration;
import de.otto.edison.annotations.Beta;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Properties used to configure the display of additional status information on /internal/status and /internal/info.
*/
@ConfigurationProperties(prefix = "edison.status.cluster")
@Beta
public class ClusterInfoProperties {
/**
* Enable/Disable the display of additional status information on /internal/status and /internal/info
*/
private boolean enabled = false;
/**
* HTTP-Header used to identify the current color of the application cluster.
*/
private String colorHeader = "X-Color";
/**
* Http-Header used to identify the current stage of the application cluster.
*/
private String colorStateHeader = "X-Staging";
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public String getColorHeader() {
return colorHeader;
}
public void setColorHeader(String colorHeader) {
this.colorHeader = colorHeader;
}
public String getColorStateHeader() {
return colorStateHeader;
}
public void setColorStateHeader(String colorStateHeader) {
this.colorStateHeader = colorStateHeader;
}
}