io.dropwizard.health.conf.HealthCheckConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropwizard-health Show documentation
Show all versions of dropwizard-health Show documentation
Provides a health check implementation that performs ongoing monitoring of an application's dependencies and includes
an endpoint that can be called by a load balancer to determine if the application is healthy and thus able to retrieve
traffic.
package io.dropwizard.health.conf;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
public class HealthCheckConfiguration {
@NotNull
@Size(min = 1)
@JsonProperty
private String name;
@JsonProperty
private boolean critical = false;
@Valid
@NotNull
@JsonProperty
private Schedule schedule = new Schedule();
public String getName() {
return name;
}
public void setName(final String name) {
this.name = name;
}
public boolean isCritical() {
return critical;
}
public void setCritical(final boolean critical) {
this.critical = critical;
}
public Schedule getSchedule() {
return schedule;
}
public void setSchedule(final Schedule schedule) {
this.schedule = schedule;
}
}