Class: Gitlab::UsageDataCounters::SearchCounter
- Inherits:
-
BaseCounter
- Object
- BaseCounter
- Gitlab::UsageDataCounters::SearchCounter
- Defined in:
- lib/gitlab/usage_data_counters/search_counter.rb
Constant Summary collapse
- KNOWN_EVENTS =
%w[all_searches navbar_searches].freeze
- PREFIX =
nil
Constants inherited from BaseCounter
Class Method Summary collapse
Methods inherited from BaseCounter
count, fallback_totals, fetch_supported_event, read, totals
Methods included from RedisCounter
#increment, #increment_by, #total_count
Class Method Details
.redis_key(event) ⇒ Object
10 11 12 13 14 |
# File 'lib/gitlab/usage_data_counters/search_counter.rb', line 10 def redis_key(event) require_known_event(event) "#{event}_COUNT".upcase end |