Add performance analytics group level report api
Related issue
Splited from MR
Add performance analytics group level report api
-
报表数据接口
groups/*group_id/-/analytics/performance_analytics/report.json
参数格式
- project_ids 项目ID数组
- start_date 查询开始日期(查询时转化为UTC日期的开始时间00:00:00)
- end_date 查询结束日期(查询时转化为UTC日期的结束时间23:59:59)
- page 分页码 默认为1
- sort 排序列 username commits_pushed issues_closed...
- direction 排序方向 asc增序 desc降序
返回数据(分页信息在返回头中)
[ { "user": { "fullname": "Linjie Zhang", "username": "zhanglinjie", "user_web_url": "/zhanglinjie", "avatar": "/uploads/-/system/user/avatar/290/avatar.png?width=30" }, "commits_pushed": 0, "issues_closed": 0, "issues_created": 0, "merge_requests_approved": 0, "merge_requests_closed": 0, "merge_requests_created": 0, "merge_requests_merged": 0, "notes_created": 0, } ]
-
报表数据导出接口
groups/*group_id/-/analytics/performance_analytics/report.csv
参数格式
- project_ids 项目ID数组
- start_date 查询开始日期(查询时转化为UTC日期的开始时间00:00:00)
- end_date 查询结束日期(查询时转化为UTC日期的结束时间23:59:59)
由 Linjie Zhang 编辑于