class documentation
class _MetricMeter(temporalio.common.MetricMeter): (source)
Constructor: _MetricMeter(core_meter, core_attrs)
Undocumented
Method | __init__ |
Undocumented |
Method | create |
Create a counter metric for adding values. |
Method | create |
Create a gauge metric for setting values. |
Method | create |
Create a gauge metric for setting values. |
Method | create |
Create a histogram metric for recording values. |
Method | create |
Create a histogram metric for recording 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. |
Instance Variable | _core |
Undocumented |
Instance Variable | _core |
Undocumented |
Inherited from MetricMeter
:
Class Variable | noop |
Metric meter implementation that does nothing. |
def __init__(self, core_meter:
temporalio.bridge.metric.MetricMeter
, core_attrs: temporalio.bridge.metric.MetricAttributes
):
(source)
¶
Undocumented
def create_counter(self, name:
str
, description: Optional[ str]
= None, unit: Optional[ str]
= None) -> temporalio.common.MetricCounter
:
(source)
¶
def create_gauge(self, name:
str
, description: Optional[ str]
= None, unit: Optional[ str]
= None) -> temporalio.common.MetricGauge
:
(source)
¶
def create_gauge_float(self, name:
str
, description: Optional[ str]
= None, unit: Optional[ str]
= None) -> temporalio.common.MetricGaugeFloat
:
(source)
¶
def create_histogram(self, name:
str
, description: Optional[ str]
= None, unit: Optional[ str]
= None) -> temporalio.common.MetricHistogram
:
(source)
¶
def create_histogram_float(self, name:
str
, description: Optional[ str]
= None, unit: Optional[ str]
= None) -> temporalio.common.MetricHistogramFloat
:
(source)
¶
def create_histogram_timedelta(self, name:
str
, description: Optional[ str]
= None, unit: Optional[ str]
= None) -> temporalio.common.MetricHistogramTimedelta
:
(source)
¶
Create a histogram metric for recording values.
Note, duration precision is millisecond. Also note, if "unit" is set as "duration", it will be converted to "ms" or "s" on the way out.
Parameters | |
name:str | Name for the metric. |
description:Optional[ | Optional description for the metric. |
unit:Optional[ | Optional unit for the metric. |
Returns | |
temporalio.common.MetricHistogramTimedelta | Histogram metric. |
def with_additional_attributes(self, additional_attributes:
temporalio.common.MetricAttributes
) -> temporalio.common.MetricMeter
:
(source)
¶
Create a new metric meter with the given attributes appended to the current set.
Parameters | |
additionaltemporalio.common.MetricAttributes | Additional attributes to append to the current set. |
Returns | |
temporalio.common.MetricMeter | New metric meter. |
Raises | |
TypeError | Attribute values are not the expected type. |