Module: PgInsights

Defined in:
lib/pg_insights.rb,
lib/pg_insights/engine.rb,
lib/pg_insights/version.rb,
app/models/pg_insights/query.rb,
app/jobs/pg_insights/application_job.rb,
app/jobs/pg_insights/health_check_job.rb,
app/models/pg_insights/query_execution.rb,
app/helpers/pg_insights/insights_helper.rb,
app/jobs/pg_insights/query_analysis_job.rb,
app/models/pg_insights/application_record.rb,
app/helpers/pg_insights/application_helper.rb,
app/jobs/pg_insights/database_snapshot_job.rb,
app/models/pg_insights/health_check_result.rb,
lib/generators/pg_insights/clean_generator.rb,
lib/generators/pg_insights/install_generator.rb,
app/controllers/pg_insights/health_controller.rb,
app/services/pg_insights/health_check_service.rb,
app/controllers/pg_insights/queries_controller.rb,
app/services/pg_insights/insight_query_service.rb,
app/controllers/pg_insights/insights_controller.rb,
app/controllers/pg_insights/timeline_controller.rb,
app/jobs/pg_insights/health_check_scheduler_job.rb,
app/services/pg_insights/query_analysis_service.rb,
app/jobs/pg_insights/recurring_health_checks_job.rb,
app/controllers/pg_insights/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, Generators, InsightsHelper, Integration Classes: ApplicationController, ApplicationJob, ApplicationRecord, DatabaseSnapshotJob, Engine, HealthCheckJob, HealthCheckResult, HealthCheckSchedulerJob, HealthCheckService, HealthController, InsightQueryService, InsightsController, QueriesController, Query, QueryAnalysisJob, QueryAnalysisService, QueryExecution, RecurringHealthChecksJob, TimelineController

Constant Summary collapse

VERSION =
"0.4.1"

Class Method Summary collapse

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (PgInsights)

    the object that the method was called on



18
19
20
# File 'lib/pg_insights.rb', line 18

def self.configure
  yield self
end

.health_check_timeout_msObject



32
33
34
35
# File 'lib/pg_insights.rb', line 32

def self.health_check_timeout_ms
  validate_timeout(health_check_timeout, "health_check_timeout")
  (health_check_timeout.to_f * 1000).to_i
end

.query_analysis_timeout_msObject



27
28
29
30
# File 'lib/pg_insights.rb', line 27

def self.query_analysis_timeout_ms
  validate_timeout(query_analysis_timeout, "query_analysis_timeout")
  (query_analysis_timeout.to_f * 1000).to_i
end

.query_execution_timeout_msObject



22
23
24
25
# File 'lib/pg_insights.rb', line 22

def self.query_execution_timeout_ms
  validate_timeout(query_execution_timeout, "query_execution_timeout")
  (query_execution_timeout.to_f * 1000).to_i
end