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

Method read_value

prometheus_client/mmap_dict.py:121–125  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

119 yield k, v, ts
120
121 def read_value(self, key):
122 if key not in self._positions:
123 self._init_value(key)
124 pos = self._positions[key]
125 return _unpack_two_doubles(self._m, pos)
126
127 def write_value(self, key, value, timestamp):
128 if key not in self._positions:

Callers 2

__resetMethod · 0.80
test_process_restartMethod · 0.80

Calls 1

_init_valueMethod · 0.95

Tested by 1

test_process_restartMethod · 0.64