import "mapreduce/yt/interface/protos/extension.proto";

package NRTYServer;

message TShardResource {
    required string Name = 1 [(NYT.column_name) = "name"];
    required uint64 ShardMin = 2 [(NYT.column_name) = "shard_min"];
    required uint64 ShardMax = 3 [(NYT.column_name) = "shard_max"];
    required uint64 Timestamp = 4 [(NYT.column_name) = "timestamp"];

    optional string Torrent = 5 [(NYT.column_name) = "torrent"];
    optional string Rsync = 6 [(NYT.column_name) = "rsync"];
    optional string YTIndexTable = 7 [(NYT.column_name) = "yt_index_table"];
    optional uint64 TimestampEx = 8 [(NYT.column_name) = "timestamp_ext"];
    optional uint64 SegmentId = 9 [(NYT.column_name) = "segment_id"];
    optional string Stat = 10 [(NYT.column_name) = "stat"];
}

message TShards {
    repeated TShardResource Shard = 1;
    optional string Comment = 2;
}
