debian-mirror-gitlab/doc/api/statistics.md

42 lines
921 B
Markdown
Raw Normal View History

2021-01-29 00:20:46 +05:30
---
2021-06-08 01:23:25 +05:30
stage: Manage
2022-04-04 11:22:00 +05:30
group: Authentication and Authorization
2021-02-22 17:27:13 +05:30
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2021-01-29 00:20:46 +05:30
---
2021-11-11 11:23:49 +05:30
# Application statistics API **(FREE SELF)**
2019-12-04 20:38:33 +05:30
## Get current application statistics
List the current statistics of the GitLab instance. You have to be an
administrator in order to perform this action.
2021-02-22 17:27:13 +05:30
NOTE:
2019-12-04 20:38:33 +05:30
These statistics are approximate.
2020-04-08 14:13:33 +05:30
```plaintext
2019-12-04 20:38:33 +05:30
GET /application/statistics
```
2020-03-13 15:44:24 +05:30
```shell
2020-06-23 00:09:42 +05:30
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/application/statistics"
2019-12-04 20:38:33 +05:30
```
Example response:
```json
{
"forks": "10",
"issues": "76",
"merge_requests": "27",
"notes": "954",
"snippets": "50",
"ssh_keys": "10",
"milestones": "40",
"users": "50",
"groups": "10",
"projects": "20",
"active_users": "50"
}
```