Class: Stripe::Instrumentation::RequestEndEvent
- Inherits:
-
Object
- Object
- Stripe::Instrumentation::RequestEndEvent
- Defined in:
- lib/stripe/instrumentation.rb
Overview
Event emitted on ‘request_end` callback.
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#num_retries ⇒ Object
readonly
Returns the value of attribute num_retries.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#user_data ⇒ Object
readonly
Arbitrary user-provided data in the form of a Ruby hash that’s passed from subscribers on ‘request_begin` to subscribers on `request_end`.
Instance Method Summary collapse
-
#initialize(duration:, http_status:, method:, num_retries:, path:, request_id:, user_data: nil) ⇒ RequestEndEvent
constructor
A new instance of RequestEndEvent.
Constructor Details
#initialize(duration:, http_status:, method:, num_retries:, path:, request_id:, user_data: nil) ⇒ RequestEndEvent
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/stripe/instrumentation.rb', line 43 def initialize(duration:, http_status:, method:, num_retries:, path:, request_id:, user_data: nil) @duration = duration @http_status = http_status @method = method @num_retries = num_retries @path = path @request_id = request_id @user_data = user_data freeze end |
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration.
30 31 32 |
# File 'lib/stripe/instrumentation.rb', line 30 def duration @duration end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
31 32 33 |
# File 'lib/stripe/instrumentation.rb', line 31 def http_status @http_status end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
32 33 34 |
# File 'lib/stripe/instrumentation.rb', line 32 def method @method end |
#num_retries ⇒ Object (readonly)
Returns the value of attribute num_retries.
33 34 35 |
# File 'lib/stripe/instrumentation.rb', line 33 def num_retries @num_retries end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
34 35 36 |
# File 'lib/stripe/instrumentation.rb', line 34 def path @path end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
35 36 37 |
# File 'lib/stripe/instrumentation.rb', line 35 def request_id @request_id end |
#user_data ⇒ Object (readonly)
Arbitrary user-provided data in the form of a Ruby hash that’s passed from subscribers on ‘request_begin` to subscribers on `request_end`. `request_begin` subscribers can set keys which will then be available in `request_end`.
41 42 43 |
# File 'lib/stripe/instrumentation.rb', line 41 def user_data @user_data end |