public JettyWebContainerStatsImpl() {
activeRequestCount = new RangeStatisticImpl("Active Request Count", StatisticImpl.UNIT_COUNT,
"The number of requests being processed concurrently");
requestDuration = new TimeStatisticImpl("Request Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
"The length of time that it's taken to handle individual requests");
response1xx = new CountStatisticImpl("Response 1xx", StatisticImpl.UNIT_COUNT,
"The number of 1xx responses");
response2xx = new CountStatisticImpl("Response 2xx", StatisticImpl.UNIT_COUNT,
"The number of 2xx responses");
response3xx = new CountStatisticImpl("Response 3xx", StatisticImpl.UNIT_COUNT,
"The number of 3xx responses");
response4xx = new CountStatisticImpl("Response 4xx", StatisticImpl.UNIT_COUNT,
"The number of 4xx responses");
response5xx = new CountStatisticImpl("Response 5xx", StatisticImpl.UNIT_COUNT,
"The number of 5xx responses");
statsOnMs = new CountStatisticImpl("Stats Duration", StatisticImpl.UNIT_TIME_MILLISECOND,
"The length of time that statistics have been collected.");
addStat("ActiveRequestCount", activeRequestCount);
addStat("RequestDuration", requestDuration);
addStat("Responses1xx", response1xx);
addStat("Responses2xx", response2xx);
addStat("Responses3xx", response3xx);
addStat("Responses4xx", response4xx);
addStat("Responses5xx", response5xx);
addStat("StatsDuration", statsOnMs); // TODO - remove this
}