-
Notifications
You must be signed in to change notification settings - Fork 169
/
cells-log.pb.go
1348 lines (1195 loc) · 43.9 KB
/
cells-log.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.18.1
// source: cells-log.proto
package log
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Relative links types.
// Note that First is time.Now() and last time.Unix(0).
// We added an unused NONE enum with value 0 to workaround 0 issues between JSON and proto3.
type RelType int32
const (
RelType_NONE RelType = 0
RelType_FIRST RelType = 1
RelType_PREV RelType = 2
RelType_NEXT RelType = 3
RelType_LAST RelType = 4
)
// Enum value maps for RelType.
var (
RelType_name = map[int32]string{
0: "NONE",
1: "FIRST",
2: "PREV",
3: "NEXT",
4: "LAST",
}
RelType_value = map[string]int32{
"NONE": 0,
"FIRST": 1,
"PREV": 2,
"NEXT": 3,
"LAST": 4,
}
)
func (x RelType) Enum() *RelType {
p := new(RelType)
*p = x
return p
}
func (x RelType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (RelType) Descriptor() protoreflect.EnumDescriptor {
return file_cells_log_proto_enumTypes[0].Descriptor()
}
func (RelType) Type() protoreflect.EnumType {
return &file_cells_log_proto_enumTypes[0]
}
func (x RelType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use RelType.Descriptor instead.
func (RelType) EnumDescriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{0}
}
// Output Format
type ListLogRequest_LogFormat int32
const (
ListLogRequest_JSON ListLogRequest_LogFormat = 0
ListLogRequest_CSV ListLogRequest_LogFormat = 1
ListLogRequest_XLSX ListLogRequest_LogFormat = 2
)
// Enum value maps for ListLogRequest_LogFormat.
var (
ListLogRequest_LogFormat_name = map[int32]string{
0: "JSON",
1: "CSV",
2: "XLSX",
}
ListLogRequest_LogFormat_value = map[string]int32{
"JSON": 0,
"CSV": 1,
"XLSX": 2,
}
)
func (x ListLogRequest_LogFormat) Enum() *ListLogRequest_LogFormat {
p := new(ListLogRequest_LogFormat)
*p = x
return p
}
func (x ListLogRequest_LogFormat) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ListLogRequest_LogFormat) Descriptor() protoreflect.EnumDescriptor {
return file_cells_log_proto_enumTypes[1].Descriptor()
}
func (ListLogRequest_LogFormat) Type() protoreflect.EnumType {
return &file_cells_log_proto_enumTypes[1]
}
func (x ListLogRequest_LogFormat) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ListLogRequest_LogFormat.Descriptor instead.
func (ListLogRequest_LogFormat) EnumDescriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{4, 0}
}
type RecorderPutResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *RecorderPutResponse) Reset() {
*x = RecorderPutResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *RecorderPutResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RecorderPutResponse) ProtoMessage() {}
func (x *RecorderPutResponse) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use RecorderPutResponse.ProtoReflect.Descriptor instead.
func (*RecorderPutResponse) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{0}
}
// Log is a generic message format used by the sync service
// to publish log messages to the various log repositories (typically, bleve).
type Log struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Message []byte `protobuf:"bytes,1,opt,name=Message,proto3" json:"Message,omitempty"`
Nano int32 `protobuf:"varint,2,opt,name=Nano,proto3" json:"Nano,omitempty"`
}
func (x *Log) Reset() {
*x = Log{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Log) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Log) ProtoMessage() {}
func (x *Log) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Log.ProtoReflect.Descriptor instead.
func (*Log) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{1}
}
func (x *Log) GetMessage() []byte {
if x != nil {
return x.Message
}
return nil
}
func (x *Log) GetNano() int32 {
if x != nil {
return x.Nano
}
return 0
}
// LogLevelEvent can be broadcasted to broker to change logger level from Info to Debug
// for a specific set of services
type LogLevelEvent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Reset all services to Info level
ResetInfo bool `protobuf:"varint,1,opt,name=ResetInfo,proto3" json:"ResetInfo,omitempty"`
// Set to Debug if true or Info if false
LevelDebug bool `protobuf:"varint,2,opt,name=LevelDebug,proto3" json:"LevelDebug,omitempty"`
// List of services where to apply (if Reset is not set)
Services []string `protobuf:"bytes,3,rep,name=Services,proto3" json:"Services,omitempty"`
}
func (x *LogLevelEvent) Reset() {
*x = LogLevelEvent{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogLevelEvent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogLevelEvent) ProtoMessage() {}
func (x *LogLevelEvent) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogLevelEvent.ProtoReflect.Descriptor instead.
func (*LogLevelEvent) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{2}
}
func (x *LogLevelEvent) GetResetInfo() bool {
if x != nil {
return x.ResetInfo
}
return false
}
func (x *LogLevelEvent) GetLevelDebug() bool {
if x != nil {
return x.LevelDebug
}
return false
}
func (x *LogLevelEvent) GetServices() []string {
if x != nil {
return x.Services
}
return nil
}
// LogMessage is the format used to transmit log messages to clients via the REST API.
type LogMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Generic zap fields
Ts int32 `protobuf:"varint,1,opt,name=Ts,proto3" json:"Ts,omitempty"`
Level string `protobuf:"bytes,2,opt,name=Level,proto3" json:"Level,omitempty"`
Logger string `protobuf:"bytes,3,opt,name=Logger,proto3" json:"Logger,omitempty"`
Msg string `protobuf:"bytes,4,opt,name=Msg,proto3" json:"Msg,omitempty"`
// Pydio specific
MsgId string `protobuf:"bytes,5,opt,name=MsgId,proto3" json:"MsgId,omitempty"`
// User Info
UserName string `protobuf:"bytes,6,opt,name=UserName,proto3" json:"UserName,omitempty"`
UserUuid string `protobuf:"bytes,7,opt,name=UserUuid,proto3" json:"UserUuid,omitempty"`
GroupPath string `protobuf:"bytes,8,opt,name=GroupPath,proto3" json:"GroupPath,omitempty"`
Profile string `protobuf:"bytes,16,opt,name=Profile,proto3" json:"Profile,omitempty"`
RoleUuids []string `protobuf:"bytes,9,rep,name=RoleUuids,proto3" json:"RoleUuids,omitempty"`
// Client info
RemoteAddress string `protobuf:"bytes,10,opt,name=RemoteAddress,proto3" json:"RemoteAddress,omitempty"`
UserAgent string `protobuf:"bytes,11,opt,name=UserAgent,proto3" json:"UserAgent,omitempty"`
HttpProtocol string `protobuf:"bytes,12,opt,name=HttpProtocol,proto3" json:"HttpProtocol,omitempty"`
// Tree Info
NodeUuid string `protobuf:"bytes,13,opt,name=NodeUuid,proto3" json:"NodeUuid,omitempty"`
NodePath string `protobuf:"bytes,14,opt,name=NodePath,proto3" json:"NodePath,omitempty"`
WsUuid string `protobuf:"bytes,15,opt,name=WsUuid,proto3" json:"WsUuid,omitempty"`
WsScope string `protobuf:"bytes,17,opt,name=WsScope,proto3" json:"WsScope,omitempty"`
// Span Info
SpanUuid string `protobuf:"bytes,18,opt,name=SpanUuid,proto3" json:"SpanUuid,omitempty"`
SpanParentUuid string `protobuf:"bytes,19,opt,name=SpanParentUuid,proto3" json:"SpanParentUuid,omitempty"`
SpanRootUuid string `protobuf:"bytes,20,opt,name=SpanRootUuid,proto3" json:"SpanRootUuid,omitempty"`
// High Level Operation Info
OperationUuid string `protobuf:"bytes,21,opt,name=OperationUuid,proto3" json:"OperationUuid,omitempty"`
OperationLabel string `protobuf:"bytes,22,opt,name=OperationLabel,proto3" json:"OperationLabel,omitempty"`
SchedulerJobUuid string `protobuf:"bytes,23,opt,name=SchedulerJobUuid,proto3" json:"SchedulerJobUuid,omitempty"`
SchedulerTaskUuid string `protobuf:"bytes,24,opt,name=SchedulerTaskUuid,proto3" json:"SchedulerTaskUuid,omitempty"`
SchedulerTaskActionPath string `protobuf:"bytes,25,opt,name=SchedulerTaskActionPath,proto3" json:"SchedulerTaskActionPath,omitempty"`
// Other Unkown Fields
JsonZaps string `protobuf:"bytes,26,opt,name=JsonZaps,proto3" json:"JsonZaps,omitempty"`
}
func (x *LogMessage) Reset() {
*x = LogMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LogMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LogMessage) ProtoMessage() {}
func (x *LogMessage) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LogMessage.ProtoReflect.Descriptor instead.
func (*LogMessage) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{3}
}
func (x *LogMessage) GetTs() int32 {
if x != nil {
return x.Ts
}
return 0
}
func (x *LogMessage) GetLevel() string {
if x != nil {
return x.Level
}
return ""
}
func (x *LogMessage) GetLogger() string {
if x != nil {
return x.Logger
}
return ""
}
func (x *LogMessage) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *LogMessage) GetMsgId() string {
if x != nil {
return x.MsgId
}
return ""
}
func (x *LogMessage) GetUserName() string {
if x != nil {
return x.UserName
}
return ""
}
func (x *LogMessage) GetUserUuid() string {
if x != nil {
return x.UserUuid
}
return ""
}
func (x *LogMessage) GetGroupPath() string {
if x != nil {
return x.GroupPath
}
return ""
}
func (x *LogMessage) GetProfile() string {
if x != nil {
return x.Profile
}
return ""
}
func (x *LogMessage) GetRoleUuids() []string {
if x != nil {
return x.RoleUuids
}
return nil
}
func (x *LogMessage) GetRemoteAddress() string {
if x != nil {
return x.RemoteAddress
}
return ""
}
func (x *LogMessage) GetUserAgent() string {
if x != nil {
return x.UserAgent
}
return ""
}
func (x *LogMessage) GetHttpProtocol() string {
if x != nil {
return x.HttpProtocol
}
return ""
}
func (x *LogMessage) GetNodeUuid() string {
if x != nil {
return x.NodeUuid
}
return ""
}
func (x *LogMessage) GetNodePath() string {
if x != nil {
return x.NodePath
}
return ""
}
func (x *LogMessage) GetWsUuid() string {
if x != nil {
return x.WsUuid
}
return ""
}
func (x *LogMessage) GetWsScope() string {
if x != nil {
return x.WsScope
}
return ""
}
func (x *LogMessage) GetSpanUuid() string {
if x != nil {
return x.SpanUuid
}
return ""
}
func (x *LogMessage) GetSpanParentUuid() string {
if x != nil {
return x.SpanParentUuid
}
return ""
}
func (x *LogMessage) GetSpanRootUuid() string {
if x != nil {
return x.SpanRootUuid
}
return ""
}
func (x *LogMessage) GetOperationUuid() string {
if x != nil {
return x.OperationUuid
}
return ""
}
func (x *LogMessage) GetOperationLabel() string {
if x != nil {
return x.OperationLabel
}
return ""
}
func (x *LogMessage) GetSchedulerJobUuid() string {
if x != nil {
return x.SchedulerJobUuid
}
return ""
}
func (x *LogMessage) GetSchedulerTaskUuid() string {
if x != nil {
return x.SchedulerTaskUuid
}
return ""
}
func (x *LogMessage) GetSchedulerTaskActionPath() string {
if x != nil {
return x.SchedulerTaskActionPath
}
return ""
}
func (x *LogMessage) GetJsonZaps() string {
if x != nil {
return x.JsonZaps
}
return ""
}
// ListLogRequest launches a parameterised query in the log repository and streams the results.
type ListLogRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Bleve-type Query stsring
Query string `protobuf:"bytes,1,opt,name=Query,proto3" json:"Query,omitempty"`
// Start at page
Page int32 `protobuf:"varint,2,opt,name=Page,proto3" json:"Page,omitempty"`
// Number of results
Size int32 `protobuf:"varint,3,opt,name=Size,proto3" json:"Size,omitempty"`
Format ListLogRequest_LogFormat `protobuf:"varint,4,opt,name=Format,proto3,enum=log.ListLogRequest_LogFormat" json:"Format,omitempty"`
}
func (x *ListLogRequest) Reset() {
*x = ListLogRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListLogRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListLogRequest) ProtoMessage() {}
func (x *ListLogRequest) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListLogRequest.ProtoReflect.Descriptor instead.
func (*ListLogRequest) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{4}
}
func (x *ListLogRequest) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
func (x *ListLogRequest) GetPage() int32 {
if x != nil {
return x.Page
}
return 0
}
func (x *ListLogRequest) GetSize() int32 {
if x != nil {
return x.Size
}
return 0
}
func (x *ListLogRequest) GetFormat() ListLogRequest_LogFormat {
if x != nil {
return x.Format
}
return ListLogRequest_JSON
}
type ListLogResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LogMessage *LogMessage `protobuf:"bytes,1,opt,name=LogMessage,proto3" json:"LogMessage,omitempty"`
}
func (x *ListLogResponse) Reset() {
*x = ListLogResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListLogResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListLogResponse) ProtoMessage() {}
func (x *ListLogResponse) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ListLogResponse.ProtoReflect.Descriptor instead.
func (*ListLogResponse) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{5}
}
func (x *ListLogResponse) GetLogMessage() *LogMessage {
if x != nil {
return x.LogMessage
}
return nil
}
type DeleteLogsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Deleted int64 `protobuf:"varint,1,opt,name=Deleted,proto3" json:"Deleted,omitempty"`
}
func (x *DeleteLogsResponse) Reset() {
*x = DeleteLogsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteLogsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteLogsResponse) ProtoMessage() {}
func (x *DeleteLogsResponse) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DeleteLogsResponse.ProtoReflect.Descriptor instead.
func (*DeleteLogsResponse) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteLogsResponse) GetDeleted() int64 {
if x != nil {
return x.Deleted
}
return 0
}
// TimeRangeResponse contains either one aggregated result of a facetted request
// OR a time range cursor.
type TimeRangeResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TimeRangeResult *TimeRangeResult `protobuf:"bytes,1,opt,name=TimeRangeResult,proto3" json:"TimeRangeResult,omitempty"`
TimeRangeCursor *TimeRangeCursor `protobuf:"bytes,2,opt,name=TimeRangeCursor,proto3" json:"TimeRangeCursor,omitempty"`
}
func (x *TimeRangeResponse) Reset() {
*x = TimeRangeResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TimeRangeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeRangeResponse) ProtoMessage() {}
func (x *TimeRangeResponse) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TimeRangeResponse.ProtoReflect.Descriptor instead.
func (*TimeRangeResponse) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{7}
}
func (x *TimeRangeResponse) GetTimeRangeResult() *TimeRangeResult {
if x != nil {
return x.TimeRangeResult
}
return nil
}
func (x *TimeRangeResponse) GetTimeRangeCursor() *TimeRangeCursor {
if x != nil {
return x.TimeRangeCursor
}
return nil
}
// TimeRangeResult represents one point of a graph.
type TimeRangeResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// a label for this time range
Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
// begin timestamp
Start int32 `protobuf:"varint,2,opt,name=Start,proto3" json:"Start,omitempty"`
// end timestamp
End int32 `protobuf:"varint,3,opt,name=End,proto3" json:"End,omitempty"`
// nb of occurrences found within this range
Count int32 `protobuf:"varint,4,opt,name=Count,proto3" json:"Count,omitempty"`
// a score between 1 and 100 that gives the relevance of this result:
// if End > now, we ponderate the returned count with the duration of the last time range
// for instance for a hour range if now is 6PM, last count will be
// multiplied by 4/3 and have a relevance of 75.
// Relevance will be almost always equals to 100
Relevance int32 `protobuf:"varint,5,opt,name=Relevance,proto3" json:"Relevance,omitempty"`
}
func (x *TimeRangeResult) Reset() {
*x = TimeRangeResult{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TimeRangeResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeRangeResult) ProtoMessage() {}
func (x *TimeRangeResult) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TimeRangeResult.ProtoReflect.Descriptor instead.
func (*TimeRangeResult) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{8}
}
func (x *TimeRangeResult) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TimeRangeResult) GetStart() int32 {
if x != nil {
return x.Start
}
return 0
}
func (x *TimeRangeResult) GetEnd() int32 {
if x != nil {
return x.End
}
return 0
}
func (x *TimeRangeResult) GetCount() int32 {
if x != nil {
return x.Count
}
return 0
}
func (x *TimeRangeResult) GetRelevance() int32 {
if x != nil {
return x.Relevance
}
return 0
}
// TimeRangeRequest contains the parameter to configure the query to
// retrieve the number of audit events of this type for a given time range
// defined by last timestamp and a range type.
type TimeRangeRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Type of event we are auditing
MsgId string `protobuf:"bytes,1,opt,name=MsgId,proto3" json:"MsgId,omitempty"`
// Known types: H, D, W, M or Y
TimeRangeType string `protobuf:"bytes,2,opt,name=TimeRangeType,proto3" json:"TimeRangeType,omitempty"`
// Upper bound for our request
RefTime int32 `protobuf:"varint,3,opt,name=RefTime,proto3" json:"RefTime,omitempty"`
}
func (x *TimeRangeRequest) Reset() {
*x = TimeRangeRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TimeRangeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeRangeRequest) ProtoMessage() {}
func (x *TimeRangeRequest) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TimeRangeRequest.ProtoReflect.Descriptor instead.
func (*TimeRangeRequest) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{9}
}
func (x *TimeRangeRequest) GetMsgId() string {
if x != nil {
return x.MsgId
}
return ""
}
func (x *TimeRangeRequest) GetTimeRangeType() string {
if x != nil {
return x.TimeRangeType
}
return ""
}
func (x *TimeRangeRequest) GetRefTime() int32 {
if x != nil {
return x.RefTime
}
return 0
}
// Ease implementation of data navigation for a chart.
type TimeRangeCursor struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Rel RelType `protobuf:"varint,1,opt,name=Rel,proto3,enum=log.RelType" json:"Rel,omitempty"`
RefTime int32 `protobuf:"varint,2,opt,name=RefTime,proto3" json:"RefTime,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=Count,proto3" json:"Count,omitempty"`
}
func (x *TimeRangeCursor) Reset() {
*x = TimeRangeCursor{}
if protoimpl.UnsafeEnabled {
mi := &file_cells_log_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TimeRangeCursor) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeRangeCursor) ProtoMessage() {}
func (x *TimeRangeCursor) ProtoReflect() protoreflect.Message {
mi := &file_cells_log_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TimeRangeCursor.ProtoReflect.Descriptor instead.
func (*TimeRangeCursor) Descriptor() ([]byte, []int) {
return file_cells_log_proto_rawDescGZIP(), []int{10}
}
func (x *TimeRangeCursor) GetRel() RelType {
if x != nil {
return x.Rel
}
return RelType_NONE
}
func (x *TimeRangeCursor) GetRefTime() int32 {
if x != nil {
return x.RefTime
}
return 0
}
func (x *TimeRangeCursor) GetCount() int32 {
if x != nil {
return x.Count
}
return 0
}
var File_cells_log_proto protoreflect.FileDescriptor
var file_cells_log_proto_rawDesc = []byte{