Class: QaServer::MonitorStatus::PerformancePresenter
- Inherits:
-
Object
- Object
- QaServer::MonitorStatus::PerformancePresenter
- Defined in:
- app/presenters/qa_server/monitor_status/performance_presenter.rb
Constant Summary
Constants included from PerformanceHistoryDataKeys
PerformanceHistoryDataKeys::ALL_ACTIONS, PerformanceHistoryDataKeys::ALL_AUTH, PerformanceHistoryDataKeys::AVG_ACTN, PerformanceHistoryDataKeys::AVG_FULL, PerformanceHistoryDataKeys::AVG_GRPH, PerformanceHistoryDataKeys::AVG_LOAD, PerformanceHistoryDataKeys::AVG_NORM, PerformanceHistoryDataKeys::AVG_RETR, PerformanceHistoryDataKeys::BPMS_GRPH, PerformanceHistoryDataKeys::BPMS_NORM, PerformanceHistoryDataKeys::BPMS_RETR, PerformanceHistoryDataKeys::BY_DAY, PerformanceHistoryDataKeys::BY_HOUR, PerformanceHistoryDataKeys::BY_MONTH, PerformanceHistoryDataKeys::FETCH, PerformanceHistoryDataKeys::FOR_DATATABLE, PerformanceHistoryDataKeys::FOR_DAY, PerformanceHistoryDataKeys::FOR_MONTH, PerformanceHistoryDataKeys::FOR_YEAR, PerformanceHistoryDataKeys::HIGH_ACTN, PerformanceHistoryDataKeys::HIGH_FULL, PerformanceHistoryDataKeys::HIGH_GRPH, PerformanceHistoryDataKeys::HIGH_LOAD, PerformanceHistoryDataKeys::HIGH_NORM, PerformanceHistoryDataKeys::HIGH_RETR, PerformanceHistoryDataKeys::LOW_ACTN, PerformanceHistoryDataKeys::LOW_FULL, PerformanceHistoryDataKeys::LOW_GRPH, PerformanceHistoryDataKeys::LOW_LOAD, PerformanceHistoryDataKeys::LOW_NORM, PerformanceHistoryDataKeys::LOW_RETR, PerformanceHistoryDataKeys::MSPB_GRPH, PerformanceHistoryDataKeys::MSPB_NORM, PerformanceHistoryDataKeys::MSPB_RETR, PerformanceHistoryDataKeys::SEARCH, PerformanceHistoryDataKeys::SRC_BYTES, PerformanceHistoryDataKeys::STATS
Instance Attribute Summary collapse
-
#performance_data ⇒ Object
readonly
Returns the value of attribute performance_data.
Instance Method Summary collapse
- #display_performance? ⇒ Boolean
- #display_performance_datatable? ⇒ Boolean
- #display_performance_graph? ⇒ Boolean
-
#initialize(parent:, performance_data:) ⇒ PerformancePresenter
constructor
A new instance of PerformancePresenter.
- #performance_data? ⇒ Boolean
- #performance_data_authority_name(entry) ⇒ Object
Methods included from PerformanceGraphBehavior
#performance_all_actions_graph?, #performance_data_section_class, #performance_day_graph?, #performance_default_graph_id, #performance_fetch_graph?, #performance_graph, #performance_graph_action, #performance_graph_authority, #performance_graph_data_section_base_id, #performance_graph_data_section_id, #performance_graph_id, #performance_graph_label, #performance_graph_time_period, #performance_graphs, #performance_month_graph?, #performance_search_graph?, #performance_year_graph?
Methods included from PerformanceDatatableBehavior
#avg_full_request, #avg_full_request_style, #avg_graph_load, #avg_normalization, #avg_retrieve, #datatable_all_actions_stats, #datatable_data_style, #datatable_fetch_stats, #datatable_search_stats, #high_full_request, #high_full_request_style, #high_graph_load, #high_normalization, #high_retrieve, #low_full_request, #low_full_request_style, #low_graph_load, #low_normalization, #low_retrieve, #performance_data_end, #performance_data_end_dt, #performance_data_start, #performance_table_description
Constructor Details
#initialize(parent:, performance_data:) ⇒ PerformancePresenter
Returns a new instance of PerformancePresenter.
11 12 13 14 |
# File 'app/presenters/qa_server/monitor_status/performance_presenter.rb', line 11 def initialize(parent:, performance_data:) @parent = parent @performance_data = performance_data end |
Instance Attribute Details
#performance_data ⇒ Object (readonly)
Returns the value of attribute performance_data.
16 17 18 |
# File 'app/presenters/qa_server/monitor_status/performance_presenter.rb', line 16 def performance_data @performance_data end |
Instance Method Details
#display_performance? ⇒ Boolean
22 23 24 |
# File 'app/presenters/qa_server/monitor_status/performance_presenter.rb', line 22 def display_performance? display_performance_graph? || display_performance_datatable? end |
#display_performance_datatable? ⇒ Boolean
30 31 32 |
# File 'app/presenters/qa_server/monitor_status/performance_presenter.rb', line 30 def display_performance_datatable? QaServer.config.display_performance_datatable? && !performance_data.nil? end |
#display_performance_graph? ⇒ Boolean
26 27 28 |
# File 'app/presenters/qa_server/monitor_status/performance_presenter.rb', line 26 def display_performance_graph? QaServer.config.display_performance_graph? && !performance_graphs.nil? && !performance_graphs.empty? end |
#performance_data? ⇒ Boolean
18 19 20 |
# File 'app/presenters/qa_server/monitor_status/performance_presenter.rb', line 18 def performance_data? performance_data.present? end |
#performance_data_authority_name(entry) ⇒ Object
34 35 36 |
# File 'app/presenters/qa_server/monitor_status/performance_presenter.rb', line 34 def (entry) entry.keys.first end |