Class: QaServer::HistoryUpDownService

Inherits:
Object
  • Object
show all
Defined in:
app/services/qa_server/history_up_down_service.rb

Constant Summary collapse

NO_DATA =
:no_data
FULLY_UP =
:fully_up
MOSTLY_UP =
:mostly_up
EXCESSIVE_TIMEOUTS =
:timeouts
BARELY_UP =
:barely_up
DOWN =
:down
MOSTLY_UP_THRESHOLD =
QaServer.config.up_down_data_mostly_up_threshold
TIMEOUT_THRESHOLD =
QaServer.config.up_down_data_timeouts_max_threshold

Instance Method Summary collapse

Instance Method Details

#last_30_daysObject



20
21
22
23
24
# File 'app/services/qa_server/history_up_down_service.rb', line 20

def last_30_days
  data = {}
  authorities_list.each { |authority| data[authority] = last_30_days_for(authority.to_s) }
  data
end