syntax = "proto3";

package com.centreon.broker;

message Point {
  int64 ctime = 1;
  double value = 2;
  int32 status = 3;
}

message Metric {
  int32 value_type = 1;
  uint64 metric_id = 2;
}

message Rebuild {
  oneof type {
    uint64 index_id = 1;
    Metric metric = 2;
  }
  uint32 interval = 3;
  uint32 length = 4;
  repeated Point data = 5;
}
