X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=proto%2Fcollectd.proto;h=ba60793b66f1e1e564c1a23918f828fa2c72f050;hb=1bdd4bf92c0e54efe40b372cf738527d04f90152;hp=84db755bf91bf5a08e79ad026bccc2ca5687c55c;hpb=c6ff2298206ce78a6f2c7772f3bf413af8d44311;p=collectd.git diff --git a/proto/collectd.proto b/proto/collectd.proto index 84db755b..ba60793b 100644 --- a/proto/collectd.proto +++ b/proto/collectd.proto @@ -27,10 +27,14 @@ syntax = "proto3"; package collectd; import "types.proto"; +import "google/protobuf/timestamp.proto"; 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. @@ -41,3 +45,17 @@ message DispatchValuesRequest { // 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; +}