org.zodiac.monitor.metrics.config.ManagementMetricsInfo Maven / Gradle / Ivy
package org.zodiac.monitor.metrics.config;
import java.util.Objects;
import org.zodiac.monitor.metrics.micrometer.config.MicrometerInfo;
public class ManagementMetricsInfo {
private final MicrometerInfo micrometer = new MicrometerInfo();
private final MetricsDruidInfo druid = new MetricsDruidInfo();
private final MetricsPrometheusInfo prometheus = new MetricsPrometheusInfo();
public ManagementMetricsInfo() {
}
public MicrometerInfo getMicrometer() {
return micrometer;
}
public MetricsDruidInfo getDruid() {
return druid;
}
public MetricsPrometheusInfo getPrometheus() {
return prometheus;
}
@Override
public int hashCode() {
return Objects.hash(druid, micrometer, prometheus);
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
ManagementMetricsInfo other = (ManagementMetricsInfo)obj;
return Objects.equals(druid, other.druid) && Objects.equals(micrometer, other.micrometer)
&& Objects.equals(prometheus, other.prometheus);
}
@Override
public String toString() {
return "[micrometer=" + micrometer + ", druid=" + druid + ", prometheus=" + prometheus
+ "]";
}
}