Package io.opencensus.metrics
Class MetricRegistry.NoopMetricRegistry
java.lang.Object
io.opencensus.metrics.MetricRegistry
io.opencensus.metrics.MetricRegistry.NoopMetricRegistry
- Enclosing class:
MetricRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDerivedDoubleCumulative
(String name, MetricOptions options) Builds a new derived double cumulative to be added to the registry.addDerivedDoubleGauge
(String name, MetricOptions options) Builds a new derived double gauge to be added to the registry.addDerivedLongCumulative
(String name, MetricOptions options) Builds a new derived long cumulative to be added to the registry.addDerivedLongGauge
(String name, MetricOptions options) Builds a new derived long gauge to be added to the registry.addDoubleCumulative
(String name, MetricOptions options) Builds a new double cumulative to be added to the registry.addDoubleGauge
(String name, MetricOptions options) Builds a new double gauge to be added to the registry.addLongCumulative
(String name, MetricOptions options) Builds a new long cumulative to be added to the registry.addLongGauge
(String name, MetricOptions options) Builds a new long gauge to be added to the registry.Methods inherited from class io.opencensus.metrics.MetricRegistry
addDerivedDoubleGauge, addDerivedLongGauge, addDoubleGauge, addLongGauge, newNoopMetricRegistry
-
Constructor Details
-
NoopMetricRegistry
private NoopMetricRegistry()
-
-
Method Details
-
addLongGauge
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 classMetricRegistry
- Parameters:
name
- the name of the metric.options
- the options for the metric.- Returns:
- a
LongGauge
.
-
addDoubleGauge
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 classMetricRegistry
- Parameters:
name
- the name of the metric.options
- the options for the metric.- Returns:
- a
DoubleGauge
.
-
addDerivedLongGauge
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 aToLongFunction
on an object.- Specified by:
addDerivedLongGauge
in classMetricRegistry
- Parameters:
name
- the name of the metric.options
- the options for the metric.- Returns:
- a
DerivedLongGauge
.
-
addDerivedDoubleGauge
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 aToDoubleFunction
on an object.- Specified by:
addDerivedDoubleGauge
in classMetricRegistry
- Parameters:
name
- the name of the metric.options
- the options for the metric.- Returns:
- a
DerivedDoubleGauge
.
-
addLongCumulative
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 classMetricRegistry
- Parameters:
name
- the name of the metric.options
- the options for the metric.- Returns:
- a
LongCumulative
.
-
addDoubleCumulative
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 classMetricRegistry
- Parameters:
name
- the name of the metric.options
- the options for the metric.- Returns:
- a
DoubleCumulative
.
-
addDerivedLongCumulative
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 aToLongFunction
on an object.- Specified by:
addDerivedLongCumulative
in classMetricRegistry
- Parameters:
name
- the name of the metric.options
- the options for the metric.- Returns:
- a
DerivedLongCumulative
.
-
addDerivedDoubleCumulative
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 aToDoubleFunction
on an object.- Specified by:
addDerivedDoubleCumulative
in classMetricRegistry
- Parameters:
name
- the name of the metric.options
- the options for the metric.- Returns:
- a
DerivedDoubleCumulative
.
-