38 lines
754 B
Groovy
38 lines
754 B
Groovy
package uat.consul
|
|
|
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
|
import com.fasterxml.jackson.annotation.JsonProperty
|
|
|
|
/**
|
|
* Consul health check model. Used in UAT's service discovery of deploydb
|
|
*/
|
|
@JsonIgnoreProperties(ignoreUnknown = true)
|
|
class HealthCheck {
|
|
|
|
@JsonProperty("Node")
|
|
private String node
|
|
|
|
@JsonProperty("CheckID")
|
|
private String checkId
|
|
|
|
@JsonProperty("Name")
|
|
private String name
|
|
|
|
@JsonProperty("Status")
|
|
private String status
|
|
|
|
@JsonProperty("Notes")
|
|
private String notes
|
|
|
|
@JsonProperty("Output")
|
|
private String output
|
|
|
|
@JsonProperty("ServiceID")
|
|
private String serviceId
|
|
|
|
@JsonProperty("ServiceName")
|
|
private String serviceName
|
|
|
|
HealthCheck() { }
|
|
}
|