aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws-generator
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2021-07-04 23:26:31 +0200
committersonartech <sonartech@sonarsource.com>2021-07-07 20:03:25 +0000
commit9b66bdef10f17cf8d684ba814bcedfa08b51fdd6 (patch)
treefa99704fea57b57ff70bdf766b0ab57c0c5f2284 /sonar-ws-generator
parent45233feda278bc1e388c19bd9c454943344f6847 (diff)
downloadsonarqube-9b66bdef10f17cf8d684ba814bcedfa08b51fdd6.tar.gz
sonarqube-9b66bdef10f17cf8d684ba814bcedfa08b51fdd6.zip
SONAR-10762 remove Custom Metric UI
Diffstat (limited to 'sonar-ws-generator')
-rw-r--r--sonar-ws-generator/src/main/resources/snapshot-of-api.json168
1 files changed, 1 insertions, 167 deletions
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,106 +2547,9 @@
{
"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.<br /> 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.<br />Ids or keys must be provided. <br />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",
"since": "5.2",
@@ -2709,75 +2612,6 @@
"post": false,
"hasResponseExample": true,
"changelog": []
- },
- {
- "key": "update",
- "description": "Update a custom metric.<br /> 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"
- ]
- }
- ]
}
]
},