java.lang.Object
com.arpnetworking.metrics.proxy.models.messages.MetricReport

public final class MetricReport extends Object
Message class to hold data about a metric that should be sent to clients.
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot io)
  • Constructor Details

    • MetricReport

      public MetricReport(String service, String host, String statistic, String metric, double value, Optional<Unit> unit, ZonedDateTime periodStart)
      Public constructor.
      Parameters:
      service - name of the service
      host - name of the host
      statistic - name of the statistic
      metric - name of the metric
      value - value
      unit - unit
      periodStart - start of the period
  • Method Details

    • getService

      public String getService()
    • getHost

      public String getHost()
    • getStatistic

      public String getStatistic()
    • getMetric

      public String getMetric()
    • getValue

      public double getValue()
    • getNumeratorUnits

      public com.google.common.collect.ImmutableList<String> getNumeratorUnits()
    • getDenominatorUnits

      public com.google.common.collect.ImmutableList<String> getDenominatorUnits()
    • getPeriodStart

      public ZonedDateTime getPeriodStart()
    • toString

      public String toString()
      Overrides:
      toString in class Object