org.graylog.metrics.prometheus.mapping.AutoValue_PrometheusMappingConfig Maven / Gradle / Ivy
package org.graylog.metrics.prometheus.mapping;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PrometheusMappingConfig extends PrometheusMappingConfig {
private final List metricMappings;
AutoValue_PrometheusMappingConfig(
List metricMappings) {
if (metricMappings == null) {
throw new NullPointerException("Null metricMappings");
}
this.metricMappings = metricMappings;
}
@JsonProperty("metric_mappings")
@Override
public List metricMappings() {
return metricMappings;
}
@Override
public String toString() {
return "PrometheusMappingConfig{"
+ "metricMappings=" + metricMappings
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof PrometheusMappingConfig) {
PrometheusMappingConfig that = (PrometheusMappingConfig) o;
return this.metricMappings.equals(that.metricMappings());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= metricMappings.hashCode();
return h$;
}
}