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.1.4
Show newest version
package org.graylog.metrics.prometheus.mapping;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_PrometheusMappingConfig extends PrometheusMappingConfig {

  private final List metricMappingConfigs;

  AutoValue_PrometheusMappingConfig(
      List metricMappingConfigs) {
    if (metricMappingConfigs == null) {
      throw new NullPointerException("Null metricMappingConfigs");
    }
    this.metricMappingConfigs = metricMappingConfigs;
  }

  @JsonProperty("metric_mappings")
  @Override
  public List metricMappingConfigs() {
    return metricMappingConfigs;
  }

  @Override
  public String toString() {
    return "PrometheusMappingConfig{"
        + "metricMappingConfigs=" + metricMappingConfigs
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PrometheusMappingConfig) {
      PrometheusMappingConfig that = (PrometheusMappingConfig) o;
      return this.metricMappingConfigs.equals(that.metricMappingConfigs());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= metricMappingConfigs.hashCode();
    return h$;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy