org.kiwiproject.consul.model.health.HealthCheck Maven / Gradle / Ivy
package org.kiwiproject.consul.model.health;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.google.common.collect.ImmutableList;
import org.immutables.value.Value;
import java.util.List;
import java.util.Optional;
@Value.Immutable
@Value.Style(jakarta = true)
@JsonSerialize(as = ImmutableHealthCheck.class)
@JsonDeserialize(as = ImmutableHealthCheck.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class HealthCheck {
@JsonProperty("Node")
public abstract String getNode();
@JsonProperty("CheckID")
public abstract String getCheckId();
@JsonProperty("Name")
public abstract String getName();
@JsonProperty("Status")
public abstract String getStatus();
@JsonProperty("Notes")
public abstract Optional getNotes();
@JsonProperty("Output")
public abstract Optional getOutput();
@JsonProperty("ServiceID")
public abstract Optional getServiceId();
@JsonProperty("ServiceName")
public abstract Optional getServiceName();
@JsonProperty("ServiceTags")
@JsonDeserialize(as = ImmutableList.class, contentAs = String.class)
public abstract List getServiceTags();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy