Class: QaServer::PerformanceGraphingService

Inherits:
Object
  • Object
show all
Extended by:
MonitorStatus::GruffGraph, PerformanceHistoryDataKeys
Defined in:
app/services/qa_server/performance_graphing_service.rb

Constant Summary

Constants included from PerformanceHistoryDataKeys

QaServer::PerformanceHistoryDataKeys::ALL_AUTH, QaServer::PerformanceHistoryDataKeys::AVG_FULL, QaServer::PerformanceHistoryDataKeys::AVG_LOAD, QaServer::PerformanceHistoryDataKeys::AVG_NORM, QaServer::PerformanceHistoryDataKeys::BY_DAY, QaServer::PerformanceHistoryDataKeys::BY_HOUR, QaServer::PerformanceHistoryDataKeys::BY_MONTH, QaServer::PerformanceHistoryDataKeys::FOR_DATATABLE, QaServer::PerformanceHistoryDataKeys::FOR_DAY, QaServer::PerformanceHistoryDataKeys::FOR_MONTH, QaServer::PerformanceHistoryDataKeys::FOR_YEAR, QaServer::PerformanceHistoryDataKeys::HIGH_FULL, QaServer::PerformanceHistoryDataKeys::HIGH_LOAD, QaServer::PerformanceHistoryDataKeys::HIGH_NORM, QaServer::PerformanceHistoryDataKeys::LOW_FULL, QaServer::PerformanceHistoryDataKeys::LOW_LOAD, QaServer::PerformanceHistoryDataKeys::LOW_NORM, QaServer::PerformanceHistoryDataKeys::STATS

Class Method Summary collapse

Class Method Details

.create_performance_graphs(performance_data:) ⇒ Object

Parameters:

  • performance_data (Hash) —

    hash of all performance data for all authorities

See Also:

  • QaServer:PerformanceHistory


14
15
16
# File 'app/services/qa_server/performance_graphing_service.rb', line 14

def create_performance_graphs(performance_data:)
  performance_data.each_key { |auth_name| create_graphs_for_authority(performance_data, auth_name.to_sym) }
end

.performance_graph_file(authority_name: ALL_AUTH, time_period:) ⇒ Object

Parameters:

  • authority_name (String) (defaults to: ALL_AUTH) —

    name of the authority

  • time_period (Symbol) —

    time period for the graph (i.e. :day, :month, :year)



20
21
22
# File 'app/services/qa_server/performance_graphing_service.rb', line 20

def performance_graph_file(authority_name: ALL_AUTH, time_period:)
  File.join(graph_relative_path, graph_filename(authority_name, time_period))
end