From 554e68f8b46c49ddd23d73f60f729411eda15f7c Mon Sep 17 00:00:00 2001
From: Nathan Friend <nathan@gitlab.com>
Date: Thu, 8 Apr 2021 07:10:49 +0000
Subject: [PATCH] Add explanation of `value` field in DORA 4 API response

---
 doc/api/dora/metrics.md | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/doc/api/dora/metrics.md b/doc/api/dora/metrics.md
index b887294b28e73..31e6fee66cab3 100644
--- a/doc/api/dora/metrics.md
+++ b/doc/api/dora/metrics.md
@@ -88,3 +88,14 @@ Example response:
   { "2021-03-08": 4, "date": "2021-03-08", "value": 4 }
 ]
 ```
+
+## The `value` field
+
+For both the project and group-level endpoints above, the `value` field in the
+API response has a different meaning depending on the provided `metric` query
+parameter:
+
+| `metric` query parameter | Description of `value` in response                                                                                                                           |
+| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| `deployment_frequency`   | The number of successful deployments during the time period.                                                                                                 |
+| `lead_time_for_changes`  | The median number of seconds between the merge of the merge request (MR) and the deployment of the MR's commits for all MRs deployed during the time period. |
-- 
GitLab