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

Method get

lib/gauge.js:108–120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 }
107
108 async get() {
109 if (this.collect) {
110 const v = this.collect();
111 if (v instanceof Promise) await v;
112 }
113 return {
114 help: this.help,
115 name: this.name,
116 type: this.type,
117 values: Object.values(this.hashMap),
118 aggregator: this.aggregator,
119 };
120 }
121
122 _getValue(labels) {
123 const hash = hashObject(labels || {}, this.sortedLabelNames);

Callers 15

cluster.jsFile · 0.45
server.jsFile · 0.45
addMethod · 0.45
addListenersFunction · 0.45
getMetricsAsStringMethod · 0.45
getMetricsAsJSONMethod · 0.45
flattenSharedLabelsFunction · 0.45
counterTest.jsFile · 0.45
exemplarsTest.jsFile · 0.45
registerTest.jsFile · 0.45
histogramTest.jsFile · 0.45
summaryTest.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected