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

Function getValuesByLabel

test/histogramTest.js:500–507  ·  view source on GitHub ↗
(label, values, key)

Source from the content-addressed store, hash-verified

498 }, {});
499 }
500 function getValuesByLabel(label, values, key) {
501 return values.reduce((acc, val) => {
502 if (val.labels && val.labels[key || 'le'] === label) {
503 acc.push(val);
504 }
505 return acc;
506 }, []);
507 }
508});

Callers 1

histogramTest.jsFile · 0.70

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected