com.orbitz.consul.model.health.ServiceCheck Maven / Gradle / Ivy
package com.orbitz.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;
@Value.Immutable
@JsonSerialize(as = ImmutableServiceCheck.class)
@JsonDeserialize(as = ImmutableServiceCheck.class)
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class ServiceCheck {
@JsonProperty("Node")
public abstract Node getNode();
@JsonProperty("Service")
public abstract Service getService();
@JsonProperty("Checks")
@JsonDeserialize(as = ImmutableList.class, contentAs = HealthCheck.class)
public abstract List getChecks();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy