Пример #1
0
 @Override
 public boolean equals(Object obj) {
   if (obj instanceof MetricsInfo) {
     MetricsInfo other = (MetricsInfo) obj;
     return Objects.equal(name, other.name()) && Objects.equal(description, other.description());
   }
   return false;
 }
Пример #2
0
 @Override
 public MetricsRecordBuilder addGauge(MetricsInfo metricsInfo, int i) {
   gauges.put(canonicalizeMetricName(metricsInfo.name()), Long.valueOf(i));
   return this;
 }
Пример #3
0
 @Override
 public MetricsRecordBuilder addCounter(MetricsInfo metricsInfo, long l) {
   counters.put(canonicalizeMetricName(metricsInfo.name()), Long.valueOf(l));
   return this;
 }
Пример #4
0
    @Override
    public MetricsRecordBuilder tag(MetricsInfo metricsInfo, String s) {

      tags.put(canonicalizeMetricName(metricsInfo.name()), s);
      return this;
    }
Пример #5
0
 @Override
 public MetricsRecordBuilder addGauge(MetricsInfo metricsInfo, double v) {
   gauges.put(canonicalizeMetricName(metricsInfo.name()), Double.valueOf(v));
   return this;
 }
Пример #6
0
 public MutableRangeHistogram(MetricsInfo info) {
   this(info.name(), info.description());
 }