Module: Bookie::Senders::Standalone

Defined in:
lib/bookie/senders/standalone.rb

Overview

Returns data from a standalone Linux system

Instance Method Summary collapse

Instance Method Details

#each_job(filename) ⇒ Object

Yields each job in the log



11
12
13
14
15
16
# File 'lib/bookie/senders/standalone.rb', line 11

def each_job(filename)
  file = Pacct::Log.new(filename)
  file.each_entry do |job|
    yield job
  end
end

#memory_stat_typeObject



22
23
24
# File 'lib/bookie/senders/standalone.rb', line 22

def memory_stat_type
  :avg
end

#system_type_nameObject



18
19
20
# File 'lib/bookie/senders/standalone.rb', line 18

def system_type_name
  "Standalone"
end