Project

General

Profile

« Previous | Next » 

Revision 459e0feb

Added by Paul Kelly almost 14 years ago

  • ID 459e0feb5c15f2ff8c175e2d46e372b4d83c6a4c

Fixes #249 - Remove AS from reports

Added a searchbar for hostname, reporting period and the type of report.

View differences:

app/models/host.rb
data = {}
data[:runtime] = []
data[:resources] = []
data[:runtime_labels] = [ ['datetime', "Time" ],['number', "Config Retrival"], ['number', 'Total']]
data[:runtime_labels] = [ ['datetime', "Time" ],['number', "Config Retrieval"], ['number', 'Total']]
data[:resources_labels] = [ ['datetime','Time']] + Report::METRIC.map{|metric| ['number', metric] }
reports.recent(timerange).each do |r|
data[:runtime] << [r.reported_at.getlocal, r.config_retrival, r.runtime ]
data[:runtime] << [r.reported_at.getlocal, r.config_retrieval, r.runtime ]
data[:resources] << [r.reported_at.getlocal, r.status.sort.map(&:last)].flatten
end
return data

Also available in: Unified diff