Skip to content

Files

Latest commit

4edee7e · Apr 22, 2024

History

History
83 lines (57 loc) · 1.83 KB

group_activity_analytics.md

File metadata and controls

83 lines (57 loc) · 1.83 KB
stage group info
Plan
Optimize
To determine the technical writer assigned to the Stage/Group associated with this page, see https://handbook.gitlab.com/handbook/product/ux/technical-writing/#assignments

Group Activity Analytics API

DETAILS: Tier: Premium, Ultimate Offering: GitLab.com, Self-managed, GitLab Dedicated

Get count of recently created issues for group

GET /analytics/group_activity/issues_count

Parameters:

Attribute Type Required Description
group_path string yes Group path

Example request:

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

Example response:

{ "issues_count": 10 }

Get count of recently created merge requests for group

GET /analytics/group_activity/merge_requests_count

Parameters:

Attribute Type Required Description
group_path string yes Group path

Example request:

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

Example response:

{ "merge_requests_count": 10 }

Get count of members recently added to group

GET /analytics/group_activity/new_members_count

Parameters:

Attribute Type Required Description
group_path string yes Group path

Example request:

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

Example response:

{ "new_members_count": 10 }