MCPcopy Create free account
hub / github.com/scality/cloudserver / getStats

Function getStats

lib/management/poll.js:96–104  ·  view source on GitHub ↗
(next)

Source from the content-addressed store, hash-verified

94}
95
96function getStats(next) {
97 const fromURL = `http://localhost:${_config.port}/_/report`;
98 const fromOptions = {
99 headers: {
100 'x-scal-report-token': process.env.REPORT_TOKEN,
101 },
102 };
103 return request.get(fromURL, fromOptions, next);
104}
105
106function pushStats(managementEndpoint, instanceId, remoteToken, next) {
107 if (process.env.PUSH_STATS === 'false') {

Callers 1

pushStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected