Module: RequestResponseStats
- Defined in:
- lib/request_response_stats/version.rb,
lib/request_response_stats.rb,
lib/request_response_stats/redis_record.rb,
lib/request_response_stats/custom_client.rb,
lib/request_response_stats/dummy_request.rb,
lib/request_response_stats/dummy_response.rb,
lib/request_response_stats/request_response.rb,
lib/request_response_stats/controller_concern.rb,
lib/generators/templates/request_response_stats_config.rb,
lib/generators/request_response_stats/customization_generator.rb
Overview
Configure custom alert code Note: Ideally we should pass below custom code as block while we instantiate ‘RequestResponse`. But, as we are using the same setting for outbound calls as well.
Defined Under Namespace
Modules: ControllerConcern, CustomClient, Generators Classes: DummyRequest, DummyResponse, RedisRecord, ReqResStat, RequestResponse
Constant Summary collapse
- RR_INBOUND_STATS =
override to set it to false if you want to capture inbound requests
true
- RR_OUTBOUND_STATS =
override to set it to true if you want to capture inbound requests
true
- VERSION =
"0.3.0"
Class Method Summary collapse
-
.custom_alert_code(data) ⇒ Object
override to define the code that should be run on encountring alert conditions.
Class Method Details
.custom_alert_code(data) ⇒ Object
override to define the code that should be run on encountring alert conditions
19 20 21 |
# File 'lib/request_response_stats.rb', line 19 def self.custom_alert_code(data) raise StandardError, "Undefined custom alter code" end |