Module: QaServer::MonitorStatus::PerformanceDatatableBehavior
Constant Summary
PerformanceHistoryDataKeys::ALL_AUTH, PerformanceHistoryDataKeys::AVG_FULL, PerformanceHistoryDataKeys::AVG_LOAD, PerformanceHistoryDataKeys::AVG_NORM, PerformanceHistoryDataKeys::BY_DAY, PerformanceHistoryDataKeys::BY_HOUR, PerformanceHistoryDataKeys::BY_MONTH, PerformanceHistoryDataKeys::FOR_DATATABLE, PerformanceHistoryDataKeys::FOR_DAY, PerformanceHistoryDataKeys::FOR_MONTH, PerformanceHistoryDataKeys::FOR_YEAR, PerformanceHistoryDataKeys::HIGH_FULL, PerformanceHistoryDataKeys::HIGH_LOAD, PerformanceHistoryDataKeys::HIGH_NORM, PerformanceHistoryDataKeys::LOW_FULL, PerformanceHistoryDataKeys::LOW_LOAD, PerformanceHistoryDataKeys::LOW_NORM, PerformanceHistoryDataKeys::STATS
Instance Method Summary
collapse
Instance Method Details
#avg_full_request(stats) ⇒ Object
43
44
45
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 43
def avg_full_request(stats)
format_stat stats[AVG_FULL]
end
|
#avg_full_request_style(stats) ⇒ Object
55
56
57
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 55
def avg_full_request_style(stats)
performance_style_class(stats, AVG_FULL)
end
|
#avg_load(stats) ⇒ Object
35
36
37
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 35
def avg_load(stats)
format_stat stats[AVG_LOAD]
end
|
#avg_normalization(stats) ⇒ Object
39
40
41
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 39
def avg_normalization(stats)
format_stat stats[AVG_NORM]
end
|
#datatable_stats(authority_data) ⇒ Object
7
8
9
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 7
def datatable_stats(authority_data)
authority_data[FOR_DATATABLE]
end
|
#high_full_request(stats) ⇒ Object
31
32
33
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 31
def high_full_request(stats)
format_stat stats[HIGH_FULL]
end
|
#high_full_request_style(stats) ⇒ Object
51
52
53
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 51
def high_full_request_style(stats)
performance_style_class(stats, HIGH_FULL)
end
|
#high_load(stats) ⇒ Object
23
24
25
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 23
def high_load(stats)
format_stat stats[HIGH_LOAD]
end
|
#high_normalization(stats) ⇒ Object
27
28
29
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 27
def high_normalization(stats)
format_stat stats[HIGH_NORM]
end
|
#low_full_request(stats) ⇒ Object
19
20
21
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 19
def low_full_request(stats)
format_stat stats[LOW_FULL]
end
|
#low_full_request_style(stats) ⇒ Object
47
48
49
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 47
def low_full_request_style(stats)
performance_style_class(stats, LOW_FULL)
end
|
#low_load(stats) ⇒ Object
11
12
13
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 11
def low_load(stats)
format_stat stats[LOW_LOAD]
end
|
#low_normalization(stats) ⇒ Object
15
16
17
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 15
def low_normalization(stats)
format_stat stats[LOW_NORM]
end
|
59
60
61
62
63
64
65
66
67
68
69
70
|
# File 'app/presenters/concerns/qa_server/monitor_status/performance_datatable_behavior.rb', line 59
def performance_table_description
case expected_time_period
when :day
I18n.t('qa_server.monitor_status.performance.datatable_day_desc')
when :month
I18n.t('qa_server.monitor_status.performance.datatable_month_desc')
when :year
I18n.t('qa_server.monitor_status.performance.datatable_year_desc')
else
I18n.t('qa_server.monitor_status.performance.datatable_all_desc')
end
end
|