diff options
author | Sarah Yasonik <syasonik@gitlab.com> | 2019-06-20 17:06:18 +0300 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2019-06-20 17:06:18 +0300 |
commit | f49dd76a44ec04d35fbf3f08bd3c950d2df4de5b (patch) | |
tree | 43c53421eeb64cac700969cc0ec3a3871e5a03ee /spec/fixtures/lib/gitlab/metrics/dashboard | |
parent | 429f6b629b691945d8cd187b79e00cfa7eed6fa2 (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/gitlab/metrics/dashboard')
-rw-r--r-- | spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_dashboard.json | 13 | ||||
-rw-r--r-- | spec/fixtures/lib/gitlab/metrics/dashboard/schemas/embedded_panel_groups.json | 11 |
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 +} |