org.graylog.plugins.sidecar.rest.models.AutoValue_NodeMetrics Maven / Gradle / Ivy
package org.graylog.plugins.sidecar.rest.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_NodeMetrics extends NodeMetrics {
private final List disks75;
private final Float cpuIdle;
private final Float load1;
AutoValue_NodeMetrics(
@Nullable List disks75,
@Nullable Float cpuIdle,
@Nullable Float load1) {
this.disks75 = disks75;
this.cpuIdle = cpuIdle;
this.load1 = load1;
}
@JsonProperty(value = "disks_75")
@Nullable
@Override
public List disks75() {
return disks75;
}
@JsonProperty(value = "cpu_idle")
@Nullable
@Override
public Float cpuIdle() {
return cpuIdle;
}
@JsonProperty(value = "load_1")
@Nullable
@Override
public Float load1() {
return load1;
}
@Override
public String toString() {
return "NodeMetrics{"
+ "disks75=" + disks75 + ", "
+ "cpuIdle=" + cpuIdle + ", "
+ "load1=" + load1
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof NodeMetrics) {
NodeMetrics that = (NodeMetrics) o;
return ((this.disks75 == null) ? (that.disks75() == null) : this.disks75.equals(that.disks75()))
&& ((this.cpuIdle == null) ? (that.cpuIdle() == null) : this.cpuIdle.equals(that.cpuIdle()))
&& ((this.load1 == null) ? (that.load1() == null) : this.load1.equals(that.load1()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (disks75 == null) ? 0 : disks75.hashCode();
h$ *= 1000003;
h$ ^= (cpuIdle == null) ? 0 : cpuIdle.hashCode();
h$ *= 1000003;
h$ ^= (load1 == null) ? 0 : load1.hashCode();
return h$;
}
}