public class SonarRestClient extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ALERT_STATUS_METRIC_NAME |
| Constructor and Description |
|---|
SonarRestClient(String baseUrl,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
Project |
getProject(String projectKey) |
Map<String,String> |
getProjectMetric(String projectKey,
String metric) |
List<Map<String,String>> |
getProjectMetrics(String projectKey,
List<String> metrics) |
ProjectStatus |
getProjectStatus(String projectKey) |
String |
getProjectUrl(String projectKey) |
public static final String ALERT_STATUS_METRIC_NAME
public Map<String,String> getProjectMetric(String projectKey, String metric) throws Exception
Exceptionpublic List<Map<String,String>> getProjectMetrics(String projectKey, List<String> metrics) throws Exception
Exceptionpublic ProjectStatus getProjectStatus(String projectKey) throws Exception
ExceptionCopyright © 2016. All rights reserved.