Skip to content
代码片段 群组 项目
未验证 提交 37dfa1ae 编辑于 作者: Adam Hegyi's avatar Adam Hegyi 提交者: GitLab
浏览文件

Merge branch 'hsnir1-master-patch-2709' into 'master'

Adding graphQL example query to DORA docs

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/144389



Merged-by: default avatarAdam Hegyi <ahegyi@gitlab.com>
Approved-by: default avatarLorena Ciutacu <lciutacu@gitlab.com>
Approved-by: default avatarAdam Hegyi <ahegyi@gitlab.com>
Reviewed-by: default avatarLorena Ciutacu <lciutacu@gitlab.com>
Co-authored-by: default avatarLorena Ciutacu <lciutacu@gitlab.com>
Co-authored-by: default avatarHaim Snir <hsnir@gitlab.com>
No related branches found
No related tags found
无相关合并请求
......@@ -170,6 +170,28 @@ Dora::Configuration.create!(project: my_project, ltfc_target_branches: \['master
To retrieve DORA data, use the [GraphQL](../../api/graphql/reference/index.md) or the [REST](../../api/dora/metrics.md) APIs.
The following example uses the GraphQL API to retrieve the monthly deployment frequency for a given time period:
```graphql
{
project(fullPath: "gitlab-org/gitlab") {
dora {
metrics(
metric: DEPLOYMENT_FREQUENCY
startDate: "2023-12-01"
endDate: "2024-02-01"
interval: MONTHLY
) {
date
value
}
}
}
}
```
You can explore the GraphQL API resources with the interactive [GraphQL explorer](../../api/graphql/index.md#interactive-graphql-explorer).
## Measure DORA metrics
### Measure DORA metrics without using GitLab CI/CD pipelines
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册