X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=proto%2Fcollectd.proto;h=37df5b662a12e4209ce35999323048a8b64a48e6;hb=ceb89aec8be5d0632275f65cdaccf05bcb26fc56;hp=4bc3501345321dce50c27bd0090c59e9155d9aaa;hpb=6754150119aaced4f7d39c2641c61d47aa84a436;p=collectd.git diff --git a/proto/collectd.proto b/proto/collectd.proto index 4bc35013..37df5b66 100644 --- a/proto/collectd.proto +++ b/proto/collectd.proto @@ -25,35 +25,32 @@ syntax = "proto3"; package collectd; +option go_package = "collectd.org/rpc/proto"; import "types.proto"; service Collectd { - // Dispatch collected values to collectd. - rpc DispatchValues(DispatchValuesRequest) returns (DispatchValuesReply); + // Query a list of values available from collectd's value cache. + rpc QueryValues(QueryValuesRequest) returns (stream QueryValuesResponse); - // Query a list of values available from collectd's value cache. - rpc QueryValues(QueryValuesRequest) returns (QueryValuesReply); + // DispatchValues sends a stream of ValueLists to the server. + rpc DispatchValues(stream DispatchValuesRequest) + returns (DispatchValuesResponse); } // The arguments to DispatchValues. -message DispatchValuesRequest { - collectd.types.ValueList value_list = 1; -} +message DispatchValuesRequest { collectd.types.ValueList value_list = 1; } // The response from DispatchValues. -message DispatchValuesReply { -} +message DispatchValuesResponse {} // The arguments to QueryValues. message QueryValuesRequest { - // Query by the fields of the identifier. Only return values matching the - // specified shell wildcard patterns (see fnmatch(3)). Use '*' to match - // any value. - collectd.types.Identifier identifier = 1; + // Query by the fields of the identifier. Only return values matching the + // specified shell wildcard patterns (see fnmatch(3)). Use '*' to match + // any value. + collectd.types.Identifier identifier = 1; } // The response from QueryValues. -message QueryValuesReply { - repeated collectd.types.ValueList value_lists = 1; -} +message QueryValuesResponse { collectd.types.ValueList value_list = 1; }