sensu-plugins/sensu-plugins-postgres

View on GitHub
bin/metric-postgres-statstable.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method run has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def run
    timestamp = Time.now.to_i
    pgpass
    con = PG.connect(host: config[:hostname],
                     dbname: config[:database],
Severity: Minor
Found in bin/metric-postgres-statstable.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status