Class: Couchbase::Tracing::ThresholdLoggingTracer::Item
- Inherits:
-
Object
- Object
- Couchbase::Tracing::ThresholdLoggingTracer::Item
- Defined in:
- lib/couchbase/tracing/threshold_logging_tracer.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/tracing/threshold_logging_tracer.rb
Instance Attribute Summary collapse
-
#encode_duration_us ⇒ Object
Returns the value of attribute encode_duration_us.
-
#last_dispatch_duration_us ⇒ Object
Returns the value of attribute last_dispatch_duration_us.
-
#last_local_id ⇒ Object
Returns the value of attribute last_local_id.
-
#last_remote_socket ⇒ Object
Returns the value of attribute last_remote_socket.
-
#last_server_duration_us ⇒ Object
Returns the value of attribute last_server_duration_us.
-
#operation_id ⇒ Object
Returns the value of attribute operation_id.
-
#operation_name ⇒ Object
Returns the value of attribute operation_name.
-
#total_dispatch_duration_us ⇒ Object
Returns the value of attribute total_dispatch_duration_us.
-
#total_duration_us ⇒ Object
Returns the value of attribute total_duration_us.
-
#total_server_duration_us ⇒ Object
Returns the value of attribute total_server_duration_us.
Instance Method Summary collapse
-
#initialize(total_duration_us:, encode_duration_us:, last_dispatch_duration_us:, total_dispatch_duration_us:, last_server_duration_us:, total_server_duration_us:, operation_name:, last_local_id:, operation_id:, last_remote_socket:) ⇒ Item
constructor
A new instance of Item.
- #to_h ⇒ Object
Constructor Details
#initialize(total_duration_us:, encode_duration_us:, last_dispatch_duration_us:, total_dispatch_duration_us:, last_server_duration_us:, total_server_duration_us:, operation_name:, last_local_id:, operation_id:, last_remote_socket:) ⇒ Item
Returns a new instance of Item.
139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 139 def initialize( total_duration_us:, encode_duration_us:, last_dispatch_duration_us:, total_dispatch_duration_us:, last_server_duration_us:, total_server_duration_us:, operation_name:, last_local_id:, operation_id:, last_remote_socket: ) @total_duration_us = total_duration_us @encode_duration_us = encode_duration_us @last_dispatch_duration_us = last_dispatch_duration_us @total_dispatch_duration_us = total_dispatch_duration_us @last_server_duration_us = last_server_duration_us @total_server_duration_us = total_server_duration_us @operation_name = operation_name @last_local_id = last_local_id @operation_id = operation_id @last_remote_socket = last_remote_socket end |
Instance Attribute Details
#encode_duration_us ⇒ Object
Returns the value of attribute encode_duration_us.
129 130 131 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 129 def encode_duration_us @encode_duration_us end |
#last_dispatch_duration_us ⇒ Object
Returns the value of attribute last_dispatch_duration_us.
130 131 132 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 130 def last_dispatch_duration_us @last_dispatch_duration_us end |
#last_local_id ⇒ Object
Returns the value of attribute last_local_id.
135 136 137 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 135 def last_local_id @last_local_id end |
#last_remote_socket ⇒ Object
Returns the value of attribute last_remote_socket.
137 138 139 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 137 def last_remote_socket @last_remote_socket end |
#last_server_duration_us ⇒ Object
Returns the value of attribute last_server_duration_us.
132 133 134 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 132 def last_server_duration_us @last_server_duration_us end |
#operation_id ⇒ Object
Returns the value of attribute operation_id.
136 137 138 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 136 def operation_id @operation_id end |
#operation_name ⇒ Object
Returns the value of attribute operation_name.
134 135 136 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 134 def operation_name @operation_name end |
#total_dispatch_duration_us ⇒ Object
Returns the value of attribute total_dispatch_duration_us.
131 132 133 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 131 def total_dispatch_duration_us @total_dispatch_duration_us end |
#total_duration_us ⇒ Object
Returns the value of attribute total_duration_us.
128 129 130 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 128 def total_duration_us @total_duration_us end |
#total_server_duration_us ⇒ Object
Returns the value of attribute total_server_duration_us.
133 134 135 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 133 def total_server_duration_us @total_server_duration_us end |
Instance Method Details
#to_h ⇒ Object
163 164 165 166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/couchbase/tracing/threshold_logging_tracer.rb', line 163 def to_h { total_duration_us: @total_duration_us, encode_duration_us: @encode_duration_us, last_dispatch_duration_us: @last_dispatch_duration_us, total_dispatch_duration_us: @total_dispatch_duration_us, last_server_duration_us: @last_server_duration_us, total_server_duration_us: @total_server_duration_us, operation_name: @operation_name, last_local_id: @last_local_id, operation_id: @operation_id, last_remote_socket: @last_remote_socket, }.compact end |