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; }
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;
}