github.com/cloudwan/edgelq-sdk@v1.15.4/monitoring/proto/v3/recovery_store_sharding_info.proto (about) 1 syntax = "proto3"; 2 3 package ntt.monitoring.v3; 4 5 import "google/api/resource.proto"; 6 import "google/protobuf/duration.proto"; 7 import "google/protobuf/timestamp.proto"; 8 import "goten-sdk/types/meta.proto"; 9 10 option go_package = "github.com/cloudwan/edgelq-sdk/monitoring/resources/v3/recovery_store_sharding_info;recovery_store_sharding_info"; 11 option java_multiple_files = true; 12 option java_outer_classname = "RecoveryStoreShardingInfoProto"; 13 option java_package = "com.ntt.monitoring.pb.v3"; 14 15 // RecoveryStoreShardingInfo Resource 16 message RecoveryStoreShardingInfo { 17 option (google.api.resource) = { 18 type : "monitoring.edgelq.com/RecoveryStoreShardingInfo" 19 pattern : "regions/{region}/recoveryStoreShardingInfos/" 20 "{recovery_store_sharding_info}" 21 }; 22 23 // Name of RecoveryStoreShardingInfo 24 // When creating a new instance, this field is optional and if not provided, 25 // it will be generated automatically. Last ID segment must conform to the 26 // following regex: [a-zA-Z0-9_.-]{1,128} 27 string name = 1; 28 29 // Period during which this sharding spec is valid. 30 ValidityPeriod validity_period = 2; 31 32 // Sharding spec for given validity period. 33 ShardingSpec spec = 3; 34 35 // metadata 36 goten.types.Meta metadata = 4; 37 38 // Validity period specifies for which period of time this sharding spec is 39 // valid. 40 message ValidityPeriod { 41 // Start time of validity period. 42 google.protobuf.Timestamp start_time = 1; 43 44 // End time of validity period. 45 google.protobuf.Timestamp end_time = 2; 46 } 47 48 // Sharding spec defines how time series points is divided across two 49 // dimensions: key (shards_count) and time (ts_blob_period). 50 message ShardingSpec { 51 // Defines period of time series points in a single blob. 52 google.protobuf.Duration ts_blob_period = 1; 53 54 // Number of shards (by key) in given shard period 55 uint32 shards_count = 2; 56 } 57 }