群组活动分析 API
- Tier: 专业版, 旗舰版
- Offering: JihuLab.com, 私有化部署
获取群组最近创建的议题数量
plaintextGET /analytics/group_activity/issues_count
参数:
| 属性 | 类型 | 必需 | 描述 |
|---|---|---|---|
| group_path | string | yes | 群组路径 |
示例请求:
shellcurl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/issues_count?group_path=gitlab-org"
示例响应:
json{ "issues_count": 10 }
获取群组最近创建的合并请求数量
plaintextGET /analytics/group_activity/merge_requests_count
参数:
| 属性 | 类型 | 必需 | 描述 |
|---|---|---|---|
| group_path | string | yes | 群组路径 |
示例请求:
shellcurl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/merge_requests_count?group_path=gitlab-org"
示例响应:
json{ "merge_requests_count": 10 }
获取群组最近添加的成员数量
plaintextGET /analytics/group_activity/new_members_count
参数:
| 属性 | 类型 | 必需 | 描述 |
|---|---|---|---|
| group_path | string | yes | 群组路径 |
示例请求:
shellcurl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/new_members_count?group_path=gitlab-org"
示例响应:
json{ "new_members_count": 10 }