1# Generated by the protocol buffer compiler. DO NOT EDIT! 2# Source: src/proto/grpc/testing/metrics.proto for package 'grpc.testing' 3# Original file comments: 4# Copyright 2015-2016 gRPC authors. 5# 6# Licensed under the Apache License, Version 2.0 (the "License"); 7# you may not use this file except in compliance with the License. 8# You may obtain a copy of the License at 9# 10# http://www.apache.org/licenses/LICENSE-2.0 11# 12# Unless required by applicable law or agreed to in writing, software 13# distributed under the License is distributed on an "AS IS" BASIS, 14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15# See the License for the specific language governing permissions and 16# limitations under the License. 17# 18# Contains the definitions for a metrics service and the type of metrics 19# exposed by the service. 20# 21# Currently, 'Gauge' (i.e a metric that represents the measured value of 22# something at an instant of time) is the only metric type supported by the 23# service. 24 25require 'grpc' 26require 'src/proto/grpc/testing/metrics_pb' 27 28module Grpc 29 module Testing 30 module MetricsService 31 class Service 32 33 include GRPC::GenericService 34 35 self.marshal_class_method = :encode 36 self.unmarshal_class_method = :decode 37 self.service_name = 'grpc.testing.MetricsService' 38 39 # Returns the values of all the gauges that are currently being maintained by 40 # the service 41 rpc :GetAllGauges, EmptyMessage, stream(GaugeResponse) 42 # Returns the value of one gauge 43 rpc :GetGauge, GaugeRequest, GaugeResponse 44 end 45 46 Stub = Service.rpc_stub_class 47 end 48 end 49end 50