Class StatisticFactory

java.lang.Object
com.arpnetworking.metrics.mad.model.statistics.StatisticFactory

public class StatisticFactory extends Object
Creates statistics.
Author:
Brandon Arp (brandon dot arp at inscopemetrics dot io), Ville Koskela (ville dot koskela at inscopemetrics dot io)
  • Constructor Details

    • StatisticFactory

      public StatisticFactory()
  • Method Details

    • getStatistic

      public Statistic getStatistic(String name)
      Get a statistic by name.
      Parameters:
      name - The name of the desired statistic.
      Returns:
      A new Statistic.
    • tryGetStatistic

      public Optional<Statistic> tryGetStatistic(String name)
      Get a statistic by name.
      Parameters:
      name - The name of the desired statistic.
      Returns:
      A new Statistic.