Extend DORA4 API support for environment name

Release notes

As a user with multiple production environments, I want to be able to see the metric(s) for a specific environment and not necessarily the entire group of production environments. In this issue we are adding the ability to specify a specific environment to retrieve metrics from.

Problem to solve

Coming from #296849 (comment 546261345)

As a user with multiple production environments, I want to be able to see the metric(s) for a specific environment and not necessarily the entire group of production environments.

Proposal

Add environment_name as an optional attribute to the get DORA4 API.

Get project-level DORA metrics.

GET /projects/:id/dora/metrics

Attribute Type Required Description
environment_tier string no The tier of the environment. Default is production.
environment_name string no The name of the environment. Default is production.

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖