1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Rename HTTP In content-length metric

This commit is contained in:
Nick O'Leary 2015-02-04 21:10:18 +00:00
parent f2d4648384
commit c8d2d690f0

View File

@ -88,7 +88,7 @@ module.exports = function(RED) {
var metricContentLength = res._headers["content-length"]; var metricContentLength = res._headers["content-length"];
//assuming that _id has been set for res._metrics in HttpOut node! //assuming that _id has been set for res._metrics in HttpOut node!
node.metric("response.time.millis", {_id:res._msgId} , metricResponseTime); node.metric("response.time.millis", {_id:res._msgId} , metricResponseTime);
node.metric("response.content.length.bytes", {_id:res._msgId} , metricContentLength); node.metric("response.content-length.bytes", {_id:res._msgId} , metricContentLength);
} }
}); });
next(); next();