Class: TingYun::Agent::Collector::TransactionSqlData
- Inherits:
-
Object
- Object
- TingYun::Agent::Collector::TransactionSqlData
- Defined in:
- lib/ting_yun/agent/collector/sql_sampler.rb
Instance Attribute Summary collapse
-
#action_metric_name ⇒ Object
readonly
Returns the value of attribute action_metric_name.
-
#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) ⇒ Object
- #set_transaction_name(name) ⇒ Object
Constructor Details
#initialize ⇒ TransactionSqlData
Returns a new instance of TransactionSqlData.
178 179 180 |
# File 'lib/ting_yun/agent/collector/sql_sampler.rb', line 178 def initialize @sql_data = [] end |
Instance Attribute Details
#action_metric_name ⇒ Object (readonly)
Returns the value of attribute action_metric_name.
174 175 176 |
# File 'lib/ting_yun/agent/collector/sql_sampler.rb', line 174 def action_metric_name @action_metric_name end |
#sql_data ⇒ Object (readonly)
Returns the value of attribute sql_data.
176 177 178 |
# File 'lib/ting_yun/agent/collector/sql_sampler.rb', line 176 def sql_data @sql_data end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
175 176 177 |
# File 'lib/ting_yun/agent/collector/sql_sampler.rb', line 175 def uri @uri end |
Instance Method Details
#set_transaction_info(uri) ⇒ Object
182 183 184 |
# File 'lib/ting_yun/agent/collector/sql_sampler.rb', line 182 def set_transaction_info(uri) @uri = uri end |
#set_transaction_name(name) ⇒ Object
186 187 188 |
# File 'lib/ting_yun/agent/collector/sql_sampler.rb', line 186 def set_transaction_name(name) @action_metric_name = name end |