Class: RequestLogAnalyzer::FileFormat::Merb

Inherits:
Base
  • Object
show all
Extended by:
CommonRegularExpressions
Defined in:
lib/request_log_analyzer/file_format/merb.rb

Overview

The Merb file format parses the request header with the timestamp, the params line with the most important request information and the durations line which contains the different request durations that can be used for analysis.

Defined Under Namespace

Classes: Request

Constant Summary

REQUEST_CATEGORIZER =
Proc.new do |request|
  category = "#{request[:controller]}##{request[:action]}"
  category = "#{request[:namespace]}::#{category}" if request[:namespace]
  category = "#{category}.#{request[:format]}"     if request[:format]
  category
end

Constants included from CommonRegularExpressions

CommonRegularExpressions::TIMESTAMP_PARTS

Constants inherited from Base

Base::Request

Instance Attribute Summary

Attributes inherited from Base

#line_definitions, #report_trackers

Method Summary

Methods included from CommonRegularExpressions

anchored, hostname, hostname_or_ip_address, ip_address, timestamp

Methods inherited from Base

#captures?, create, format_definition, #initialize, line_definer, line_definition, #line_divider, #max_line_length, #parse_line, report, report_definer, #request, #request_class, #setup_environment, #valid_line_definitions?, #valid_request_class?, #well_formed?

Constructor Details

This class inherits a constructor from RequestLogAnalyzer::FileFormat::Base