Log language clarification

This commit is contained in:
Stephen Papierski 2023-11-15 15:40:57 -07:00
parent 3b6b316e42
commit 177f1f2536
No known key found for this signature in database

View file

@ -1560,7 +1560,7 @@ class Monitor extends BeanModel {
}
// Create stats to append to messages/logs
const methodDescription = [ "average", "max" ].includes(method) ? `${method} of ${windowDuration}s` : method;
const methodDescription = [ "average", "max" ].includes(method) ? `${method} of last ${windowDuration}s` : method;
let msgStats = `Response: ${actualResponseTime}ms (${methodDescription}) | Threshold: ${threshold}ms (${thresholdDescription})`;
// Add window duration for methods that make sense