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

Method info

prometheus_client/metrics.py:729–737  ·  view source on GitHub ↗

Set info metric.

(self, val: Dict[str, str])

Source from the content-addressed store, hash-verified

727 self._value = {}
728
729 def info(self, val: Dict[str, str]) -> None:
730 """Set info metric."""
731 if self._labelname_set.intersection(val.keys()):
732 raise ValueError('Overlapping labels for Info metric, metric: {} child: {}'.format(
733 self._labelnames, val))
734 if any(i is None for i in val.values()):
735 raise ValueError('Label value cannot be None')
736 with self._lock:
737 self._value = dict(val)
738
739 def _child_samples(self) -> Iterable[Sample]:
740 with self._lock:

Callers 15

test_infoMethod · 0.80
test_infoMethod · 0.80
test_labelsMethod · 0.80
test_infoMethod · 0.80
ctFunction · 0.80
clearMethod · 0.80
PFunction · 0.80
UFunction · 0.80

Calls 2

keysMethod · 0.80
valuesMethod · 0.80

Tested by 4

test_infoMethod · 0.64
test_infoMethod · 0.64
test_labelsMethod · 0.64
test_infoMethod · 0.64