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

Function generateGroupings

lib/pushgateway.js:120–130  ·  view source on GitHub ↗
(groupings)

Source from the content-addressed store, hash-verified

118}
119
120function generateGroupings(groupings) {
121 if (!groupings) {
122 return '';
123 }
124 return Object.keys(groupings)
125 .map(
126 key =>
127 `/${encodeURIComponent(key)}/${encodeURIComponent(groupings[key])}`,
128 )
129 .join('');
130}
131
132function isHttps(href) {
133 return href.search(/^https/) !== -1;

Callers 1

useGatewayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected