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
98106a00
Commit
98106a00
authored
Nov 03, 2020
by
Alper Akgun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Troubleshooting doc to generate usage ping
parent
447d5366
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
...dministration/troubleshooting/gitlab_rails_cheat_sheet.md
+16
-0
No files found.
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
View file @
98106a00
...
@@ -999,3 +999,19 @@ project = Project.find_by_full_path('<group/project>')
...
@@ -999,3 +999,19 @@ project = Project.find_by_full_path('<group/project>')
Geo
::
RepositorySyncService
.
new
(
project
).
execute
Geo
::
RepositorySyncService
.
new
(
project
).
execute
```
```
### Generate usage ping
#### Generate or get the cached usage ping
```
ruby
Gitlab
::
UsageData
.
to_json
```
#### Generate a fresh new usage ping
This will also refresh the cached usage ping displayed in the admin area
```
ruby
Gitlab
::
UsageData
.
to_json
(
force_refresh:
true
)
```
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