class documentation
class _NoopMetricMeter(MetricMeter): (source)
Undocumented
Method | create |
Create a counter metric for adding values. |
Method | create |
Create a gauge metric for setting values. |
Method | create |
Create a histogram metric for recording values. |
Method | with |
Create a new metric meter with the given attributes appended to the current set. |
Inherited from MetricMeter
:
Class Variable | noop |
Metric meter implementation that does nothing. |
def create_counter(self, name:
str
, description: Optional[ str]
= None, unit: Optional[ str]
= None) -> MetricCounter
:
(source)
¶
def create_gauge(self, name:
str
, description: Optional[ str]
= None, unit: Optional[ str]
= None) -> MetricGauge
:
(source)
¶
def create_histogram(self, name:
str
, description: Optional[ str]
= None, unit: Optional[ str]
= None) -> MetricHistogram
:
(source)
¶
def with_additional_attributes(self, additional_attributes:
MetricAttributes
) -> MetricMeter
:
(source)
¶
Create a new metric meter with the given attributes appended to the current set.
Parameters | |
additionalMetricAttributes | Additional attributes to append to the current set. |
Returns | |
MetricMeter | New metric meter. |
Raises | |
TypeError | Attribute values are not the expected type. |