github.com/grafana/pyroscope@v1.18.0/pkg/querier/stats/stats.pb.go (about) 1 // SPDX-License-Identifier: AGPL-3.0-only 2 // Provenance-includes-location: https://github.com/cortexproject/cortex/blob/master/pkg/querier/stats/stats.proto 3 // Provenance-includes-license: Apache-2.0 4 // Provenance-includes-copyright: The Cortex Authors. 5 6 // Code generated by protoc-gen-go. DO NOT EDIT. 7 // versions: 8 // protoc-gen-go v1.36.10 9 // protoc (unknown) 10 // source: querier/stats/stats.proto 11 12 package stats 13 14 import ( 15 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 16 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 17 reflect "reflect" 18 sync "sync" 19 unsafe "unsafe" 20 ) 21 22 const ( 23 // Verify that this generated code is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 25 // Verify that runtime/protoimpl is sufficiently up-to-date. 26 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 27 ) 28 29 type Stats struct { 30 state protoimpl.MessageState `protogen:"open.v1"` 31 // The sum of all wall time spent in the querier to execute the query. 32 WallTime int64 `protobuf:"varint,1,opt,name=wall_time,json=wallTime,proto3" json:"wall_time,omitempty"` 33 // The number of series fetched for the query 34 FetchedSeriesCount uint64 `protobuf:"varint,2,opt,name=fetched_series_count,json=fetchedSeriesCount,proto3" json:"fetched_series_count,omitempty"` 35 // The number of bytes of the chunks fetched for the query 36 FetchedChunkBytes uint64 `protobuf:"varint,3,opt,name=fetched_chunk_bytes,json=fetchedChunkBytes,proto3" json:"fetched_chunk_bytes,omitempty"` 37 // The number of chunks fetched for the query 38 FetchedChunksCount uint64 `protobuf:"varint,4,opt,name=fetched_chunks_count,json=fetchedChunksCount,proto3" json:"fetched_chunks_count,omitempty"` 39 // The number of sharded queries executed. 0 if sharding is disabled or the query can't be sharded. 40 ShardedQueries uint32 `protobuf:"varint,5,opt,name=sharded_queries,json=shardedQueries,proto3" json:"sharded_queries,omitempty"` 41 // The number of split partial queries executed. 0 if splitting is disabled or the query can't be split. 42 SplitQueries uint32 `protobuf:"varint,6,opt,name=split_queries,json=splitQueries,proto3" json:"split_queries,omitempty"` 43 // The number of index bytes fetched on the store-gateway for the query 44 FetchedIndexBytes uint64 `protobuf:"varint,7,opt,name=fetched_index_bytes,json=fetchedIndexBytes,proto3" json:"fetched_index_bytes,omitempty"` 45 unknownFields protoimpl.UnknownFields 46 sizeCache protoimpl.SizeCache 47 } 48 49 func (x *Stats) Reset() { 50 *x = Stats{} 51 mi := &file_querier_stats_stats_proto_msgTypes[0] 52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 53 ms.StoreMessageInfo(mi) 54 } 55 56 func (x *Stats) String() string { 57 return protoimpl.X.MessageStringOf(x) 58 } 59 60 func (*Stats) ProtoMessage() {} 61 62 func (x *Stats) ProtoReflect() protoreflect.Message { 63 mi := &file_querier_stats_stats_proto_msgTypes[0] 64 if x != nil { 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 if ms.LoadMessageInfo() == nil { 67 ms.StoreMessageInfo(mi) 68 } 69 return ms 70 } 71 return mi.MessageOf(x) 72 } 73 74 // Deprecated: Use Stats.ProtoReflect.Descriptor instead. 75 func (*Stats) Descriptor() ([]byte, []int) { 76 return file_querier_stats_stats_proto_rawDescGZIP(), []int{0} 77 } 78 79 func (x *Stats) GetWallTime() int64 { 80 if x != nil { 81 return x.WallTime 82 } 83 return 0 84 } 85 86 func (x *Stats) GetFetchedSeriesCount() uint64 { 87 if x != nil { 88 return x.FetchedSeriesCount 89 } 90 return 0 91 } 92 93 func (x *Stats) GetFetchedChunkBytes() uint64 { 94 if x != nil { 95 return x.FetchedChunkBytes 96 } 97 return 0 98 } 99 100 func (x *Stats) GetFetchedChunksCount() uint64 { 101 if x != nil { 102 return x.FetchedChunksCount 103 } 104 return 0 105 } 106 107 func (x *Stats) GetShardedQueries() uint32 { 108 if x != nil { 109 return x.ShardedQueries 110 } 111 return 0 112 } 113 114 func (x *Stats) GetSplitQueries() uint32 { 115 if x != nil { 116 return x.SplitQueries 117 } 118 return 0 119 } 120 121 func (x *Stats) GetFetchedIndexBytes() uint64 { 122 if x != nil { 123 return x.FetchedIndexBytes 124 } 125 return 0 126 } 127 128 var File_querier_stats_stats_proto protoreflect.FileDescriptor 129 130 const file_querier_stats_stats_proto_rawDesc = "" + 131 "\n" + 132 "\x19querier/stats/stats.proto\x12\x05stats\"\xb6\x02\n" + 133 "\x05Stats\x12\x1b\n" + 134 "\twall_time\x18\x01 \x01(\x03R\bwallTime\x120\n" + 135 "\x14fetched_series_count\x18\x02 \x01(\x04R\x12fetchedSeriesCount\x12.\n" + 136 "\x13fetched_chunk_bytes\x18\x03 \x01(\x04R\x11fetchedChunkBytes\x120\n" + 137 "\x14fetched_chunks_count\x18\x04 \x01(\x04R\x12fetchedChunksCount\x12'\n" + 138 "\x0fsharded_queries\x18\x05 \x01(\rR\x0eshardedQueries\x12#\n" + 139 "\rsplit_queries\x18\x06 \x01(\rR\fsplitQueries\x12.\n" + 140 "\x13fetched_index_bytes\x18\a \x01(\x04R\x11fetchedIndexBytesB{\n" + 141 "\tcom.statsB\n" + 142 "StatsProtoP\x01Z.github.com/grafana/pyroscope/pkg/querier/stats\xa2\x02\x03SXX\xaa\x02\x05Stats\xca\x02\x05Stats\xe2\x02\x11Stats\\GPBMetadata\xea\x02\x05Statsb\x06proto3" 143 144 var ( 145 file_querier_stats_stats_proto_rawDescOnce sync.Once 146 file_querier_stats_stats_proto_rawDescData []byte 147 ) 148 149 func file_querier_stats_stats_proto_rawDescGZIP() []byte { 150 file_querier_stats_stats_proto_rawDescOnce.Do(func() { 151 file_querier_stats_stats_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_querier_stats_stats_proto_rawDesc), len(file_querier_stats_stats_proto_rawDesc))) 152 }) 153 return file_querier_stats_stats_proto_rawDescData 154 } 155 156 var file_querier_stats_stats_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 157 var file_querier_stats_stats_proto_goTypes = []any{ 158 (*Stats)(nil), // 0: stats.Stats 159 } 160 var file_querier_stats_stats_proto_depIdxs = []int32{ 161 0, // [0:0] is the sub-list for method output_type 162 0, // [0:0] is the sub-list for method input_type 163 0, // [0:0] is the sub-list for extension type_name 164 0, // [0:0] is the sub-list for extension extendee 165 0, // [0:0] is the sub-list for field type_name 166 } 167 168 func init() { file_querier_stats_stats_proto_init() } 169 func file_querier_stats_stats_proto_init() { 170 if File_querier_stats_stats_proto != nil { 171 return 172 } 173 type x struct{} 174 out := protoimpl.TypeBuilder{ 175 File: protoimpl.DescBuilder{ 176 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 177 RawDescriptor: unsafe.Slice(unsafe.StringData(file_querier_stats_stats_proto_rawDesc), len(file_querier_stats_stats_proto_rawDesc)), 178 NumEnums: 0, 179 NumMessages: 1, 180 NumExtensions: 0, 181 NumServices: 0, 182 }, 183 GoTypes: file_querier_stats_stats_proto_goTypes, 184 DependencyIndexes: file_querier_stats_stats_proto_depIdxs, 185 MessageInfos: file_querier_stats_stats_proto_msgTypes, 186 }.Build() 187 File_querier_stats_stats_proto = out.File 188 file_querier_stats_stats_proto_goTypes = nil 189 file_querier_stats_stats_proto_depIdxs = nil 190 }