Class: Peek::Views::Elasticsearch

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

Constant Summary collapse

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DetailedView

#detail_store, #results

Class Method Details

.thresholdsObject


24
25
26
# File 'lib/peek/views/elasticsearch.rb', line 24

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

Instance Method Details

#keyObject


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

def key
  'es'
end