diff options
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java | 12 | ||||
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-ce.proto | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java index effd68204df..aa49783c8cc 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/ce/CeService.java @@ -29,6 +29,7 @@ import org.sonarqube.ws.client.WsConnector; import org.sonarqube.ws.Ce.ActivityResponse; import org.sonarqube.ws.Ce.ActivityStatusWsResponse; import org.sonarqube.ws.Ce.ComponentResponse; +import org.sonarqube.ws.Ce.InfoWsResponse; import org.sonarqube.ws.Ce.SubmitResponse; import org.sonarqube.ws.Ce.TaskResponse; import org.sonarqube.ws.Ce.TaskTypesWsResponse; @@ -127,6 +128,17 @@ public class CeService extends BaseService { } /** + * This is a GET request. + * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/ce/info">Further information about this action online (including a response example)</a> + * @since 7.2 + */ + public InfoWsResponse info() { + return call( + new GetRequest(path("info")), + InfoWsResponse.parser()); + } + + /** * * This is part of the internal API. * This is a POST request. diff --git a/sonar-ws/src/main/protobuf/ws-ce.proto b/sonar-ws/src/main/protobuf/ws-ce.proto index 5787a326e5e..b52038250c0 100644 --- a/sonar-ws/src/main/protobuf/ws-ce.proto +++ b/sonar-ws/src/main/protobuf/ws-ce.proto @@ -57,6 +57,12 @@ message ComponentResponse { optional Task current = 2; } +// GET api/ce/info +message InfoWsResponse { + optional bool workersPaused = 1; + optional bool workersPauseRequested = 2; +} + // GET api/ce/task_types message TaskTypesWsResponse { repeated string taskTypes = 1; |