MCPcopy
hub / github.com/scality/cloudserver / monitoringEndHandler

Function monitoringEndHandler

lib/utilities/monitoringHandler.js:255–262  ·  view source on GitHub ↗
(err, results)

Source from the content-addressed store, hash-verified

253 */
254function monitoringHandler(clientIP, req, res, log) {
255 function monitoringEndHandler(err, results) {
256 writeResponse(res, err, results, error => {
257 if (error) {
258 return log.end().warn('monitoring error', { err: error });
259 }
260 return log.end();
261 });
262 }
263 if (req.method !== 'GET') {
264 return monitoringEndHandler(errors.MethodNotAllowed, []);
265 }

Callers 1

monitoringHandlerFunction · 0.85

Calls 3

warnMethod · 0.80
endMethod · 0.80
writeResponseFunction · 0.70

Tested by

no test coverage detected