(next)
| 94 | } |
| 95 | |
| 96 | function 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 | |
| 106 | function pushStats(managementEndpoint, instanceId, remoteToken, next) { |
| 107 | if (process.env.PUSH_STATS === 'false') { |