Class: OneApm::Collector::TransactionSqlData
- Inherits:
-
Object
- Object
- OneApm::Collector::TransactionSqlData
- Defined in:
- lib/one_apm/collector/containers/sql_sampler.rb
Instance Attribute Summary collapse
-
#guid ⇒ Object
readonly
Returns the value of attribute guid.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#sql_data ⇒ Object
readonly
Returns the value of attribute sql_data.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize ⇒ TransactionSqlData
constructor
A new instance of TransactionSqlData.
- #set_transaction_info(uri, guid) ⇒ Object
- #set_transaction_name(name) ⇒ Object
Constructor Details
#initialize ⇒ TransactionSqlData
Returns a new instance of TransactionSqlData.
201 202 203 |
# File 'lib/one_apm/collector/containers/sql_sampler.rb', line 201 def initialize @sql_data = [] end |
Instance Attribute Details
#guid ⇒ Object (readonly)
Returns the value of attribute guid.
199 200 201 |
# File 'lib/one_apm/collector/containers/sql_sampler.rb', line 199 def guid @guid end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
196 197 198 |
# File 'lib/one_apm/collector/containers/sql_sampler.rb', line 196 def path @path end |
#sql_data ⇒ Object (readonly)
Returns the value of attribute sql_data.
198 199 200 |
# File 'lib/one_apm/collector/containers/sql_sampler.rb', line 198 def sql_data @sql_data end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
197 198 199 |
# File 'lib/one_apm/collector/containers/sql_sampler.rb', line 197 def uri @uri end |
Instance Method Details
#set_transaction_info(uri, guid) ⇒ Object
205 206 207 208 |
# File 'lib/one_apm/collector/containers/sql_sampler.rb', line 205 def set_transaction_info(uri, guid) @uri = uri @guid = guid end |
#set_transaction_name(name) ⇒ Object
210 211 212 |
# File 'lib/one_apm/collector/containers/sql_sampler.rb', line 210 def set_transaction_name(name) @path = name end |