From: Florian Forster Date: Fri, 29 Jul 2016 09:35:32 +0000 (+0200) Subject: grpc plugin: Add the "ds_names" field to the ValueList message. X-Git-Tag: collectd-5.6.0~54^2~9 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=00b1f1de1f40059a26d75964408be3a13738c3d8;p=collectd.git grpc plugin: Add the "ds_names" field to the ValueList message. --- diff --git a/proto/types.proto b/proto/types.proto index 5d82a5b9..623dad8f 100644 --- a/proto/types.proto +++ b/proto/types.proto @@ -53,4 +53,6 @@ message ValueList { google.protobuf.Duration interval = 3; Identifier identifier = 4; + + repeated string ds_names = 5; } diff --git a/src/grpc.cc b/src/grpc.cc index 905e403b..5c8fa159 100644 --- a/src/grpc.cc +++ b/src/grpc.cc @@ -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;