Class: Gitlab::UsageDataCounters::WebIdeCounter
- Inherits:
-
BaseCounter
- Object
- BaseCounter
- Gitlab::UsageDataCounters::WebIdeCounter
show all
- Defined in:
- lib/gitlab/usage_data_counters/web_ide_counter.rb
Constant Summary
collapse
- KNOWN_EVENTS =
%w[commits views merge_requests previews previews_success terminals pipelines].freeze
- PREFIX =
'web_ide'
Constants inherited
from BaseCounter
BaseCounter::UnknownEvent
Class Method Summary
collapse
Methods inherited from BaseCounter
count, fallback_totals, fetch_supported_event, read, totals
#increment, #increment_by, #total_count
Class Method Details
.increment_commits_count ⇒ Object
10
11
12
|
# File 'lib/gitlab/usage_data_counters/web_ide_counter.rb', line 10
def increment_commits_count
count('commits')
end
|
.increment_merge_requests_count ⇒ Object
14
15
16
|
# File 'lib/gitlab/usage_data_counters/web_ide_counter.rb', line 14
def increment_merge_requests_count
count('merge_requests')
end
|
.increment_pipelines_count ⇒ Object
26
27
28
|
# File 'lib/gitlab/usage_data_counters/web_ide_counter.rb', line 26
def increment_pipelines_count
count('pipelines')
end
|
.increment_terminals_count ⇒ Object
22
23
24
|
# File 'lib/gitlab/usage_data_counters/web_ide_counter.rb', line 22
def increment_terminals_count
count('terminals')
end
|
.increment_views_count ⇒ Object
18
19
20
|
# File 'lib/gitlab/usage_data_counters/web_ide_counter.rb', line 18
def increment_views_count
count('views')
end
|