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

Function parseDuration

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

Source from the content-addressed store, hash-verified

35 }
36
37 function parseDuration(metrics, labels) {
38 const duration = parseMetric(metrics, 's3_cloudserver_http_request_duration_seconds_sum', labels);
39 return duration ? parseFloat(duration) : 0;
40 }
41
42 function parseRequestsCount(metrics, labels) {
43 const count = parseMetric(metrics, 's3_cloudserver_http_requests_total', labels);

Callers 1

monitoring.jsFile · 0.85

Calls 1

parseMetricFunction · 0.70

Tested by

no test coverage detected