Class: Cassandra::Execution::Trace
- Inherits:
-
Object
- Object
- Cassandra::Execution::Trace
- Includes:
- MonitorMixin
- Defined in:
- lib/cassandra/execution/trace.rb
Defined Under Namespace
Classes: Event
Instance Attribute Summary collapse
-
#id ⇒ Cassandra::Uuid
readonly
Trace id.
Instance Method Summary collapse
-
#client ⇒ IPAddr?
Returns the ip of the client node, the node that ran the driver instance that started tracing.
-
#coordinator ⇒ IPAddr
Returns the ip of coordinator node.
- #duration ⇒ Object
-
#events ⇒ Array<Cassandra::Execution::Trace::Event>
Returns all trace events.
- #parameters ⇒ Object
- #request ⇒ Object
- #started_at ⇒ Object
Instance Attribute Details
#id ⇒ Cassandra::Uuid (readonly)
Returns trace id.
53 54 55 |
# File 'lib/cassandra/execution/trace.rb', line 53 def id @id end |
Instance Method Details
#client ⇒ IPAddr?
Returns the ip of the client node, the node that ran the driver instance that started tracing.
87 88 89 90 91 |
# File 'lib/cassandra/execution/trace.rb', line 87 def client load unless @loaded @client_ip end |
#coordinator ⇒ IPAddr
Returns the ip of coordinator node. Typically the same as
Info#hosts.last
77 78 79 80 81 |
# File 'lib/cassandra/execution/trace.rb', line 77 def coordinator load unless @loaded @coordinator end |
#duration ⇒ Object
93 94 95 96 97 |
# File 'lib/cassandra/execution/trace.rb', line 93 def duration load unless @loaded @duration end |
#events ⇒ Array<Cassandra::Execution::Trace::Event>
Returns all trace events
120 121 122 123 124 |
# File 'lib/cassandra/execution/trace.rb', line 120 def events load_events unless @loaded_events @events end |
#parameters ⇒ Object
99 100 101 102 103 |
# File 'lib/cassandra/execution/trace.rb', line 99 def parameters load unless @loaded @parameters end |
#request ⇒ Object
105 106 107 108 109 |
# File 'lib/cassandra/execution/trace.rb', line 105 def request load unless @loaded @request end |
#started_at ⇒ Object
111 112 113 114 115 |
# File 'lib/cassandra/execution/trace.rb', line 111 def started_at load unless @loaded @started_at end |