Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSarah Yasonik <syasonik@gitlab.com>2019-06-20 17:06:18 +0300
committerSean McGivern <sean@gitlab.com>2019-06-20 17:06:18 +0300
commitf49dd76a44ec04d35fbf3f08bd3c950d2df4de5b (patch)
tree43c53421eeb64cac700969cc0ec3a3871e5a03ee /spec/fixtures/lib
parent429f6b629b691945d8cd187b79e00cfa7eed6fa2 (diff)
Add embedding flag and filter to CPU/Mem
This commits adds support for metrics dashboards for embedding. If the flag 'embedded' is provided to the environments/id/metrics_dashboard endpoint, the response will be suitable for embedding in issues or other content. This is a precursor for support for embedding metrics in GFM.
Diffstat (limited to 'spec/fixtures/lib')
-rw-r--r--spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_dashboard.json13
-rw-r--r--spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_panel_groups.json11
2 files changed, 24 insertions, 0 deletions
diff --git a/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_dashboard.json b/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_dashboard.json
new file mode 100644
index 00000000000..7d2b409a0f6
--- /dev/null
+++ b/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_dashboard.json
@@ -0,0 +1,13 @@
+{
+ "type": "object",
+ "required": ["panel_groups"],
+ "properties": {
+ "panel_groups": {
+ "type": "array",
+ "items": {
+ "$ref": "spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_panel_groups.json"
+ }
+ }
+ },
+ "additionalProperties": false
+}
diff --git a/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_panel_groups.json b/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_panel_groups.json
new file mode 100644
index 00000000000..bf05c054e2f
--- /dev/null
+++ b/spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_panel_groups.json
@@ -0,0 +1,11 @@
+{
+ "type": "object",
+ "required": ["panels"],
+ "properties": {
+ "panels": {
+ "type": "array",
+ "items": { "$ref": "panels.json" }
+ }
+ },
+ "additionalProperties": false
+}