Class MetricRegistryImpl

java.lang.Object
io.opencensus.metrics.MetricRegistry
io.opencensus.implcore.metrics.MetricRegistryImpl

public final class MetricRegistryImpl extends MetricRegistry
Implementation of MetricRegistry.
  • Field Details

  • Constructor Details

    • MetricRegistryImpl

      MetricRegistryImpl(Clock clock)
  • Method Details

    • addLongGauge

      public LongGauge addLongGauge(String name, MetricOptions options)
      Description copied from class: MetricRegistry
      Builds a new long gauge to be added to the registry. This is a more convenient form when you want to manually increase and decrease values as per your service requirements.
      Specified by:
      addLongGauge in class MetricRegistry
      Parameters:
      name - the name of the metric.
      options - the options for the metric.
      Returns:
      a LongGauge.
    • addDoubleGauge

      public DoubleGauge addDoubleGauge(String name, MetricOptions options)
      Description copied from class: MetricRegistry
      Builds a new double gauge to be added to the registry. This is a more convenient form when you want to manually increase and decrease values as per your service requirements.
      Specified by:
      addDoubleGauge in class MetricRegistry
      Parameters:
      name - the name of the metric.
      options - the options for the metric.
      Returns:
      a DoubleGauge.
    • addDerivedLongGauge

      public DerivedLongGauge addDerivedLongGauge(String name, MetricOptions options)
      Description copied from class: MetricRegistry
      Builds a new derived long gauge to be added to the registry. This is a more convenient form when you want to define a gauge by executing a ToLongFunction on an object.
      Specified by:
      addDerivedLongGauge in class MetricRegistry
      Parameters:
      name - the name of the metric.
      options - the options for the metric.
      Returns:
      a DerivedLongGauge.
    • addDerivedDoubleGauge

      public DerivedDoubleGauge addDerivedDoubleGauge(String name, MetricOptions options)
      Description copied from class: MetricRegistry
      Builds a new derived double gauge to be added to the registry. This is a more convenient form when you want to define a gauge by executing a ToDoubleFunction on an object.
      Specified by:
      addDerivedDoubleGauge in class MetricRegistry
      Parameters:
      name - the name of the metric.
      options - the options for the metric.
      Returns:
      a DerivedDoubleGauge.
    • addLongCumulative

      public LongCumulative addLongCumulative(String name, MetricOptions options)
      Description copied from class: MetricRegistry
      Builds a new long cumulative to be added to the registry. This is a more convenient form when you want to manually increase values as per your service requirements.
      Specified by:
      addLongCumulative in class MetricRegistry
      Parameters:
      name - the name of the metric.
      options - the options for the metric.
      Returns:
      a LongCumulative.
    • addDoubleCumulative

      public DoubleCumulative addDoubleCumulative(String name, MetricOptions options)
      Description copied from class: MetricRegistry
      Builds a new double cumulative to be added to the registry. This is a more convenient form when you want to manually increase values as per your service requirements.
      Specified by:
      addDoubleCumulative in class MetricRegistry
      Parameters:
      name - the name of the metric.
      options - the options for the metric.
      Returns:
      a DoubleCumulative.
    • addDerivedLongCumulative

      public DerivedLongCumulative addDerivedLongCumulative(String name, MetricOptions options)
      Description copied from class: MetricRegistry
      Builds a new derived long cumulative to be added to the registry. This is a more convenient form when you want to define a cumulative by executing a ToLongFunction on an object.
      Specified by:
      addDerivedLongCumulative in class MetricRegistry
      Parameters:
      name - the name of the metric.
      options - the options for the metric.
      Returns:
      a DerivedLongCumulative.
    • addDerivedDoubleCumulative

      public DerivedDoubleCumulative addDerivedDoubleCumulative(String name, MetricOptions options)
      Description copied from class: MetricRegistry
      Builds a new derived double cumulative to be added to the registry. This is a more convenient form when you want to define a cumulative by executing a ToDoubleFunction on an object.
      Specified by:
      addDerivedDoubleCumulative in class MetricRegistry
      Parameters:
      name - the name of the metric.
      options - the options for the metric.
      Returns:
      a DerivedDoubleCumulative.
    • getMetricProducer

      MetricProducer getMetricProducer()