aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-11 15:38:36 +0100
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-03-11 16:57:21 +0100
commit4bfd437e8827cee36ae501dd83bd774a59239abd (patch)
treebd04b77768c188abbdd2633068fccfafa46bb9c0 /sonar-ws
parent4f8b663b1c61ad831d7cdca20ad3efdcba1cae8e (diff)
downloadsonarqube-4bfd437e8827cee36ae501dd83bd774a59239abd.tar.gz
sonarqube-4bfd437e8827cee36ae501dd83bd774a59239abd.zip
SONAR-7196 WS api/measures/component_tree supports sorting by period variation
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/measure/ComponentTreeWsRequest.java11
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/measure/MeasuresWsParameters.java1
2 files changed, 12 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/measure/ComponentTreeWsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/measure/ComponentTreeWsRequest.java
index 0d3864e8e29..9194be603f6 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/measure/ComponentTreeWsRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/measure/ComponentTreeWsRequest.java
@@ -34,6 +34,7 @@ public class ComponentTreeWsRequest {
private List<String> sort;
private Boolean asc;
private String metricSort;
+ private Integer metricPeriodSort;
private List<String> metricKeys;
private Integer page;
private Integer pageSize;
@@ -157,4 +158,14 @@ public class ComponentTreeWsRequest {
this.pageSize = pageSize;
return this;
}
+
+ @CheckForNull
+ public Integer getMetricPeriodSort() {
+ return metricPeriodSort;
+ }
+
+ public ComponentTreeWsRequest setMetricPeriodSort(@Nullable Integer metricPeriodSort) {
+ this.metricPeriodSort = metricPeriodSort;
+ return this;
+ }
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/measure/MeasuresWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/measure/MeasuresWsParameters.java
index 5874c4ab8e0..4aca69b797e 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/measure/MeasuresWsParameters.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/measure/MeasuresWsParameters.java
@@ -38,6 +38,7 @@ public class MeasuresWsParameters {
public static final String PARAM_QUALIFIERS = "qualifiers";
public static final String PARAM_METRIC_KEYS = "metricKeys";
public static final String PARAM_METRIC_SORT = "metricSort";
+ public static final String PARAM_METRIC_PERIOD_SORT = "metricPeriodSort";
public static final String PARAM_ADDITIONAL_FIELDS = "additionalFields";
public static final String PARAM_COMPONENT_ID = "componentId";
public static final String PARAM_COMPONENT_KEY = "componentKey";