2020-03-17 14:09:44 -04:00
|
|
|
# Group Activity Analytics API
|
|
|
|
|
|
|
|
> **Note:** This feature was [introduced](https://gitlab.com/gitlab-org/gitlab/-/merge_requests/26460) in GitLab 12.9.
|
|
|
|
|
|
|
|
## Get count of recently created issues for group
|
|
|
|
|
|
|
|
```plaintext
|
|
|
|
GET /analytics/group_activity/issues_count
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `group_path` | string | yes | Group path |
|
|
|
|
|
|
|
|
Example request:
|
|
|
|
|
|
|
|
```shell
|
2020-05-27 20:08:37 -04:00
|
|
|
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/issues_count?group_path=gitlab-org"
|
2020-03-17 14:09:44 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
2020-03-19 14:09:17 -04:00
|
|
|
{ "issues_count": 10 }
|
2020-03-17 14:09:44 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## Get count of recently created merge requests for group
|
|
|
|
|
|
|
|
```plaintext
|
|
|
|
GET /analytics/group_activity/merge_requests_count
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `group_path` | string | yes | Group path |
|
|
|
|
|
|
|
|
Example request:
|
|
|
|
|
|
|
|
```shell
|
2020-05-27 20:08:37 -04:00
|
|
|
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/merge_requests_count?group_path=gitlab-org"
|
2020-03-17 14:09:44 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
2020-03-19 14:09:17 -04:00
|
|
|
{ "merge_requests_count": 10 }
|
2020-03-17 14:09:44 -04:00
|
|
|
```
|
2020-04-03 05:09:31 -04:00
|
|
|
|
|
|
|
## Get count of members recently added to group
|
|
|
|
|
|
|
|
```plaintext
|
|
|
|
GET /analytics/group_activity/new_members_count
|
|
|
|
```
|
|
|
|
|
|
|
|
Parameters:
|
|
|
|
|
|
|
|
| Attribute | Type | Required | Description |
|
|
|
|
| --------- | ---- | -------- | ----------- |
|
|
|
|
| `group_path` | string | yes | Group path |
|
|
|
|
|
|
|
|
Example request:
|
|
|
|
|
|
|
|
```shell
|
2020-05-27 20:08:37 -04:00
|
|
|
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/analytics/group_activity/new_members_count?group_path=gitlab-org"
|
2020-04-03 05:09:31 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{ "new_members_count": 10 }
|
|
|
|
```
|