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

Method _is_parent

prometheus_client/metrics.py:80–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 raise ValueError('%s metric is missing label values' % str(self._type))
79
80 def _is_parent(self):
81 return self._labelnames and not self._labelvalues
82
83 def _get_metric(self):
84 return Metric(self._name, self._documentation, self._type, self._unit)

Callers 2

__init__Method · 0.95
_samplesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected