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
6b9f84dc
Commit
6b9f84dc
authored
Apr 09, 2021
by
Rajendra Kadam
Committed by
Amy Qualls
Apr 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for usage_data_non_sql_metrics API
parent
85047793
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
49 additions
and
1 deletion
+49
-1
doc/api/usage_data.md
doc/api/usage_data.md
+49
-1
No files found.
doc/api/usage_data.md
View file @
6b9f84dc
...
...
@@ -20,7 +20,7 @@ Return all of the raw SQL queries used to compute usage ping.
Example request:
```
shell
curl
--header
"PRIVATE-TOKEN: <your_access_token>"
"https://gitlab.example.com/api/v4/usage_data/queries
curl
--header
"PRIVATE-TOKEN: <your_access_token>"
"https://gitlab.example.com/api/v4/usage_data/queries
"
```
Sample response
...
...
@@ -66,3 +66,51 @@ Sample response
"ci_runners"
:
"SELECT COUNT(
\"
ci_runners
\"
.
\"
id
\"
) FROM
\"
ci_runners
\"
"
,
...
```
## UsageDataNonSqlMetrics API
> - [Introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/57050) in GitLab 13.11.
> - [Deployed behind a feature flag](../user/feature_flags.md), disabled by default.
Return all non-SQL metrics data used in the usage ping.
Example request:
```
shell
curl
--header
"PRIVATE-TOKEN: <your_access_token>"
"https://gitlab.example.com/api/v4/usage_data/non_sql_metrics"
```
Sample response:
```
json
{
"recorded_at"
:
"2021-03-26T07:04:03.724Z"
,
"uuid"
:
null
,
"hostname"
:
"localhost"
,
"version"
:
"13.11.0-pre"
,
"installation_type"
:
"gitlab-development-kit"
,
"active_user_count"
:
-3
,
"edition"
:
"EE"
,
"license_md5"
:
"bb8cd0d8a6d9569ff3f70b8927a1f949"
,
"license_id"
:
null
,
"historical_max_users"
:
0
,
"licensee"
:
{
"Name"
:
"John Doe1"
},
"license_user_count"
:
null
,
"license_starts_at"
:
"1970-01-01"
,
"license_expires_at"
:
"2022-02-26"
,
"license_plan"
:
"starter"
,
"license_add_ons"
:
{
"GitLab_FileLocks"
:
1
,
"GitLab_Auditor_User"
:
1
},
"license_trial"
:
null
,
"license_subscription_id"
:
"0000"
,
"license"
:
{},
"settings"
:
{
"ldap_encrypted_secrets_enabled"
:
false
,
"operating_system"
:
"mac_os_x-11.2.2"
},
...
```
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