class TCellAgent::Instrumentation::ContextFilter

Constants

DATABASE
REQUEST

Attributes

context[RW]
database[RW]
field[RW]
parameter[RW]
rule[RW]
schema[RW]
table[RW]
type[RW]

Public Instance Methods

create_hash_value() click to toggle source
# File lib/tcell_agent/instrumentation.rb, line 32
def create_hash_value
  "#{type}#{context}#{parameter}#{database}#{schema}#{table}#{field}#{rule}".hash
end
eql?(other) click to toggle source
# File lib/tcell_agent/instrumentation.rb, line 36
def eql?(other)
  hash == other.hash
end
for_database(database, schema, table, field, rule) click to toggle source
# File lib/tcell_agent/instrumentation.rb, line 44
def for_database(database, schema, table, field, rule)
  self.type = ContextFilter::DATABASE
  self.database = database
  self.schema = schema
  self.table = table
  self.field = field
  self.rule = rule
  self
end
for_request(context, parameter, rule) click to toggle source
# File lib/tcell_agent/instrumentation.rb, line 24
def for_request(context, parameter, rule)
  self.type = ContextFilter::REQUEST
  self.context = context
  self.parameter = parameter
  self.rule = rule
  self
end
hash() click to toggle source
# File lib/tcell_agent/instrumentation.rb, line 40
def hash
  create_hash_value
end