MCPcopy Index your code
hub / github.com/prometheus/client_python / inc

Method inc

prometheus_client/values.py:98–103  ·  view source on GitHub ↗
(self, amount)

Source from the content-addressed store, hash-verified

96 value.__reset()
97
98 def inc(self, amount):
99 with lock:
100 self.__check_for_pid_change()
101 self._value += amount
102 self._timestamp = 0.0
103 self._file.write_value(self._key, self._value, self._timestamp)
104
105 def set(self, value, timestamp=None):
106 with lock:

Callers

nothing calls this directly

Calls 2

write_valueMethod · 0.80

Tested by

no test coverage detected