Module: QaServer

Extended by:
ActiveSupport::Autoload, Deprecation
Defined in:
app/models/qa_server/scenarios.rb,
lib/qa_server.rb,
lib/qa_server/engine.rb,
lib/qa_server/version.rb,
lib/qa_server/configuration.rb,
app/models/qa_server/term_scenario.rb,
app/services/qa_server/time_service.rb,
app/jobs/qa_server/history_graph_job.rb,
app/jobs/qa_server/monitor_tests_job.rb,
app/models/qa_server/search_scenario.rb,
app/loggers/qa_server/scenario_logger.rb,
app/models/qa_server/authority_status.rb,
app/models/qa_server/authority_scenario.rb,
app/models/qa_server/performance_history.rb,
app/presenters/qa_server/fetch_presenter.rb,
app/services/qa_server/database_migrator.rb,
app/models/qa_server/scenario_run_history.rb,
app/models/qa_server/scenario_run_summary.rb,
app/controllers/qa_server/fetch_controller.rb,
app/controllers/qa_server/usage_controller.rb,
app/models/qa_server/scenario_run_registry.rb,
app/presenters/qa_server/navmenu_presenter.rb,
app/services/qa_server/time_period_service.rb,
lib/generators/qa_server/install_generator.rb,
app/cache_processors/qa_server/job_id_cache.rb,
app/jobs/qa_server/performance_per_byte_job.rb,
app/services/concerns/qa_server/gruff_graph.rb,
app/validators/qa_server/scenario_validator.rb,
app/jobs/qa_server/performance_day_graph_job.rb,
app/controllers/qa_server/homepage_controller.rb,
app/jobs/qa_server/performance_year_graph_job.rb,
app/models/qa_server/authority_status_failure.rb,
app/jobs/qa_server/performance_month_graph_job.rb,
app/presenters/qa_server/check_status_presenter.rb,
app/services/qa_server/authority_lister_service.rb,
app/services/qa_server/authority_loader_service.rb,
app/services/qa_server/history_graphing_service.rb,
app/services/qa_server/scenarios_loader_service.rb,
app/cache_processors/qa_server/performance_cache.rb,
app/validators/qa_server/term_scenario_validator.rb,
app/cache_processors/qa_server/scenario_run_cache.rb,
app/controllers/qa_server/check_status_controller.rb,
app/presenters/qa_server/authority_list_presenter.rb,
app/presenters/qa_server/monitor_status_presenter.rb,
app/cache_processors/concerns/qa_server/cache_keys.rb,
app/services/qa_server/authority_validator_service.rb,
app/validators/qa_server/search_scenario_validator.rb,
app/cache_processors/qa_server/cache_expiry_service.rb,
app/controllers/qa_server/authority_list_controller.rb,
app/controllers/qa_server/monitor_status_controller.rb,
app/services/qa_server/performance_graphing_service.rb,
app/services/qa_server/performance_datatable_service.rb,
app/cache_processors/qa_server/scenario_history_cache.rb,
app/services/qa_server/performance_calculator_service.rb,
app/services/qa_server/performance_graph_data_service.rb,
app/services/qa_server/performance_per_byte_data_service.rb,
app/cache_processors/qa_server/scenario_run_summary_cache.rb,
app/cache_processors/qa_server/performance_datatable_cache.rb,
app/cache_processors/qa_server/performance_day_graph_cache.rb,
app/cache_processors/qa_server/scenario_run_failures_cache.rb,
app/cache_processors/qa_server/performance_year_graph_cache.rb,
app/cache_processors/qa_server/scenario_history_graph_cache.rb,
app/models/concerns/qa_server/performance_history_data_keys.rb,
app/cache_processors/qa_server/performance_month_graph_cache.rb,
app/services/qa_server/performance_per_byte_calculator_service.rb,
app/controllers/concerns/qa_server/authority_validation_behavior.rb

Overview

Cache the datetime_stamp of the last time the performance month graph was generated. Calls job to generate the graph if expired.

Defined Under Namespace

Modules: AuthorityValidationBehavior, CacheKeys, GruffGraph, MonitorStatus, PerformanceHistoryDataKeys Classes: AssetsGenerator, AuthorityListController, AuthorityListPresenter, AuthorityListerService, AuthorityLoaderService, AuthorityScenario, AuthorityStatus, AuthorityStatusFailure, AuthorityValidatorService, CacheExpiryService, CheckStatusController, CheckStatusPresenter, ConfigGenerator, Configuration, DatabaseMigrator, Engine, FetchController, FetchPresenter, HistoryGraphJob, HistoryGraphingService, HomepageController, Install, JobIdCache, ModelsGenerator, MonitorStatusController, MonitorStatusPresenter, MonitorTestsJob, NavmenuPresenter, PerformanceCache, PerformanceCalculatorService, PerformanceDatatableCache, PerformanceDatatableService, PerformanceDayGraphCache, PerformanceDayGraphJob, PerformanceGraphDataService, PerformanceGraphingService, PerformanceHistory, PerformanceMonthGraphCache, PerformanceMonthGraphJob, PerformancePerByteCalculatorService, PerformancePerByteDataService, PerformancePerByteJob, PerformanceYearGraphCache, PerformanceYearGraphJob, ScenarioHistoryCache, ScenarioHistoryGraphCache, ScenarioLogger, ScenarioRunCache, ScenarioRunFailuresCache, ScenarioRunHistory, ScenarioRunRegistry, ScenarioRunSummary, ScenarioRunSummaryCache, ScenarioValidator, Scenarios, ScenariosLoaderService, SearchScenario, SearchScenarioValidator, TermScenario, TermScenarioValidator, TimePeriodService, TimeService, UsageController

Constant Summary collapse

VERSION =
'7.7.1'

Class Method Summary collapse

Class Method Details

.config {|Qa::Configuration| ... } ⇒ Qa::Configuration

Exposes the Questioning Authority configuration

Yields:

  • (Qa::Configuration)

    if a block is passed

Returns:

  • (Qa::Configuration)

See Also:

  • for configuration options


22
23
24
25
26
27
28
# File 'lib/qa_server.rb', line 22

def self.config(&block)
  @config ||= QaServer::Configuration.new

  yield @config if block

  @config
end

.log_agent_info(request) ⇒ Object



30
31
32
33
34
35
36
37
38
39
# File 'lib/qa_server.rb', line 30

def self.log_agent_info(request)
  return if !Qa.config.respond_to?(:suppress_ip_data_from_log) || Qa.config.suppress_ip_data_from_log
  user_agent = request.respond_to?(:user_agent) && !request.user_agent.nil? ? ::UserAgent.parse(request.user_agent) : nil
  return Rails.logger.info("{browser: UNKNOWN, browser_version: UNKNOWN, platform: UNKNOWN, os: UNKNOWN}") if user_agent.nil?
  browser = user_agent.browser
  browser_version = user_agent.version
  platform = user_agent.platform
  os = user_agent.os
  Rails.logger.info("{browser: #{browser}, browser_version: #{browser_version}, platform: #{platform}, os: #{os}}")
end