telemetry.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.34.2
  4. // protoc v5.29.3
  5. // source: telemetry.proto
  6. package proto
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. // TelemetryData represents cluster-level telemetry information
  20. type TelemetryData struct {
  21. state protoimpl.MessageState
  22. sizeCache protoimpl.SizeCache
  23. unknownFields protoimpl.UnknownFields
  24. // Unique cluster identifier (generated in-memory)
  25. ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"`
  26. // SeaweedFS version
  27. Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  28. // Operating system (e.g., "linux/amd64")
  29. Os string `protobuf:"bytes,3,opt,name=os,proto3" json:"os,omitempty"`
  30. // Number of volume servers in the cluster
  31. VolumeServerCount int32 `protobuf:"varint,6,opt,name=volume_server_count,json=volumeServerCount,proto3" json:"volume_server_count,omitempty"`
  32. // Total disk usage across all volume servers (in bytes)
  33. TotalDiskBytes uint64 `protobuf:"varint,7,opt,name=total_disk_bytes,json=totalDiskBytes,proto3" json:"total_disk_bytes,omitempty"`
  34. // Total number of volumes in the cluster
  35. TotalVolumeCount int32 `protobuf:"varint,8,opt,name=total_volume_count,json=totalVolumeCount,proto3" json:"total_volume_count,omitempty"`
  36. // Number of filer servers in the cluster
  37. FilerCount int32 `protobuf:"varint,9,opt,name=filer_count,json=filerCount,proto3" json:"filer_count,omitempty"`
  38. // Number of broker servers in the cluster
  39. BrokerCount int32 `protobuf:"varint,10,opt,name=broker_count,json=brokerCount,proto3" json:"broker_count,omitempty"`
  40. // Unix timestamp when the data was collected
  41. Timestamp int64 `protobuf:"varint,11,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
  42. }
  43. func (x *TelemetryData) Reset() {
  44. *x = TelemetryData{}
  45. if protoimpl.UnsafeEnabled {
  46. mi := &file_telemetry_proto_msgTypes[0]
  47. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  48. ms.StoreMessageInfo(mi)
  49. }
  50. }
  51. func (x *TelemetryData) String() string {
  52. return protoimpl.X.MessageStringOf(x)
  53. }
  54. func (*TelemetryData) ProtoMessage() {}
  55. func (x *TelemetryData) ProtoReflect() protoreflect.Message {
  56. mi := &file_telemetry_proto_msgTypes[0]
  57. if protoimpl.UnsafeEnabled && x != nil {
  58. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  59. if ms.LoadMessageInfo() == nil {
  60. ms.StoreMessageInfo(mi)
  61. }
  62. return ms
  63. }
  64. return mi.MessageOf(x)
  65. }
  66. // Deprecated: Use TelemetryData.ProtoReflect.Descriptor instead.
  67. func (*TelemetryData) Descriptor() ([]byte, []int) {
  68. return file_telemetry_proto_rawDescGZIP(), []int{0}
  69. }
  70. func (x *TelemetryData) GetClusterId() string {
  71. if x != nil {
  72. return x.ClusterId
  73. }
  74. return ""
  75. }
  76. func (x *TelemetryData) GetVersion() string {
  77. if x != nil {
  78. return x.Version
  79. }
  80. return ""
  81. }
  82. func (x *TelemetryData) GetOs() string {
  83. if x != nil {
  84. return x.Os
  85. }
  86. return ""
  87. }
  88. func (x *TelemetryData) GetVolumeServerCount() int32 {
  89. if x != nil {
  90. return x.VolumeServerCount
  91. }
  92. return 0
  93. }
  94. func (x *TelemetryData) GetTotalDiskBytes() uint64 {
  95. if x != nil {
  96. return x.TotalDiskBytes
  97. }
  98. return 0
  99. }
  100. func (x *TelemetryData) GetTotalVolumeCount() int32 {
  101. if x != nil {
  102. return x.TotalVolumeCount
  103. }
  104. return 0
  105. }
  106. func (x *TelemetryData) GetFilerCount() int32 {
  107. if x != nil {
  108. return x.FilerCount
  109. }
  110. return 0
  111. }
  112. func (x *TelemetryData) GetBrokerCount() int32 {
  113. if x != nil {
  114. return x.BrokerCount
  115. }
  116. return 0
  117. }
  118. func (x *TelemetryData) GetTimestamp() int64 {
  119. if x != nil {
  120. return x.Timestamp
  121. }
  122. return 0
  123. }
  124. // TelemetryRequest is sent from SeaweedFS clusters to the telemetry server
  125. type TelemetryRequest struct {
  126. state protoimpl.MessageState
  127. sizeCache protoimpl.SizeCache
  128. unknownFields protoimpl.UnknownFields
  129. Data *TelemetryData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  130. }
  131. func (x *TelemetryRequest) Reset() {
  132. *x = TelemetryRequest{}
  133. if protoimpl.UnsafeEnabled {
  134. mi := &file_telemetry_proto_msgTypes[1]
  135. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  136. ms.StoreMessageInfo(mi)
  137. }
  138. }
  139. func (x *TelemetryRequest) String() string {
  140. return protoimpl.X.MessageStringOf(x)
  141. }
  142. func (*TelemetryRequest) ProtoMessage() {}
  143. func (x *TelemetryRequest) ProtoReflect() protoreflect.Message {
  144. mi := &file_telemetry_proto_msgTypes[1]
  145. if protoimpl.UnsafeEnabled && x != nil {
  146. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  147. if ms.LoadMessageInfo() == nil {
  148. ms.StoreMessageInfo(mi)
  149. }
  150. return ms
  151. }
  152. return mi.MessageOf(x)
  153. }
  154. // Deprecated: Use TelemetryRequest.ProtoReflect.Descriptor instead.
  155. func (*TelemetryRequest) Descriptor() ([]byte, []int) {
  156. return file_telemetry_proto_rawDescGZIP(), []int{1}
  157. }
  158. func (x *TelemetryRequest) GetData() *TelemetryData {
  159. if x != nil {
  160. return x.Data
  161. }
  162. return nil
  163. }
  164. // TelemetryResponse is returned by the telemetry server
  165. type TelemetryResponse struct {
  166. state protoimpl.MessageState
  167. sizeCache protoimpl.SizeCache
  168. unknownFields protoimpl.UnknownFields
  169. Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
  170. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  171. }
  172. func (x *TelemetryResponse) Reset() {
  173. *x = TelemetryResponse{}
  174. if protoimpl.UnsafeEnabled {
  175. mi := &file_telemetry_proto_msgTypes[2]
  176. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  177. ms.StoreMessageInfo(mi)
  178. }
  179. }
  180. func (x *TelemetryResponse) String() string {
  181. return protoimpl.X.MessageStringOf(x)
  182. }
  183. func (*TelemetryResponse) ProtoMessage() {}
  184. func (x *TelemetryResponse) ProtoReflect() protoreflect.Message {
  185. mi := &file_telemetry_proto_msgTypes[2]
  186. if protoimpl.UnsafeEnabled && x != nil {
  187. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  188. if ms.LoadMessageInfo() == nil {
  189. ms.StoreMessageInfo(mi)
  190. }
  191. return ms
  192. }
  193. return mi.MessageOf(x)
  194. }
  195. // Deprecated: Use TelemetryResponse.ProtoReflect.Descriptor instead.
  196. func (*TelemetryResponse) Descriptor() ([]byte, []int) {
  197. return file_telemetry_proto_rawDescGZIP(), []int{2}
  198. }
  199. func (x *TelemetryResponse) GetSuccess() bool {
  200. if x != nil {
  201. return x.Success
  202. }
  203. return false
  204. }
  205. func (x *TelemetryResponse) GetMessage() string {
  206. if x != nil {
  207. return x.Message
  208. }
  209. return ""
  210. }
  211. var File_telemetry_proto protoreflect.FileDescriptor
  212. var file_telemetry_proto_rawDesc = []byte{
  213. 0x0a, 0x0f, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  214. 0x6f, 0x12, 0x09, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x22, 0xce, 0x02, 0x0a,
  215. 0x0d, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x12, 0x1d,
  216. 0x0a, 0x0a, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
  217. 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x49, 0x64, 0x12, 0x18, 0x0a,
  218. 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
  219. 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x6f, 0x73, 0x18, 0x03, 0x20,
  220. 0x01, 0x28, 0x09, 0x52, 0x02, 0x6f, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x76, 0x6f, 0x6c, 0x75, 0x6d,
  221. 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06,
  222. 0x20, 0x01, 0x28, 0x05, 0x52, 0x11, 0x76, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x53, 0x65, 0x72, 0x76,
  223. 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x28, 0x0a, 0x10, 0x74, 0x6f, 0x74, 0x61, 0x6c,
  224. 0x5f, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28,
  225. 0x04, 0x52, 0x0e, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x44, 0x69, 0x73, 0x6b, 0x42, 0x79, 0x74, 0x65,
  226. 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x76, 0x6f, 0x6c, 0x75, 0x6d,
  227. 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x10, 0x74,
  228. 0x6f, 0x74, 0x61, 0x6c, 0x56, 0x6f, 0x6c, 0x75, 0x6d, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12,
  229. 0x1f, 0x0a, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09,
  230. 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74,
  231. 0x12, 0x21, 0x0a, 0x0c, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74,
  232. 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x62, 0x72, 0x6f, 0x6b, 0x65, 0x72, 0x43, 0x6f,
  233. 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
  234. 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
  235. 0x70, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x4a, 0x04, 0x08, 0x05, 0x10, 0x06, 0x22, 0x40, 0x0a,
  236. 0x10, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
  237. 0x74, 0x12, 0x2c, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
  238. 0x18, 0x2e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x54, 0x65, 0x6c, 0x65,
  239. 0x6d, 0x65, 0x74, 0x72, 0x79, 0x44, 0x61, 0x74, 0x61, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22,
  240. 0x47, 0x0a, 0x11, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70,
  241. 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18,
  242. 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x18,
  243. 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
  244. 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68,
  245. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73,
  246. 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x6d,
  247. 0x65, 0x74, 0x72, 0x79, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
  248. 0x6f, 0x33,
  249. }
  250. var (
  251. file_telemetry_proto_rawDescOnce sync.Once
  252. file_telemetry_proto_rawDescData = file_telemetry_proto_rawDesc
  253. )
  254. func file_telemetry_proto_rawDescGZIP() []byte {
  255. file_telemetry_proto_rawDescOnce.Do(func() {
  256. file_telemetry_proto_rawDescData = protoimpl.X.CompressGZIP(file_telemetry_proto_rawDescData)
  257. })
  258. return file_telemetry_proto_rawDescData
  259. }
  260. var file_telemetry_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  261. var file_telemetry_proto_goTypes = []any{
  262. (*TelemetryData)(nil), // 0: telemetry.TelemetryData
  263. (*TelemetryRequest)(nil), // 1: telemetry.TelemetryRequest
  264. (*TelemetryResponse)(nil), // 2: telemetry.TelemetryResponse
  265. }
  266. var file_telemetry_proto_depIdxs = []int32{
  267. 0, // 0: telemetry.TelemetryRequest.data:type_name -> telemetry.TelemetryData
  268. 1, // [1:1] is the sub-list for method output_type
  269. 1, // [1:1] is the sub-list for method input_type
  270. 1, // [1:1] is the sub-list for extension type_name
  271. 1, // [1:1] is the sub-list for extension extendee
  272. 0, // [0:1] is the sub-list for field type_name
  273. }
  274. func init() { file_telemetry_proto_init() }
  275. func file_telemetry_proto_init() {
  276. if File_telemetry_proto != nil {
  277. return
  278. }
  279. if !protoimpl.UnsafeEnabled {
  280. file_telemetry_proto_msgTypes[0].Exporter = func(v any, i int) any {
  281. switch v := v.(*TelemetryData); i {
  282. case 0:
  283. return &v.state
  284. case 1:
  285. return &v.sizeCache
  286. case 2:
  287. return &v.unknownFields
  288. default:
  289. return nil
  290. }
  291. }
  292. file_telemetry_proto_msgTypes[1].Exporter = func(v any, i int) any {
  293. switch v := v.(*TelemetryRequest); i {
  294. case 0:
  295. return &v.state
  296. case 1:
  297. return &v.sizeCache
  298. case 2:
  299. return &v.unknownFields
  300. default:
  301. return nil
  302. }
  303. }
  304. file_telemetry_proto_msgTypes[2].Exporter = func(v any, i int) any {
  305. switch v := v.(*TelemetryResponse); i {
  306. case 0:
  307. return &v.state
  308. case 1:
  309. return &v.sizeCache
  310. case 2:
  311. return &v.unknownFields
  312. default:
  313. return nil
  314. }
  315. }
  316. }
  317. type x struct{}
  318. out := protoimpl.TypeBuilder{
  319. File: protoimpl.DescBuilder{
  320. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  321. RawDescriptor: file_telemetry_proto_rawDesc,
  322. NumEnums: 0,
  323. NumMessages: 3,
  324. NumExtensions: 0,
  325. NumServices: 0,
  326. },
  327. GoTypes: file_telemetry_proto_goTypes,
  328. DependencyIndexes: file_telemetry_proto_depIdxs,
  329. MessageInfos: file_telemetry_proto_msgTypes,
  330. }.Build()
  331. File_telemetry_proto = out.File
  332. file_telemetry_proto_rawDesc = nil
  333. file_telemetry_proto_goTypes = nil
  334. file_telemetry_proto_depIdxs = nil
  335. }