aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws
diff options
context:
space:
mode:
authorJacek <jacek.poreda@sonarsource.com>2019-10-22 13:39:33 -0500
committerSonarTech <sonartech@sonarsource.com>2019-10-23 20:21:04 +0200
commite7e6956074d6d7ce5d6f8323af89ea876a79ef2c (patch)
treedd15c5125829c211c3584491d326ee171971b1ee /sonar-ws
parentc7a8da830b3c080e6c6234a462b9fac3a04c4363 (diff)
downloadsonarqube-e7e6956074d6d7ce5d6f8323af89ea876a79ef2c.tar.gz
sonarqube-e7e6956074d6d7ce5d6f8323af89ea876a79ef2c.zip
SONAR-11604 - api/measures/component move 'periods' response field to 'period'
- api/measures/component and api/measures/component_tree move 'periods' response field to 'period'
Diffstat (limited to 'sonar-ws')
-rw-r--r--sonar-ws/src/main/protobuf/ws-measures.proto8
1 files changed, 8 insertions, 0 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-measures.proto b/sonar-ws/src/main/protobuf/ws-measures.proto
index 0385751c43b..17d7c0c866c 100644
--- a/sonar-ws/src/main/protobuf/ws-measures.proto
+++ b/sonar-ws/src/main/protobuf/ws-measures.proto
@@ -32,14 +32,18 @@ message ComponentTreeWsResponse {
optional Component baseComponent = 2;
repeated Component components = 3;
optional Metrics metrics = 4;
+ //deprecated since 8.1
optional Periods periods = 5;
+ optional Period period = 6;
}
// WS api/measures/component
message ComponentWsResponse {
optional Component component = 1;
optional Metrics metrics = 2;
+ //deprecated since 8.1
optional Periods periods = 3;
+ optional Period period = 4;
}
// WS api/measures/search
@@ -80,6 +84,7 @@ message Component {
}
message Period {
+ //deprecated since 8.1
optional int32 index = 1;
optional string mode = 2;
optional string date = 3;
@@ -97,9 +102,11 @@ message Metrics {
message Measure {
optional string metric = 1;
optional string value = 2;
+ //deprecated since 8.1
optional PeriodsValue periods = 3;
optional string component = 4;
optional bool bestValue = 5;
+ optional PeriodValue period = 6;
}
message PeriodsValue {
@@ -107,6 +114,7 @@ message PeriodsValue {
}
message PeriodValue {
+ //deprecated since 8.1
optional int32 index = 1;
optional string value = 2;
optional bool bestValue = 3;