X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=proto%2Fcollectd.proto;h=5134dbfdc15f037c27a36335be176dbd55063ce1;hb=1bdfcf9791729310f75857d0e002c40ef659a89b;hp=ba60793b66f1e1e564c1a23918f828fa2c72f050;hpb=1bdd4bf92c0e54efe40b372cf738527d04f90152;p=collectd.git diff --git a/proto/collectd.proto b/proto/collectd.proto index ba60793b..5134dbfd 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"), @@ -27,14 +27,13 @@ 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); + // Query a list of values available from collectd's value cache. + rpc QueryValues(QueryValuesRequest) returns (QueryValuesReply); } // The arguments to DispatchValues. @@ -46,16 +45,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; }