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

Function getValuesByName

test/histogramTest.js:476–483  ·  view source on GitHub ↗
(name, values)

Source from the content-addressed store, hash-verified

474 );
475 }
476 function getValuesByName(name, values) {
477 return values.reduce((acc, val) => {
478 if (val.metricName === name) {
479 acc.push(val);
480 }
481 return acc;
482 }, []);
483 }
484 function getValueByLeAndLabel(le, key, label, values) {
485 return values.reduce((acc, val) => {
486 if (val.labels && val.labels.le === le && val.labels[key] === label) {

Callers 1

histogramTest.jsFile · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected