Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
dd01c022
Commit
dd01c022
authored
Mar 17, 2020
by
Aakriti Gupta
Committed by
Dmytro Zaporozhets
Mar 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add docs for Group Activity Analytics API
parent
42e47a2f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
0 deletions
+56
-0
doc/api/api_resources.md
doc/api/api_resources.md
+1
-0
doc/api/group_activity_analytics.md
doc/api/group_activity_analytics.md
+55
-0
No files found.
doc/api/api_resources.md
View file @
dd01c022
...
...
@@ -120,6 +120,7 @@ The following API resources are available outside of project and group contexts
|
[
Events
](
events.md
)
|
`/events`
,
`/users/:id/events`
(also available for projects) |
|
[
Feature flags
](
features.md
)
|
`/features`
|
|
[
Geo Nodes
](
geo_nodes.md
)
**(PREMIUM ONLY)**
|
`/geo_nodes`
|
|
[
Group Activity Analytics
](
group_activity_analytics.md
)
**(STARTER)**
|
`/analytics/group_activity/{issues_count | merge_requests_count}`
|
|
[
Import repository from GitHub
](
import.md
)
|
`/import/github`
|
|
[
Issues
](
issues.md
)
|
`/issues`
(also available for groups and projects) |
|
[
Issues Statistics
](
issues_statistics.md
)
|
`/issues_statistics`
(also available for groups and projects) |
...
...
doc/api/group_activity_analytics.md
0 → 100644
View file @
dd01c022
# 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
curl
--header
"PRIVATE-TOKEN: <your_access_token>"
https://gitlab.example.com/api/v4/analytics/group_activity/issues_count?group_path
=
gitlab-org
```
Example response:
```
json
[
{
issues_count
:
10
}
]
```
## 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
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:
```
json
[
{
merge_requests_count
:
10
}
]
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment