Class: NewRelic::Agent::TransactionSqlData

Inherits:
Object
  • Object
show all
Defined in:
lib/new_relic/agent/sql_sampler.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTransactionSqlData

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

#guidObject (readonly)

Returns the value of attribute guid.



143
144
145
# File 'lib/new_relic/agent/sql_sampler.rb', line 143

def guid
  @guid
end

#paramsObject (readonly)

Returns the value of attribute params.



141
142
143
# File 'lib/new_relic/agent/sql_sampler.rb', line 141

def params
  @params
end

#pathObject (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_dataObject (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

#uriObject (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