Class: ChargeBee::Telemetry::RequestTelemetryResult
- Inherits:
-
Object
- Object
- ChargeBee::Telemetry::RequestTelemetryResult
- Defined in:
- lib/chargebee/telemetry/request_telemetry_result.rb
Overview
Result passed to TelemetryAdapter#on_request_end.
Instance Attribute Summary collapse
-
#duration_ms ⇒ Object
readonly
Returns the value of attribute duration_ms.
-
#end_attributes ⇒ Object
readonly
Returns the value of attribute end_attributes.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#http_status_code ⇒ Object
readonly
Returns the value of attribute http_status_code.
Instance Method Summary collapse
-
#initialize(http_status_code:, duration_ms:, error:, end_attributes:) ⇒ RequestTelemetryResult
constructor
A new instance of RequestTelemetryResult.
Constructor Details
#initialize(http_status_code:, duration_ms:, error:, end_attributes:) ⇒ RequestTelemetryResult
Returns a new instance of RequestTelemetryResult.
12 13 14 15 16 17 |
# File 'lib/chargebee/telemetry/request_telemetry_result.rb', line 12 def initialize(http_status_code:, duration_ms:, error:, end_attributes:) @http_status_code = http_status_code @duration_ms = duration_ms @error = error @end_attributes = end_attributes.freeze end |
Instance Attribute Details
#duration_ms ⇒ Object (readonly)
Returns the value of attribute duration_ms.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_result.rb', line 10 def duration_ms @duration_ms end |
#end_attributes ⇒ Object (readonly)
Returns the value of attribute end_attributes.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_result.rb', line 10 def end_attributes @end_attributes end |
#error ⇒ Object (readonly)
Returns the value of attribute error.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_result.rb', line 10 def error @error end |
#http_status_code ⇒ Object (readonly)
Returns the value of attribute http_status_code.
10 11 12 |
# File 'lib/chargebee/telemetry/request_telemetry_result.rb', line 10 def http_status_code @http_status_code end |