module RequestResponseStats
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.
File: lib/request_response_stats/dummy_request.rb
File: lib/request_response_stats/dummy_response.rb
File: lib/request_response_stats/version.rb
Constants
- RR_INBOUND_STATS
override to set it to false if you want to capture inbound requests
- RR_OUTBOUND_STATS
override to set it to true if you want to capture inbound requests
- VERSION
Public Class Methods
custom_alert_code(data)
click to toggle source
# File lib/generators/templates/request_response_stats_config.rb, line 16 def self.custom_alert_code(data) # Custom alert code # current_time = Time.now.utc # service = NotificationService.new(activity: "request_response_alert", uuid: "ReqResNotification-#{current_time.to_s}-#{current_time.nsec}".gsub(" ", "_")) # service.send_req_res_threshold_crossed_alarm_email(data) end