github.com/m3db/m3@v1.5.1-0.20231129193456-75a402aa583b/src/metrics/generated/proto/metricpb/metadata.proto (about) 1 // Copyright (c) 2018 Uber Technologies, Inc. 2 // 3 // Permission is hereby granted, free of charge, to any person obtaining a copy 4 // of this software and associated documentation files (the "Software"), to deal 5 // in the Software without restriction, including without limitation the rights 6 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 // copies of the Software, and to permit persons to whom the Software is 8 // furnished to do so, subject to the following conditions: 9 // 10 // The above copyright notice and this permission notice shall be included in 11 // all copies or substantial portions of the Software. 12 // 13 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 // THE SOFTWARE. 20 21 syntax = "proto3"; 22 23 option go_package = "github.com/m3db/m3/src/metrics/generated/proto/metricpb"; 24 25 package metricpb; 26 27 import "github.com/gogo/protobuf/gogoproto/gogo.proto"; 28 import "github.com/m3db/m3/src/metrics/generated/proto/aggregationpb/aggregation.proto"; 29 import "github.com/m3db/m3/src/metrics/generated/proto/policypb/policy.proto"; 30 import "github.com/m3db/m3/src/metrics/generated/proto/pipelinepb/pipeline.proto"; 31 32 message PipelineMetadata { 33 // A custom Unmarshal function exists in custom_unmarshal.go to allow reusing slices. 34 option (gogoproto.unmarshaler) = false; 35 aggregationpb.AggregationID aggregation_id = 1 [(gogoproto.nullable) = false]; 36 repeated policypb.StoragePolicy storage_policies = 2 [(gogoproto.nullable) = false]; 37 pipelinepb.AppliedPipeline pipeline = 3 [(gogoproto.nullable) = false]; 38 policypb.DropPolicy drop_policy = 4; 39 bool resend_enabled = 5; 40 } 41 42 message Metadata { 43 // A custom Unmarshal function exists in custom_unmarshal.go to allow reusing slices. 44 option (gogoproto.unmarshaler) = false; 45 repeated PipelineMetadata pipelines = 1 [(gogoproto.nullable) = false]; 46 } 47 48 message StagedMetadata { 49 int64 cutover_nanos = 1; 50 bool tombstoned = 2; 51 Metadata metadata = 3 [(gogoproto.nullable) = false]; 52 } 53 54 message StagedMetadatas { 55 // A custom Unmarshal function exists in custom_unmarshal.go to allow reusing slices. 56 option (gogoproto.unmarshaler) = false; 57 repeated StagedMetadata metadatas = 1 [(gogoproto.nullable) = false]; 58 } 59 60 message ForwardMetadata { 61 aggregationpb.AggregationID aggregation_id = 1 [(gogoproto.nullable) = false]; 62 policypb.StoragePolicy storage_policy = 2 [(gogoproto.nullable) = false]; 63 pipelinepb.AppliedPipeline pipeline = 3 [(gogoproto.nullable) = false]; 64 uint32 source_id = 4; 65 int32 num_forwarded_times = 5; 66 bool resend_enabled = 6; 67 } 68 69 message TimedMetadata { 70 aggregationpb.AggregationID aggregation_id = 1 [(gogoproto.nullable) = false]; 71 policypb.StoragePolicy storage_policy = 2 [(gogoproto.nullable) = false]; 72 }