Set info metric.
(self, val: Dict[str, str])
| 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: |