class Nexaas::Auditor::Adapters::Nunes

Attributes

client[R]

Public Class Methods

new(client) click to toggle source
# File lib/nexaas/auditor/adapters/nunes.rb, line 11
def initialize(client)
  @client = client
end

Public Instance Methods

increment(metric, value=1) click to toggle source
# File lib/nexaas/auditor/adapters/nunes.rb, line 15
def increment(metric, value=1)
  client.track_count(metric: prepare(metric), value: value)
end
prepare(metric, replacement = Separator) click to toggle source
Calls superclass method
# File lib/nexaas/auditor/adapters/nunes.rb, line 23
def prepare(metric, replacement = Separator)
  metric = "rails.#{metric}"
  super
end
timing(metric, value) click to toggle source
# File lib/nexaas/auditor/adapters/nunes.rb, line 19
def timing(metric, value)
  client.track_value(metric: prepare(metric), value: value)
end