summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6754150)
raw | patch | inline | side by side (parent: 6754150)
author | Florian Forster <octo@collectd.org> | |
Fri, 29 Jul 2016 09:35:32 +0000 (11:35 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 2 Aug 2016 14:56:58 +0000 (16:56 +0200) |
proto/types.proto | patch | blob | history | |
src/grpc.cc | patch | blob | history |
diff --git a/proto/types.proto b/proto/types.proto
index 5d82a5b9add09cd5a090d52a7f3fb168682c288f..623dad8f862a22a87cb96dad24e42437a8bdd8f3 100644 (file)
--- a/proto/types.proto
+++ b/proto/types.proto
google.protobuf.Duration interval = 3;
Identifier identifier = 4;
+
+ repeated string ds_names = 5;
}
diff --git a/src/grpc.cc b/src/grpc.cc
index 905e403b1ffb9473cf22d7b8108a422ee585c473..5c8fa159a3ddd7a2b9111d7cb0c8e322c9db1d37 100644 (file)
--- 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;