Class: Peek::Views::DetailedView

Inherits:
View
  • Object
show all
Defined in:
lib/peek/views/detailed_view.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.thresholdsObject


6
7
8
# File 'lib/peek/views/detailed_view.rb', line 6

def self.thresholds
  {}
end

Instance Method Details

#detail_storeObject


19
20
21
# File 'lib/peek/views/detailed_view.rb', line 19

def detail_store
  ::Gitlab::SafeRequestStore["#{key}_call_details".to_sym] ||= []
end

#resultsObject


10
11
12
13
14
15
16
17
# File 'lib/peek/views/detailed_view.rb', line 10

def results
  {
    duration: format_duration(duration),
    calls: calls,
    details: details,
    warnings: warnings
  }
end