372.md 922 字节
Newer Older
Lab机器人's avatar
readme  
Lab机器人 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
# Application statistics API

> 原文:[https://docs.gitlab.com/ee/api/statistics.html](https://docs.gitlab.com/ee/api/statistics.html)

*   [Get current application statistics](#get-current-application-statistics)

# Application statistics API[](#application-statistics-api "Permalink")

## Get current application statistics[](#get-current-application-statistics "Permalink")

列出 GitLab 实例的当前统计信息. 您必须是管理员才能执行此操作.

**注意:**这些统计数据是近似的.

```
GET /application/statistics 
```

```
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/application/statistics" 
```

响应示例:

```
{  "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"  } 
```