Skip to main content
Version: 8.2411.x.x RR

RequestStatistics class function

The RequestStatistics class provides various statistical information about a request. For more information on how you can use the class, check the example in monitoring/simulate_navajo_op_via_lua.example delivered with the package.

The default use case is to use the RequestStatistics class instead of the NavajoOp trace group, to customize tracing.

FunctionDescriptionSample
RequestStatistics:new(req)Instantiates a new RequestStatistics object. The parameter req represents the incoming request.local statistic = RequestStatistics:new(req)