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 5d82a5b..623dad8 100644 (file)
@@ -53,4 +53,6 @@ message ValueList {
        google.protobuf.Duration interval = 3;
 
        Identifier identifier = 4;
+
+       repeated string ds_names = 5;
 }
index 905e403..5c8fa15 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;