diff options
Diffstat (limited to 'lib/gitlab/metrics/dashboard/validator/schemas')
7 files changed, 0 insertions, 103 deletions
diff --git a/lib/gitlab/metrics/dashboard/validator/schemas/axis.json b/lib/gitlab/metrics/dashboard/validator/schemas/axis.json deleted file mode 100644 index 54334022426..00000000000 --- a/lib/gitlab/metrics/dashboard/validator/schemas/axis.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "type": "object", - "properties": { - "name": { "type": "string" }, - "format": { - "type": "string", - "default": "engineering" - }, - "precision": { - "type": "number", - "default": 2 - } - } -} diff --git a/lib/gitlab/metrics/dashboard/validator/schemas/dashboard.json b/lib/gitlab/metrics/dashboard/validator/schemas/dashboard.json deleted file mode 100644 index 313f03be7dc..00000000000 --- a/lib/gitlab/metrics/dashboard/validator/schemas/dashboard.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "type": "object", - "required": ["dashboard", "panel_groups"], - "properties": { - "dashboard": { "type": "string" }, - "panel_groups": { - "type": "array", - "items": { "$ref": "./panel_group.json" } - }, - "templating": { - "$ref": "./templating.json" - }, - "links": { - "type": "array", - "items": { "$ref": "./link.json" } - } - } -} diff --git a/lib/gitlab/metrics/dashboard/validator/schemas/link.json b/lib/gitlab/metrics/dashboard/validator/schemas/link.json deleted file mode 100644 index 4ea7b5dd324..00000000000 --- a/lib/gitlab/metrics/dashboard/validator/schemas/link.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "object", - "required": ["url"], - "properties": { - "url": { "type": "string" }, - "title": { "type": "string" }, - "type": { - "type": "string", - "enum": ["grafana"] - } - } -} diff --git a/lib/gitlab/metrics/dashboard/validator/schemas/metric.json b/lib/gitlab/metrics/dashboard/validator/schemas/metric.json deleted file mode 100644 index 13831b77e3e..00000000000 --- a/lib/gitlab/metrics/dashboard/validator/schemas/metric.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "type": "object", - "required": ["unit"], - "oneOf": [{ "required": ["query"] }, { "required": ["query_range"] }], - "properties": { - "id": { - "type": "string", - "format": "add_to_metric_id_cache" - }, - "unit": { "type": "string" }, - "label": { "type": "string" }, - "query": { "type": ["string", "number"] }, - "query_range": { "type": ["string", "number"] }, - "step": { "type": "number" } - } -} diff --git a/lib/gitlab/metrics/dashboard/validator/schemas/panel.json b/lib/gitlab/metrics/dashboard/validator/schemas/panel.json deleted file mode 100644 index 2ae9608036e..00000000000 --- a/lib/gitlab/metrics/dashboard/validator/schemas/panel.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "object", - "required": ["title", "metrics"], - "properties": { - "type": { - "type": "string", - "enum": ["area-chart", "line-chart", "anomaly-chart", "bar", "column", "stacked-column", "single-stat", "heatmap", "gauge"], - "default": "area-chart" - }, - "title": { "type": "string" }, - "y_label": { "type": "string" }, - "y_axis": { "$ref": "./axis.json" }, - "max_value": { "type": "number" }, - "weight": { "type": "number" }, - "metrics": { - "type": "array", - "items": { "$ref": "./metric.json" } - }, - "links": { - "type": "array", - "items": { "$ref": "./link.json" } - } - } -} diff --git a/lib/gitlab/metrics/dashboard/validator/schemas/panel_group.json b/lib/gitlab/metrics/dashboard/validator/schemas/panel_group.json deleted file mode 100644 index 1306fc475db..00000000000 --- a/lib/gitlab/metrics/dashboard/validator/schemas/panel_group.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "object", - "required": ["group", "panels"], - "properties": { - "group": { "type": "string" }, - "priority": { "type": "number" }, - "panels": { - "type": "array", - "items": { "$ref": "./panel.json" } - } - } -} diff --git a/lib/gitlab/metrics/dashboard/validator/schemas/templating.json b/lib/gitlab/metrics/dashboard/validator/schemas/templating.json deleted file mode 100644 index 6f8664c89af..00000000000 --- a/lib/gitlab/metrics/dashboard/validator/schemas/templating.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "object", - "required": ["variables"], - "properties": { - "variables": { "type": "object" } - } -} |