diff options
Diffstat (limited to 'server/sonar-webserver-webapi')
-rw-r--r-- | server/sonar-webserver-webapi/src/main/java/org/sonar/server/monitoring/MetricsAction.java | 7 |
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); |