Help us learn about your current experience with the documentation. Take the survey.

群组活动分析 API

  • 版本:Premium, Ultimate
  • 产品:GitLab.com, GitLab Self-Managed, GitLab Dedicated

使用此 API 获取群组活动的相关信息。更多信息,请参阅群组活动分析

获取群组最近创建的 issue 数量

GET /analytics/group_activity/issues_count

参数:

属性 类型 必需 描述
group_path string 群组路径

示例请求:

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/issues_count?group_path=gitlab-org"

示例响应:

{ "issues_count": 10 }

获取群组最近创建的 merge request 数量

GET /analytics/group_activity/merge_requests_count

参数:

属性 类型 必需 描述
group_path string 群组路径

示例请求:

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/merge_requests_count?group_path=gitlab-org"

示例响应:

{ "merge_requests_count": 10 }

获取最近添加到群组的成员数量

GET /analytics/group_activity/new_members_count

参数:

属性 类型 必需 描述
group_path string 群组路径

示例请求:

curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/new_members_count?group_path=gitlab-org"

示例响应:

{ "new_members_count": 10 }