// The arguments to DispatchValues.
message DispatchValuesRequest {
- collectd.types.ValueList values = 1;
+ collectd.types.ValueList value_list = 1;
}
// The response from DispatchValues.
// The response from QueryValues.
message QueryValuesReply {
- repeated collectd.types.ValueList values = 1;
+ repeated collectd.types.ValueList value_lists = 1;
}
}
message ValueList {
- repeated Value value = 1;
+ repeated Value values = 1;
google.protobuf.Timestamp time = 2;
google.protobuf.Duration interval = 3;
msg->set_allocated_interval(new google::protobuf::Duration(d));
for (size_t i = 0; i < vl->values_len; ++i) {
- auto v = msg->add_value();
+ auto v = msg->add_values();
switch (ds->ds[i].type) {
case DS_TYPE_COUNTER:
v->set_counter(vl->values[i].counter);
size_t values_len = 0;
status = grpc::Status::OK;
- for (auto v : msg.value()) {
+ for (auto v : msg.values()) {
value_t *val = (value_t *)realloc(values, (values_len + 1) * sizeof(*values));
if (!val) {
status = grpc::Status(grpc::StatusCode::RESOURCE_EXHAUSTED,
DispatchValuesRequest request, DispatchValuesReply *reply)
{
value_list_t vl = VALUE_LIST_INIT;
- auto status = unmarshal_value_list(request.values(), &vl);
+ auto status = unmarshal_value_list(request.value_list(), &vl);
if (!status.ok())
return status;
break;
}
- auto vl = reply->add_values();
+ auto vl = reply->add_value_lists();
status = marshal_value_list(&res, vl);
free(res.values);
if (!status.ok())