Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
44f7af86
Commit
44f7af86
authored
Nov 07, 2020
by
ggelatti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor hll event yml paths
parent
a3f6df7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/gitlab/usage_data_counters/hll_redis_counter.rb
lib/gitlab/usage_data_counters/hll_redis_counter.rb
+3
-3
No files found.
lib/gitlab/usage_data_counters/hll_redis_counter.rb
View file @
44f7af86
...
...
@@ -15,9 +15,9 @@ module Gitlab
CategoryMismatch
=
Class
.
new
(
EventError
)
UnknownAggregationOperator
=
Class
.
new
(
EventError
)
KNOWN_EVENTS_PATH
=
'lib/gitlab/usage_data_counters/known_events/*.yml'
KNOWN_EVENTS_PATH
=
File
.
expand_path
(
'known_events/*.yml'
,
__dir__
)
ALLOWED_AGGREGATIONS
=
%i(daily weekly)
.
freeze
AGGREGATED_METRICS_PATH
=
'lib/gitlab/usage_data_counters/aggregated_metrics/*.yml'
AGGREGATED_METRICS_PATH
=
File
.
expand_path
(
'aggregated_metrics/*.yml'
,
__dir__
)
ALLOWED_METRICS_AGGREGATIONS
=
%w[ANY]
.
freeze
# Track event on entity_id
...
...
@@ -156,7 +156,7 @@ module Gitlab
end
def
load_yaml_from_path
(
path
)
YAML
.
safe_load
(
File
.
read
(
Rails
.
root
.
join
(
path
)
))
&
.
map
(
&
:with_indifferent_access
)
YAML
.
safe_load
(
File
.
read
(
path
))
&
.
map
(
&
:with_indifferent_access
)
end
def
known_events_names
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment