diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-09-30 14:16:45 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-09-30 14:17:25 +0200 |
commit | 7bc5f6946250e336f1c61e607f5314b68f29d828 (patch) | |
tree | 1317f7d8a5cb892d22984f4e5b8bdd7b295ebc6e /sonar-ws | |
parent | 130e8c7671f2d32977c81aa3ede4cbe885da7be3 (diff) | |
download | sonarqube-7bc5f6946250e336f1c61e607f5314b68f29d828.tar.gz sonarqube-7bc5f6946250e336f1c61e607f5314b68f29d828.zip |
SONAR-8120 WS measures/search flatten the response
Diffstat (limited to 'sonar-ws')
-rw-r--r-- | sonar-ws/src/main/protobuf/ws-measures.proto | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/sonar-ws/src/main/protobuf/ws-measures.proto b/sonar-ws/src/main/protobuf/ws-measures.proto index b29ffdf8c12..7034be2dd3a 100644 --- a/sonar-ws/src/main/protobuf/ws-measures.proto +++ b/sonar-ws/src/main/protobuf/ws-measures.proto @@ -44,16 +44,23 @@ message ComponentWsResponse { // WS api/measures/search message SearchWsResponse { - repeated Component components = 1; + repeated Measure measures = 1; + repeated Component components = 2; + + message Component { + optional string id = 1; + optional string key = 2; + optional string name = 3; + } } message Component { optional string id = 1; optional string key = 2; - optional string refId = 3; - optional string refKey = 4; - optional string projectId = 5; - optional string name = 6; + optional string name = 3; + optional string refId = 4; + optional string refKey = 5; + optional string projectId = 6; optional string description = 7; optional string qualifier = 8; optional string path = 9; @@ -78,8 +85,9 @@ message Metrics { message Measure { optional string metric = 1; - optional string value = 2; - optional PeriodsValue periods = 3; + optional string component = 2; + optional string value = 3; + optional PeriodsValue periods = 4; } message PeriodsValue { |