All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog.metrics.prometheus.mapping.AutoValue_PrometheusMappingConfig Maven / Gradle / Ivy

There is a newer version: 6.0.1
Show newest version
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$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy