Commit a3f0c12e authored by Mike Jang's avatar Mike Jang

Merge branch 'aa-generate-usage-ping' into 'master'

Troubleshooting docs to generate usage ping

See merge request gitlab-org/gitlab!46754
parents 5fc79f8d 98106a00
......@@ -999,3 +999,19 @@ project = Project.find_by_full_path('<group/project>')
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