Commit 98106a00 authored by Alper Akgun's avatar Alper Akgun

Troubleshooting doc to generate usage ping

parent 447d5366
...@@ -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)
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment