Class: MetOnTheMiddle::Readers::RequestCount
- Defined in:
- lib/met_on_the_middle/readers/request_count.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ RequestCount
constructor
A new instance of RequestCount.
- #match_subscription ⇒ Object
- #parse(event, request: nil) ⇒ Object
Methods inherited from Base
#register_subscription, #to_key_value
Constructor Details
#initialize ⇒ RequestCount
Returns a new instance of RequestCount.
4 5 6 |
# File 'lib/met_on_the_middle/readers/request_count.rb', line 4 def initialize super(:request_count) end |
Instance Method Details
#match_subscription ⇒ Object
8 9 10 |
# File 'lib/met_on_the_middle/readers/request_count.rb', line 8 def match_subscription 'met_on_the_middle.total_time' end |
#parse(event, request: nil) ⇒ Object
12 13 14 |
# File 'lib/met_on_the_middle/readers/request_count.rb', line 12 def parse(event, request: nil) 1 end |