X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=proto%2Fcollectd.proto;h=608fcbb1657e1476d5ca705e18b8c43abe1c54af;hp=ba60793b66f1e1e564c1a23918f828fa2c72f050;hb=5aabca01574c7ab85d4dd85aa35e41f4297007d4;hpb=677a95a9e4d0adf7ebd2beb3820e5ef1116c32cf diff --git a/proto/collectd.proto b/proto/collectd.proto index ba60793b..608fcbb1 100644 --- a/proto/collectd.proto +++ b/proto/collectd.proto @@ -1,5 +1,5 @@ // collectd - proto/collectd.proto -// Copyright (C) 2015 Sebastian Harl +// Copyright (C) 2015-2016 Sebastian Harl // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), @@ -33,8 +33,8 @@ 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); + // Query a list of values available from collectd's value cache. + rpc QueryValues(QueryValuesRequest) returns (QueryValuesReply); } // The arguments to DispatchValues. @@ -46,16 +46,15 @@ message DispatchValuesRequest { message DispatchValuesReply { } -// The arguments to ListValues. -message ListValuesRequest { +// 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; } -// The response from ListValues. -message ListValuesReply { - message Value { - string name = 1; - google.protobuf.Timestamp time = 2; - } - - repeated Value value = 1; +// The response from QueryValues. +message QueryValuesReply { + repeated collectd.types.ValueList values = 1; }