From 9b66bdef10f17cf8d684ba814bcedfa08b51fdd6 Mon Sep 17 00:00:00 2001 From: Zipeng WU Date: Sun, 4 Jul 2021 23:26:31 +0200 Subject: SONAR-10762 remove Custom Metric UI --- .../src/main/resources/snapshot-of-api.json | 168 +-------------------- 1 file changed, 1 insertion(+), 167 deletions(-) (limited to 'sonar-ws-generator/src') diff --git a/sonar-ws-generator/src/main/resources/snapshot-of-api.json b/sonar-ws-generator/src/main/resources/snapshot-of-api.json index 2a036eb3a85..adf89686b3b 100644 --- a/sonar-ws-generator/src/main/resources/snapshot-of-api.json +++ b/sonar-ws-generator/src/main/resources/snapshot-of-api.json @@ -2547,105 +2547,8 @@ { "path": "api/metrics", "since": "2.6", - "description": "Get information on automatic metrics, and manage custom metrics. See also api/custom_measures.", + "description": "Get information on automatic metrics, and manage metrics.", "actions": [ - { - "key": "create", - "description": "Create custom metric.
Requires 'Administer System' permission.", - "since": "5.2", - "internal": false, - "post": true, - "hasResponseExample": false, - "changelog": [], - "params": [ - { - "key": "description", - "description": "Description", - "required": false, - "internal": false, - "exampleValue": "Size of the team", - "maximumLength": 255 - }, - { - "key": "domain", - "description": "Domain", - "required": false, - "internal": false, - "exampleValue": "Tests", - "maximumLength": 64 - }, - { - "key": "key", - "description": "Key", - "required": true, - "internal": false, - "exampleValue": "team_size", - "maximumLength": 64 - }, - { - "key": "name", - "description": "Name", - "required": true, - "internal": false, - "exampleValue": "Team Size", - "maximumLength": 64 - }, - { - "key": "type", - "description": "Metric type key", - "required": true, - "internal": false, - "exampleValue": "INT", - "possibleValues": [ - "INT", - "FLOAT", - "PERCENT", - "BOOL", - "STRING", - "MILLISEC", - "DATA", - "LEVEL", - "DISTRIB", - "RATING", - "WORK_DUR" - ] - } - ] - }, - { - "key": "delete", - "description": "Delete metrics and associated measures. Delete only custom metrics.
Ids or keys must be provided.
Requires 'Administer System' permission.", - "since": "5.2", - "internal": false, - "post": true, - "hasResponseExample": false, - "changelog": [], - "params": [ - { - "key": "ids", - "description": "Metrics ids to delete.", - "required": false, - "internal": false, - "exampleValue": "5, 23, 42" - }, - { - "key": "keys", - "description": "Metrics keys to delete", - "required": false, - "internal": false, - "exampleValue": "team_size, business_value" - } - ] - }, - { - "key": "domains", - "description": "List all custom metric domains.", - "since": "5.2", - "internal": false, - "post": false, - "hasResponseExample": true, - "changelog": [] - }, { "key": "search", "description": "Search for metrics", @@ -2709,75 +2612,6 @@ "post": false, "hasResponseExample": true, "changelog": [] - }, - { - "key": "update", - "description": "Update a custom metric.
Requires 'Administer System' permission.", - "since": "5.2", - "internal": false, - "post": true, - "hasResponseExample": false, - "changelog": [], - "params": [ - { - "key": "description", - "description": "Description", - "required": false, - "internal": false, - "exampleValue": "Size of the team", - "maximumLength": 255 - }, - { - "key": "domain", - "description": "Domain", - "required": false, - "internal": false, - "exampleValue": "Tests", - "maximumLength": 64 - }, - { - "key": "id", - "description": "Id of the custom metric to update", - "required": true, - "internal": false, - "exampleValue": "42" - }, - { - "key": "key", - "description": "Key", - "required": false, - "internal": false, - "exampleValue": "team_size", - "maximumLength": 64 - }, - { - "key": "name", - "description": "Name", - "required": false, - "internal": false, - "maximumLength": 64 - }, - { - "key": "type", - "description": "Metric type key", - "required": false, - "internal": false, - "exampleValue": "INT", - "possibleValues": [ - "INT", - "FLOAT", - "PERCENT", - "BOOL", - "STRING", - "MILLISEC", - "DATA", - "LEVEL", - "DISTRIB", - "RATING", - "WORK_DUR" - ] - } - ] } ] }, -- cgit v1.2.3