syntax = "proto3";

package logproto;

import "google/protobuf/timestamp.proto";
import "google.golang.org/grpc/health/grpc_health_v1/health.proto";

service Aggregator {
  rpc Push(WriteRequest) returns (WriteResponse) {};
  rpc Check(grpc.health.v1.HealthCheckRequest) returns (grpc.health.v1.HealthCheckResponse);
}

message WriteRequest {
  repeated Stream streams = 1;
}

message WriteResponse {
}

message Stream {
  string labels = 1;
  repeated Entry entries = 2;
}

message Entry {
  google.protobuf.Timestamp timestamp = 1;
  string line = 2;
}
