Class: NewRelic::Agent::TransactionSqlData
- Inherits:
-
Object
- Object
- NewRelic::Agent::TransactionSqlData
- Defined in:
- lib/new_relic/agent/sql_sampler.rb
Instance Attribute Summary collapse
-
#guid ⇒ Object
readonly
Returns the value of attribute guid.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#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, params, guid) ⇒ Object
- #set_transaction_name(name) ⇒ Object
Constructor Details
#initialize ⇒ TransactionSqlData
Returns a new instance of TransactionSqlData.
145 146 147 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 145 def initialize @sql_data = [] end |
Instance Attribute Details
#guid ⇒ Object (readonly)
Returns the value of attribute guid.
143 144 145 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 143 def guid @guid end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
141 142 143 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 141 def params @params end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
139 140 141 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 139 def path @path end |
#sql_data ⇒ Object (readonly)
Returns the value of attribute sql_data.
142 143 144 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 142 def sql_data @sql_data end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
140 141 142 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 140 def uri @uri end |
Instance Method Details
#set_transaction_info(uri, params, guid) ⇒ Object
149 150 151 152 153 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 149 def set_transaction_info(uri, params, guid) @uri = uri @params = params @guid = guid end |
#set_transaction_name(name) ⇒ Object
155 156 157 |
# File 'lib/new_relic/agent/sql_sampler.rb', line 155 def set_transaction_name(name) @path = name end |