class documentation
class BufferedMetric(Protocol): (source)
A metric for a buffered update.
The same metric for the same name and runtime is guaranteed to be the exact same object for performance reasons. This means py`id` will be the same for the same metric across updates.
Property | description |
Get the description of the metric if any. |
Property | kind |
Get the metric kind. |
Property | name |
Get the name of the metric. |
Property | unit |
Get the unit of the metric if any. |
Get the metric kind.
This is one of BUFFERED_METRIC_KIND_COUNTER
,
BUFFERED_METRIC_KIND_GAUGE
, or
BUFFERED_METRIC_KIND_HISTOGRAM
.