grpc plugin: Add the "ds_names" field to the ValueList message.
[collectd.git] / proto / types.proto
index 7f3d329..623dad8 100644 (file)
@@ -1,5 +1,5 @@
 // collectd - proto/types.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"),
@@ -29,6 +29,14 @@ package collectd.types;
 import "google/protobuf/duration.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;
+}
+
 message Value {
        oneof value {
                uint64 counter = 1;
@@ -39,14 +47,12 @@ message Value {
 }
 
 message ValueList {
-       repeated Value value = 1;
+       repeated Value values = 1;
 
        google.protobuf.Timestamp time = 2;
        google.protobuf.Duration interval = 3;
 
-       string host = 4;
-       string plugin = 5;
-       string plugin_instance = 6;
-       string type = 7;
-       string type_instance = 8;
+       Identifier identifier = 4;
+
+       repeated string ds_names = 5;
 }