Class: Peek::Views::Gitaly

Inherits:
DetailedView show all
Defined in:
lib/peek/views/gitaly.rb

Constant Summary collapse

DEFAULT_THRESHOLDS =
{
  calls: 30,
  duration: 1000,
  individual_call: 500
}.freeze
THRESHOLDS =
{
  production: {
    calls: 30,
    duration: 1000,
    individual_call: 500
  }
}.freeze

Class Method Summary collapse

Methods inherited from DetailedView

#detail_store, #results

Class Method Details

.thresholdsObject


20
21
22
# File 'lib/peek/views/gitaly.rb', line 20

def self.thresholds
  @thresholds ||= THRESHOLDS.fetch(Rails.env.to_sym, DEFAULT_THRESHOLDS)
end