MCPcopy Index your code
hub / github.com/scality/cloudserver / parseRequestsCount

Function parseRequestsCount

tests/functional/report/monitoring.js:42–45  ·  view source on GitHub ↗
(metrics, labels)

Source from the content-addressed store, hash-verified

40 }
41
42 function parseRequestsCount(metrics, labels) {
43 const count = parseMetric(metrics, 's3_cloudserver_http_requests_total', labels);
44 return count ? parseInt(count, 10) : 0;
45 }
46
47 it('should return system metrics', async () => {
48 const metrics = await getMetrics();

Callers 1

monitoring.jsFile · 0.85

Calls 1

parseMetricFunction · 0.70

Tested by

no test coverage detected