Code

grpc plugin: Add the "ds_names" field to the ValueList message.
authorFlorian Forster <octo@collectd.org>
Fri, 29 Jul 2016 09:35:32 +0000 (11:35 +0200)
committerFlorian Forster <octo@collectd.org>
Tue, 2 Aug 2016 14:56:58 +0000 (16:56 +0200)
proto/types.proto
src/grpc.cc

index 5d82a5b9add09cd5a090d52a7f3fb168682c288f..623dad8f862a22a87cb96dad24e42437a8bdd8f3 100644 (file)
@@ -53,4 +53,6 @@ message ValueList {
        google.protobuf.Duration interval = 3;
 
        Identifier identifier = 4;
+
+       repeated string ds_names = 5;
 }
index 905e403b1ffb9473cf22d7b8108a422ee585c473..5c8fa159a3ddd7a2b9111d7cb0c8e322c9db1d37 100644 (file)
@@ -190,6 +190,9 @@ static grpc::Status marshal_value_list(const value_list_t *vl, collectd::types::
                                return grpc::Status(grpc::StatusCode::INTERNAL,
                                                grpc::string("unknown value type"));
                }
+
+               auto name = msg->add_ds_names();
+               name->assign(ds->ds[i].name);
        }
 
        return grpc::Status::OK;