| [ Web Proxy ] |
| Viewing: https://python.temporal.io/temporalio.common.MetricMeter.html | [Back] [Original] |
temporalio.common.MetricMeterclass MetricMeter(ABC): (source)
Known subclasses: temporalio.common._NoopMetricMeter, temporalio.runtime._MetricMeter, temporalio.worker._workflow_instance._ReplaySafeMetricMeter
Metric meter for recording metrics.
| Method | create_counter |
Create a counter metric for adding values. |
| Method | create_gauge |
Create a gauge metric for setting values. |
| Method | create_gauge_float |
Create a gauge metric for setting values. |
| Method | create_histogram |
Create a histogram metric for recording values. |
| Method | create_histogram_float |
Create a histogram metric for recording values. |
| Method | create_histogram_timedelta |
Create a histogram metric for recording values. |
| Method | with_additional_attributes |
Create a new metric meter with the given attributes appended to the current set. |
| Class Variable | noop |
Metric meter implementation that does nothing. |
str, description: str | None = None, unit: str | None = None) -> MetricCounter:
(source)
str, description: str | None = None, unit: str | None = None) -> MetricGauge:
(source)
str, description: str | None = None, unit: str | None = None) -> MetricGaugeFloat:
(source)
str, description: str | None = None, unit: str | None = None) -> MetricHistogram:
(source)
str, description: str | None = None, unit: str | None = None) -> MetricHistogramFloat:
(source)
str, description: str | None = None, unit: str | None = None) -> MetricHistogramTimedelta:
(source)
temporalio.common._NoopMetricMeter, temporalio.runtime._MetricMeter, temporalio.worker._workflow_instance._ReplaySafeMetricMeterCreate 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:str | None | Optional description for the metric. |
unit:str | None | Optional unit for the metric. |
| Returns | |
MetricHistogramTimedelta | Histogram metric. |
MetricAttributes) -> MetricMeter:
(source)
temporalio.common._NoopMetricMeter, temporalio.runtime._MetricMeter, temporalio.worker._workflow_instance._ReplaySafeMetricMeterCreate a new metric meter with the given attributes appended to the current set.
| Parameters | |
additional_attributes:MetricAttributes | Additional attributes to append to the current set. |
| Returns | |
MetricMeter | New metric meter. |
| Raises | |
TypeError | Attribute values are not the expected type. |
| Web Proxy Viewer | New URL | Original Page |