Skip to content
Snippets Groups Projects
Commit 8447b88f authored by Sree Kuchibhotla's avatar Sree Kuchibhotla
Browse files

Address code review comments

parent be095411
No related branches found
No related tags found
No related merge requests found
// Copyright 2015, Google Inc. // Copyright 2015, Google Inc.
// All rights reserved. // All rights reserved.
// //
...@@ -28,12 +27,17 @@ ...@@ -28,12 +27,17 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// An integration test service that covers all the method signature permutations // Contains the definitions for a metrics service and the type of metrics
// of unary/streaming requests/responses. // exposed by the service.
//
// Currently, 'Gauge' (i.e a metric that represents the measured value of
// something at an instant of time) is the only metric type supported by the
// service.
syntax = "proto3"; syntax = "proto3";
package grpc.testing; package grpc.testing;
// Reponse message containing the gauge name and value
message GaugeResponse { message GaugeResponse {
string name = 1; string name = 1;
oneof value { oneof value {
...@@ -43,11 +47,18 @@ message GaugeResponse { ...@@ -43,11 +47,18 @@ message GaugeResponse {
} }
} }
message GaugeRequest { string name = 1; } // Request message containing the gauge name
message GaugeRequest {
string name = 1;
}
message EmptyMessage {} message EmptyMessage {}
service MetricsService { service MetricsService {
// Returns the values of all the gauges that are currently being maintained by
// the service
rpc GetAllGauges(EmptyMessage) returns (stream GaugeResponse); rpc GetAllGauges(EmptyMessage) returns (stream GaugeResponse);
// Returns the value of one gauge
rpc GetGauge(GaugeRequest) returns (GaugeResponse); rpc GetGauge(GaugeRequest) returns (GaugeResponse);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment