summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 57cea0b)
raw | patch | inline | side by side (parent: 57cea0b)
author | Florian Forster <octo@collectd.org> | |
Wed, 10 Aug 2016 12:46:24 +0000 (14:46 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 10 Aug 2016 13:02:46 +0000 (15:02 +0200) |
proto/collectd.proto | patch | blob | history | |
proto/types.proto | patch | blob | history |
diff --git a/proto/collectd.proto b/proto/collectd.proto
index 0ff6e771342db0834ae7f7d04a7ee5f8249dc659..37df5b662a12e4209ce35999323048a8b64a48e6 100644 (file)
--- a/proto/collectd.proto
+++ b/proto/collectd.proto
import "types.proto";
service Collectd {
- // 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 (stream QueryValuesResponse);
// DispatchValues sends a stream of ValueLists to the server.
- rpc DispatchValues(stream DispatchValuesRequest) returns (DispatchValuesResponse);
+ 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 DispatchValuesResponse {
-}
+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 QueryValuesResponse {
- collectd.types.ValueList value_list = 1;
-}
+message QueryValuesResponse { collectd.types.ValueList value_list = 1; }
diff --git a/proto/types.proto b/proto/types.proto
index ae8e6e9ac99860acbd674d12a70a9ef7f5a90d6b..952c5418d1f5143bc4513545ba5cfa1dc9c32aec 100644 (file)
--- a/proto/types.proto
+++ b/proto/types.proto
import "google/protobuf/timestamp.proto";
message Identifier {
- string host = 1;
- string plugin = 2;
- string plugin_instance = 3;
- string type = 4;
- string type_instance = 5;
+ string host = 1;
+ string plugin = 2;
+ string plugin_instance = 3;
+ string type = 4;
+ string type_instance = 5;
}
message Value {
- oneof value {
- uint64 counter = 1;
- double gauge = 2;
- int64 derive = 3;
- uint64 absolute = 4;
- };
+ oneof value {
+ uint64 counter = 1;
+ double gauge = 2;
+ int64 derive = 3;
+ uint64 absolute = 4;
+ };
}
message ValueList {
- repeated Value values = 1;
+ repeated Value values = 1;
- google.protobuf.Timestamp time = 2;
- google.protobuf.Duration interval = 3;
+ google.protobuf.Timestamp time = 2;
+ google.protobuf.Duration interval = 3;
- Identifier identifier = 4;
+ Identifier identifier = 4;
- repeated string ds_names = 5;
+ repeated string ds_names = 5;
}