aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/monlib/metric_registry.pyx
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2024-12-23 17:11:16 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2024-12-23 17:25:34 +0300
commit4d2bff2bd759552e44884ed32392999b380b1080 (patch)
tree1669193268fae9fcd7d374ef2844e0cc9604d37f /library/python/monlib/metric_registry.pyx
parent17b4a6629c276485d889d170214297f449f519ec (diff)
downloadydb-4d2bff2bd759552e44884ed32392999b380b1080.tar.gz
Intermediate changes
commit_hash:e95937c5f2c37075ed358ebb01e274fc9ddfcbb6
Diffstat (limited to 'library/python/monlib/metric_registry.pyx')
-rw-r--r--library/python/monlib/metric_registry.pyx3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/python/monlib/metric_registry.pyx b/library/python/monlib/metric_registry.pyx
index aae0a5962a..6ddf64cd78 100644
--- a/library/python/monlib/metric_registry.pyx
+++ b/library/python/monlib/metric_registry.pyx
@@ -264,6 +264,9 @@ cdef class MetricRegistry:
def reset(self):
self.__wrapped.Get().Reset()
+ def clear(self):
+ self.__wrapped.Get().Clear()
+
def accept(self, time, Encoder encoder):
cdef IMetricConsumer* ptr = <IMetricConsumer*>encoder.native()
timestamp = int((time - dt.datetime(1970, 1, 1)).total_seconds())