Class: Observed::Translator

Inherits:
Object
  • Object
show all
Includes:
Configurable, Logging, Pluggable
Defined in:
lib/observed/translator.rb

Direct Known Subclasses

ProcTranslator

Instance Method Summary collapse

Methods included from Pluggable

included

Methods included from Logging

#log_debug, #log_error, #log_info, #log_warn, #logging_enabled?

Methods included from Configurable

#configure, #get_attribute_value, #has_attribute_value?, included, #initialize

Instance Method Details

#match(tag) ⇒ Object



14
15
16
# File 'lib/observed/translator.rb', line 14

def match(tag)
  tag_pattern.match(tag)
end

#translate(tag, time, data) ⇒ Object



18
19
20
# File 'lib/observed/translator.rb', line 18

def translate(tag, time, data)
  fail RuntimeError, 'Not implemented method: Observed#translate'
end