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

Function query

tests/functional/report/monitoring.js:9–17  ·  view source on GitHub ↗
(path, method = 'GET', token = 'report-token-1')

Source from the content-addressed store, hash-verified

7 const conf = require('../config.json');
8
9 async function query(path, method = 'GET', token = 'report-token-1') {
10 return new Promise(resolve => http.request({
11 method,
12 host: conf.ipAddress,
13 path,
14 port: 8000,
15 headers: { 'x-scal-report-token': token },
16 }, () => resolve()).end());
17 }
18
19 async function getMetrics() {
20 return new Promise(resolve => {

Callers 1

monitoring.jsFile · 0.85

Calls 1

endMethod · 0.80

Tested by

no test coverage detected