MCPcopy
hub / github.com/prometheus/client_js / labels

Method labels

lib/gauge.js:127–137  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

125 }
126
127 labels(...args) {
128 const labels = getLabels(this.labelNames, args);
129 validateLabel(this.labelNames, labels);
130 return {
131 inc: this.inc.bind(this, labels),
132 dec: this.dec.bind(this, labels),
133 set: this.set.bind(this, labels),
134 setToCurrentTime: this.setToCurrentTime.bind(this, labels),
135 startTimer: this.startTimer.bind(this, labels),
136 };
137 }
138
139 remove(...args) {
140 const labels = getLabels(this.labelNames, args);

Callers 15

mainFunction · 0.95
histogram-3.jsFile · 0.45
histogram-1.jsFile · 0.45
histogram-2.jsFile · 0.45
histogram-4.jsFile · 0.45
server.jsFile · 0.45
collectFunction · 0.45
counterTest.jsFile · 0.45
fnFunction · 0.45
registerTest.jsFile · 0.45
histogramTest.jsFile · 0.45
fnFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected