Method: QaServer::HistoryGraphingService.generate_graph

Defined in:
app/services/qa_server/history_graphing_service.rb

.generate_graph(data) ⇒ Object

Generate the graph of historical data

Parameters:

  • data (Hash)

    data to use to generate the graph

See Also:

  • for source of data


26
27
28
29
30
# File 'app/services/qa_server/history_graphing_service.rb', line 26

def generate_graph(data)
  gruff_data = rework_historical_data_for_gruff(data)
  create_gruff_graph(gruff_data, historical_graph_full_path)
  QaServer.config.monitor_logger.warn("FAILED to write historical graph at #{history_graph_image_path}") unless history_graph_image_exists?
end