projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
grpc plugin: Implement the ListValues() RPC.
[collectd.git]
/
proto
/
collectd.proto
diff --git
a/proto/collectd.proto
b/proto/collectd.proto
index
84db755
..
ba60793
100644
(file)
--- a/
proto/collectd.proto
+++ b/
proto/collectd.proto
@@
-27,10
+27,14
@@
syntax = "proto3";
package collectd;
import "types.proto";
package collectd;
import "types.proto";
+import "google/protobuf/timestamp.proto";
service Collectd {
// Dispatch collected values to collectd.
rpc DispatchValues(DispatchValuesRequest) returns (DispatchValuesReply);
service Collectd {
// Dispatch collected values to collectd.
rpc DispatchValues(DispatchValuesRequest) returns (DispatchValuesReply);
+
+ // Retrieve a list of all values available in collectd's value cache.
+ rpc ListValues(ListValuesRequest) returns (ListValuesReply);
}
// The arguments to DispatchValues.
}
// The arguments to DispatchValues.
@@
-41,3
+45,17
@@
message DispatchValuesRequest {
// The response from DispatchValues.
message DispatchValuesReply {
}
// The response from DispatchValues.
message DispatchValuesReply {
}
+
+// The arguments to ListValues.
+message ListValuesRequest {
+}
+
+// The response from ListValues.
+message ListValuesReply {
+ message Value {
+ string name = 1;
+ google.protobuf.Timestamp time = 2;
+ }
+
+ repeated Value value = 1;
+}