aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-webapi
diff options
context:
space:
mode:
authorMatteo Mara <matteo.mara@sonarsource.com>2023-01-06 17:11:40 +0100
committersonartech <sonartech@sonarsource.com>2023-01-10 20:03:01 +0000
commit8868a5ff310c74f44f2c94e46ba31065017f50b4 (patch)
tree510cd149dfc10810e2eadf311e0305eefe3cec9a /server/sonar-webserver-webapi
parent18f91c25d369917f3a99841f6bb31b94a02467fc (diff)
downloadsonarqube-8868a5ff310c74f44f2c94e46ba31065017f50b4.tar.gz
sonarqube-8868a5ff310c74f44f2c94e46ba31065017f50b4.zip
[NO-JIRA] Remove reported code smells about text blocks
Diffstat (limited to 'server/sonar-webserver-webapi')
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/monitoring/MetricsAction.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/monitoring/MetricsAction.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/monitoring/MetricsAction.java
index f64e8bb2c9c..2467b944575 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/monitoring/MetricsAction.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/monitoring/MetricsAction.java
@@ -38,9 +38,10 @@ public class MetricsAction extends SafeModeMonitoringMetricAction {
public void define(WebService.NewController context) {
context.createAction("metrics")
.setSince("9.3")
- .setDescription("Return monitoring metrics in Prometheus format. \n" +
- "Support content type 'text/plain' (default) and 'application/openmetrics-text'.\n" +
- "this endpoint can be access using a Bearer token, that needs to be defined in sonar.properties with the 'sonar.web.systemPasscode' key.")
+ .setDescription("""
+ Return monitoring metrics in Prometheus format.\s
+ Support content type 'text/plain' (default) and 'application/openmetrics-text'.
+ this endpoint can be access using a Bearer token, that needs to be defined in sonar.properties with the 'sonar.web.systemPasscode' key.""")
.setResponseExample(getClass().getResource("monitoring-metrics.txt"))
.setHandler(this);