aboutsummaryrefslogtreecommitdiffstats
path: root/library/python/monlib/metric.pyx
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-02-24 19:06:27 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-02-24 19:25:54 +0300
commitcc1540c72837350cff1b97ae8f6556088946e45d (patch)
tree4d5ece470c72b304ec1a7b29dfb0f0a6aea07c15 /library/python/monlib/metric.pyx
parentb08a0cb057c1a81570f638038a0210dc167fa217 (diff)
downloadydb-cc1540c72837350cff1b97ae8f6556088946e45d.tar.gz
Intermediate changes
commit_hash:175403568527edd57aee48e05da080129d67f6de
Diffstat (limited to 'library/python/monlib/metric.pyx')
-rw-r--r--library/python/monlib/metric.pyx6
1 files changed, 6 insertions, 0 deletions
diff --git a/library/python/monlib/metric.pyx b/library/python/monlib/metric.pyx
index 7b51752335..aad32596d9 100644
--- a/library/python/monlib/metric.pyx
+++ b/library/python/monlib/metric.pyx
@@ -103,6 +103,12 @@ cdef class Counter:
"""
return self.__wrapped.Inc()
+ def add(self, i64 value):
+ """
+ Add value to metric
+ """
+ return self.__wrapped.Add(value)
+
def reset(self):
"""
Reset metric value to zero