class Travis::Metrics::Reporter::Riemann

Public Instance Methods

setup() click to toggle source

setup: 'Using Librato metrics reporter (source: %s, account: %s)', error: 'Librato error: %s (%s)' }

# File lib/travis/metrics/reporter/riemann.rb, line 15
def setup
  #return unless host
  #logger.info MSGS[:setup] % [source, email]
  Metriks::Reporter::Riemann.new(client, interval: interval)
end

Private Instance Methods

client() click to toggle source
# File lib/travis/metrics/reporter/riemann.rb, line 23
def client
  ::Riemann::Client.new(host,port)
end
host() click to toggle source
# File lib/travis/metrics/reporter/riemann.rb, line 27
def host
  "host"
  #config[:host]
end
interval() click to toggle source
# File lib/travis/metrics/reporter/riemann.rb, line 37
def interval
  config[:interval]
end
port() click to toggle source
# File lib/travis/metrics/reporter/riemann.rb, line 32
def port
  "port"
  #config[:port]
end