github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/pkg/chunk/purger/delete_plan.proto (about) 1 syntax = "proto3"; 2 3 package purgeplan; 4 5 option go_package = "purger"; 6 7 import "github.com/gogo/protobuf/gogoproto/gogo.proto"; 8 import "github.com/cortexproject/cortex/pkg/cortexpb/cortex.proto"; 9 10 option (gogoproto.marshaler_all) = true; 11 option (gogoproto.unmarshaler_all) = true; 12 13 // DeletePlan holds all the chunks that are supposed to be deleted within an interval(usually a day) 14 // This Proto file is used just for storing Delete Plans in proto format. 15 message DeletePlan { 16 Interval plan_interval = 1; 17 repeated ChunksGroup chunks_group = 2 [(gogoproto.nullable) = false]; 18 } 19 20 // ChunksGroup holds ChunkDetails and Labels for a group of chunks which have same series ID 21 message ChunksGroup { 22 repeated cortexpb.LabelPair labels = 1 [(gogoproto.nullable) = false, (gogoproto.customtype) = "github.com/cortexproject/cortex/pkg/cortexpb.LabelAdapter"]; 23 repeated ChunkDetails chunks = 2 [(gogoproto.nullable) = false]; 24 } 25 26 message ChunkDetails { 27 string ID = 1; 28 Interval partially_deleted_interval = 2; 29 } 30 31 message Interval { 32 int64 start_timestamp_ms = 1; 33 int64 end_timestamp_ms = 2; 34 }