Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
8447b88f
Commit
8447b88f
authored
9 years ago
by
Sree Kuchibhotla
Browse files
Options
Downloads
Patches
Plain Diff
Address code review comments
parent
be095411
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/proto/grpc/testing/metrics.proto
+15
-4
15 additions, 4 deletions
src/proto/grpc/testing/metrics.proto
with
15 additions
and
4 deletions
src/proto/grpc/testing/metrics.proto
+
15
−
4
View file @
8447b88f
// 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
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment