-
Notifications
You must be signed in to change notification settings - Fork 251
Expand file tree
/
Copy pathquery.pb.go
More file actions
4398 lines (3841 loc) · 140 KB
/
Copy pathquery.pb.go
File metadata and controls
4398 lines (3841 loc) · 140 KB
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.36.9
// protoc (unknown)
// source: parca/query/v1alpha1/query.proto
package queryv1alpha1
import (
v1alpha11 "github.com/parca-dev/parca/gen/proto/go/parca/metastore/v1alpha1"
v1alpha1 "github.com/parca-dev/parca/gen/proto/go/parca/profilestore/v1alpha1"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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)
)
// Mode specifies the type of diff
type ProfileDiffSelection_Mode int32
const (
// MODE_SINGLE_UNSPECIFIED default unspecified
ProfileDiffSelection_MODE_SINGLE_UNSPECIFIED ProfileDiffSelection_Mode = 0
// MODE_MERGE merge profile
ProfileDiffSelection_MODE_MERGE ProfileDiffSelection_Mode = 1
)
// Enum value maps for ProfileDiffSelection_Mode.
var (
ProfileDiffSelection_Mode_name = map[int32]string{
0: "MODE_SINGLE_UNSPECIFIED",
1: "MODE_MERGE",
}
ProfileDiffSelection_Mode_value = map[string]int32{
"MODE_SINGLE_UNSPECIFIED": 0,
"MODE_MERGE": 1,
}
)
func (x ProfileDiffSelection_Mode) Enum() *ProfileDiffSelection_Mode {
p := new(ProfileDiffSelection_Mode)
*p = x
return p
}
func (x ProfileDiffSelection_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ProfileDiffSelection_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_parca_query_v1alpha1_query_proto_enumTypes[0].Descriptor()
}
func (ProfileDiffSelection_Mode) Type() protoreflect.EnumType {
return &file_parca_query_v1alpha1_query_proto_enumTypes[0]
}
func (x ProfileDiffSelection_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ProfileDiffSelection_Mode.Descriptor instead.
func (ProfileDiffSelection_Mode) EnumDescriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{10, 0}
}
// Mode is the type of query request
type QueryRequest_Mode int32
const (
// MODE_SINGLE_UNSPECIFIED query unspecified
QueryRequest_MODE_SINGLE_UNSPECIFIED QueryRequest_Mode = 0
// MODE_DIFF is a diff query
QueryRequest_MODE_DIFF QueryRequest_Mode = 1
// MODE_MERGE is a merge query
QueryRequest_MODE_MERGE QueryRequest_Mode = 2
)
// Enum value maps for QueryRequest_Mode.
var (
QueryRequest_Mode_name = map[int32]string{
0: "MODE_SINGLE_UNSPECIFIED",
1: "MODE_DIFF",
2: "MODE_MERGE",
}
QueryRequest_Mode_value = map[string]int32{
"MODE_SINGLE_UNSPECIFIED": 0,
"MODE_DIFF": 1,
"MODE_MERGE": 2,
}
)
func (x QueryRequest_Mode) Enum() *QueryRequest_Mode {
p := new(QueryRequest_Mode)
*p = x
return p
}
func (x QueryRequest_Mode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QueryRequest_Mode) Descriptor() protoreflect.EnumDescriptor {
return file_parca_query_v1alpha1_query_proto_enumTypes[1].Descriptor()
}
func (QueryRequest_Mode) Type() protoreflect.EnumType {
return &file_parca_query_v1alpha1_query_proto_enumTypes[1]
}
func (x QueryRequest_Mode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use QueryRequest_Mode.Descriptor instead.
func (QueryRequest_Mode) EnumDescriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{11, 0}
}
// ReportType is the type of report to return
type QueryRequest_ReportType int32
const (
// REPORT_TYPE_FLAMEGRAPH_UNSPECIFIED unspecified
//
// Deprecated: Marked as deprecated in parca/query/v1alpha1/query.proto.
QueryRequest_REPORT_TYPE_FLAMEGRAPH_UNSPECIFIED QueryRequest_ReportType = 0
// REPORT_TYPE_PPROF unspecified
QueryRequest_REPORT_TYPE_PPROF QueryRequest_ReportType = 1
// REPORT_TYPE_TOP unspecified
QueryRequest_REPORT_TYPE_TOP QueryRequest_ReportType = 2
// REPORT_TYPE_CALLGRAPH unspecified
QueryRequest_REPORT_TYPE_CALLGRAPH QueryRequest_ReportType = 3
// REPORT_TYPE_FLAMEGRAPH_TABLE unspecified
QueryRequest_REPORT_TYPE_FLAMEGRAPH_TABLE QueryRequest_ReportType = 4
// REPORT_TYPE_FLAMEGRAPH_ARROW unspecified
QueryRequest_REPORT_TYPE_FLAMEGRAPH_ARROW QueryRequest_ReportType = 5
// REPORT_TYPE_SOURCE contains source code annotated with profiling information
QueryRequest_REPORT_TYPE_SOURCE QueryRequest_ReportType = 6
// REPORT_TYPE_TABLE_ARROW unspecified
QueryRequest_REPORT_TYPE_TABLE_ARROW QueryRequest_ReportType = 7
// REPORT_TYPE_PROFILE_METADATA contains metadata about the profile i.e. binaries, labels
QueryRequest_REPORT_TYPE_PROFILE_METADATA QueryRequest_ReportType = 8
// REPORT_TYPE_FLAMECHART contains flamechart representation of the report
QueryRequest_REPORT_TYPE_FLAMECHART QueryRequest_ReportType = 9
)
// Enum value maps for QueryRequest_ReportType.
var (
QueryRequest_ReportType_name = map[int32]string{
0: "REPORT_TYPE_FLAMEGRAPH_UNSPECIFIED",
1: "REPORT_TYPE_PPROF",
2: "REPORT_TYPE_TOP",
3: "REPORT_TYPE_CALLGRAPH",
4: "REPORT_TYPE_FLAMEGRAPH_TABLE",
5: "REPORT_TYPE_FLAMEGRAPH_ARROW",
6: "REPORT_TYPE_SOURCE",
7: "REPORT_TYPE_TABLE_ARROW",
8: "REPORT_TYPE_PROFILE_METADATA",
9: "REPORT_TYPE_FLAMECHART",
}
QueryRequest_ReportType_value = map[string]int32{
"REPORT_TYPE_FLAMEGRAPH_UNSPECIFIED": 0,
"REPORT_TYPE_PPROF": 1,
"REPORT_TYPE_TOP": 2,
"REPORT_TYPE_CALLGRAPH": 3,
"REPORT_TYPE_FLAMEGRAPH_TABLE": 4,
"REPORT_TYPE_FLAMEGRAPH_ARROW": 5,
"REPORT_TYPE_SOURCE": 6,
"REPORT_TYPE_TABLE_ARROW": 7,
"REPORT_TYPE_PROFILE_METADATA": 8,
"REPORT_TYPE_FLAMECHART": 9,
}
)
func (x QueryRequest_ReportType) Enum() *QueryRequest_ReportType {
p := new(QueryRequest_ReportType)
*p = x
return p
}
func (x QueryRequest_ReportType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (QueryRequest_ReportType) Descriptor() protoreflect.EnumDescriptor {
return file_parca_query_v1alpha1_query_proto_enumTypes[2].Descriptor()
}
func (QueryRequest_ReportType) Type() protoreflect.EnumType {
return &file_parca_query_v1alpha1_query_proto_enumTypes[2]
}
func (x QueryRequest_ReportType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use QueryRequest_ReportType.Descriptor instead.
func (QueryRequest_ReportType) EnumDescriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{11, 1}
}
// ProfileTypesRequest is the request to retrieve the list of available profile types.
type ProfileTypesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProfileTypesRequest) Reset() {
*x = ProfileTypesRequest{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProfileTypesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProfileTypesRequest) ProtoMessage() {}
func (x *ProfileTypesRequest) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProfileTypesRequest.ProtoReflect.Descriptor instead.
func (*ProfileTypesRequest) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{0}
}
// ProfileTypesResponse is the response to retrieve the list of available profile types.
type ProfileTypesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// types is the list of available profile types.
Types []*ProfileType `protobuf:"bytes,1,rep,name=types,proto3" json:"types,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProfileTypesResponse) Reset() {
*x = ProfileTypesResponse{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProfileTypesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProfileTypesResponse) ProtoMessage() {}
func (x *ProfileTypesResponse) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProfileTypesResponse.ProtoReflect.Descriptor instead.
func (*ProfileTypesResponse) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{1}
}
func (x *ProfileTypesResponse) GetTypes() []*ProfileType {
if x != nil {
return x.Types
}
return nil
}
// ProfileType is the type of a profile as well as the units the profile type is available in.
type ProfileType struct {
state protoimpl.MessageState `protogen:"open.v1"`
// name is the name of the profile type.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// sample_type is the type of the samples in the profile.
SampleType string `protobuf:"bytes,2,opt,name=sample_type,json=sampleType,proto3" json:"sample_type,omitempty"`
// sample_unit is the unit of the samples in the profile.
SampleUnit string `protobuf:"bytes,3,opt,name=sample_unit,json=sampleUnit,proto3" json:"sample_unit,omitempty"`
// period_type is the type of the periods in the profile.
PeriodType string `protobuf:"bytes,4,opt,name=period_type,json=periodType,proto3" json:"period_type,omitempty"`
// period_unit is the unit of the periods in the profile.
PeriodUnit string `protobuf:"bytes,5,opt,name=period_unit,json=periodUnit,proto3" json:"period_unit,omitempty"`
// delta describes whether the profile is a delta profile.
Delta bool `protobuf:"varint,6,opt,name=delta,proto3" json:"delta,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProfileType) Reset() {
*x = ProfileType{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProfileType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProfileType) ProtoMessage() {}
func (x *ProfileType) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProfileType.ProtoReflect.Descriptor instead.
func (*ProfileType) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{2}
}
func (x *ProfileType) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ProfileType) GetSampleType() string {
if x != nil {
return x.SampleType
}
return ""
}
func (x *ProfileType) GetSampleUnit() string {
if x != nil {
return x.SampleUnit
}
return ""
}
func (x *ProfileType) GetPeriodType() string {
if x != nil {
return x.PeriodType
}
return ""
}
func (x *ProfileType) GetPeriodUnit() string {
if x != nil {
return x.PeriodUnit
}
return ""
}
func (x *ProfileType) GetDelta() bool {
if x != nil {
return x.Delta
}
return false
}
// QueryRangeRequest is the request for a set of profiles matching a query over a time window
type QueryRangeRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// query is the query string to match profiles against
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
// start is the start of the query time window
Start *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
// end is the end of the query time window
End *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
// limit is the max number of profiles to include in the response
Limit uint32 `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
// step is the duration of each sample returned.
Step *durationpb.Duration `protobuf:"bytes,5,opt,name=step,proto3" json:"step,omitempty"`
// sum_by is the set of labels to sum by
SumBy []string `protobuf:"bytes,6,rep,name=sum_by,json=sumBy,proto3" json:"sum_by,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QueryRangeRequest) Reset() {
*x = QueryRangeRequest{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QueryRangeRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryRangeRequest) ProtoMessage() {}
func (x *QueryRangeRequest) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QueryRangeRequest.ProtoReflect.Descriptor instead.
func (*QueryRangeRequest) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{3}
}
func (x *QueryRangeRequest) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
func (x *QueryRangeRequest) GetStart() *timestamppb.Timestamp {
if x != nil {
return x.Start
}
return nil
}
func (x *QueryRangeRequest) GetEnd() *timestamppb.Timestamp {
if x != nil {
return x.End
}
return nil
}
func (x *QueryRangeRequest) GetLimit() uint32 {
if x != nil {
return x.Limit
}
return 0
}
func (x *QueryRangeRequest) GetStep() *durationpb.Duration {
if x != nil {
return x.Step
}
return nil
}
func (x *QueryRangeRequest) GetSumBy() []string {
if x != nil {
return x.SumBy
}
return nil
}
// QueryRangeResponse is the set of matching profile values
type QueryRangeResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
// series is the set of metrics series that satisfy the query range request
Series []*MetricsSeries `protobuf:"bytes,1,rep,name=series,proto3" json:"series,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QueryRangeResponse) Reset() {
*x = QueryRangeResponse{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QueryRangeResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryRangeResponse) ProtoMessage() {}
func (x *QueryRangeResponse) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use QueryRangeResponse.ProtoReflect.Descriptor instead.
func (*QueryRangeResponse) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{4}
}
func (x *QueryRangeResponse) GetSeries() []*MetricsSeries {
if x != nil {
return x.Series
}
return nil
}
// MetricsSeries is a set of labels and corresponding sample values
type MetricsSeries struct {
state protoimpl.MessageState `protogen:"open.v1"`
// labelset is the set of key value pairs
Labelset *v1alpha1.LabelSet `protobuf:"bytes,1,opt,name=labelset,proto3" json:"labelset,omitempty"`
// samples is the set of top-level cumulative values of the corresponding profiles
Samples []*MetricsSample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples,omitempty"`
// period_type is the value type of profile period
PeriodType *ValueType `protobuf:"bytes,3,opt,name=period_type,json=periodType,proto3" json:"period_type,omitempty"`
// sample_type is the value type of profile sample
SampleType *ValueType `protobuf:"bytes,4,opt,name=sample_type,json=sampleType,proto3" json:"sample_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MetricsSeries) Reset() {
*x = MetricsSeries{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MetricsSeries) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MetricsSeries) ProtoMessage() {}
func (x *MetricsSeries) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MetricsSeries.ProtoReflect.Descriptor instead.
func (*MetricsSeries) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{5}
}
func (x *MetricsSeries) GetLabelset() *v1alpha1.LabelSet {
if x != nil {
return x.Labelset
}
return nil
}
func (x *MetricsSeries) GetSamples() []*MetricsSample {
if x != nil {
return x.Samples
}
return nil
}
func (x *MetricsSeries) GetPeriodType() *ValueType {
if x != nil {
return x.PeriodType
}
return nil
}
func (x *MetricsSeries) GetSampleType() *ValueType {
if x != nil {
return x.SampleType
}
return nil
}
// MetricsSample is a cumulative value and timestamp of a profile
type MetricsSample struct {
state protoimpl.MessageState `protogen:"open.v1"`
// timestamp is the time the profile was ingested
Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// value is the cumulative value for the profile
Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
// value_per_second is the calculated per second average in the steps duration
ValuePerSecond float64 `protobuf:"fixed64,3,opt,name=value_per_second,json=valuePerSecond,proto3" json:"value_per_second,omitempty"`
// duration is the normalized aggregated duration the metric samples has been observed over.
Duration int64 `protobuf:"varint,4,opt,name=duration,proto3" json:"duration,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MetricsSample) Reset() {
*x = MetricsSample{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MetricsSample) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MetricsSample) ProtoMessage() {}
func (x *MetricsSample) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MetricsSample.ProtoReflect.Descriptor instead.
func (*MetricsSample) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{6}
}
func (x *MetricsSample) GetTimestamp() *timestamppb.Timestamp {
if x != nil {
return x.Timestamp
}
return nil
}
func (x *MetricsSample) GetValue() int64 {
if x != nil {
return x.Value
}
return 0
}
func (x *MetricsSample) GetValuePerSecond() float64 {
if x != nil {
return x.ValuePerSecond
}
return 0
}
func (x *MetricsSample) GetDuration() int64 {
if x != nil {
return x.Duration
}
return 0
}
// MergeProfile contains parameters for a merge request
type MergeProfile struct {
state protoimpl.MessageState `protogen:"open.v1"`
// query is the query string to match profiles for merge
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
// start is the beginning of the evaluation time window
Start *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start,proto3" json:"start,omitempty"`
// end is the end of the evaluation time window
End *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end,proto3" json:"end,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MergeProfile) Reset() {
*x = MergeProfile{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MergeProfile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MergeProfile) ProtoMessage() {}
func (x *MergeProfile) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MergeProfile.ProtoReflect.Descriptor instead.
func (*MergeProfile) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{7}
}
func (x *MergeProfile) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
func (x *MergeProfile) GetStart() *timestamppb.Timestamp {
if x != nil {
return x.Start
}
return nil
}
func (x *MergeProfile) GetEnd() *timestamppb.Timestamp {
if x != nil {
return x.End
}
return nil
}
// SingleProfile contains parameters for a single profile query request
type SingleProfile struct {
state protoimpl.MessageState `protogen:"open.v1"`
// time is the point in time to perform the profile request
Time *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"`
// query is the query string to retrieve the profile
Query string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SingleProfile) Reset() {
*x = SingleProfile{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SingleProfile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SingleProfile) ProtoMessage() {}
func (x *SingleProfile) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SingleProfile.ProtoReflect.Descriptor instead.
func (*SingleProfile) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{8}
}
func (x *SingleProfile) GetTime() *timestamppb.Timestamp {
if x != nil {
return x.Time
}
return nil
}
func (x *SingleProfile) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
// DiffProfile contains parameters for a profile diff request
type DiffProfile struct {
state protoimpl.MessageState `protogen:"open.v1"`
// a is the first profile to diff
A *ProfileDiffSelection `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
// b is the second profile to diff
B *ProfileDiffSelection `protobuf:"bytes,2,opt,name=b,proto3" json:"b,omitempty"`
// absolute diffing, by default comparisons are relative
Absolute *bool `protobuf:"varint,3,opt,name=absolute,proto3,oneof" json:"absolute,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *DiffProfile) Reset() {
*x = DiffProfile{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *DiffProfile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DiffProfile) ProtoMessage() {}
func (x *DiffProfile) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DiffProfile.ProtoReflect.Descriptor instead.
func (*DiffProfile) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{9}
}
func (x *DiffProfile) GetA() *ProfileDiffSelection {
if x != nil {
return x.A
}
return nil
}
func (x *DiffProfile) GetB() *ProfileDiffSelection {
if x != nil {
return x.B
}
return nil
}
func (x *DiffProfile) GetAbsolute() bool {
if x != nil && x.Absolute != nil {
return *x.Absolute
}
return false
}
// ProfileDiffSelection contains the parameters of a diff selection
type ProfileDiffSelection struct {
state protoimpl.MessageState `protogen:"open.v1"`
// mode is the selection of the diff mode
Mode ProfileDiffSelection_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=parca.query.v1alpha1.ProfileDiffSelection_Mode" json:"mode,omitempty"`
// options are the available options for a diff selection
//
// Types that are valid to be assigned to Options:
//
// *ProfileDiffSelection_Merge
// *ProfileDiffSelection_Single
Options isProfileDiffSelection_Options `protobuf_oneof:"options"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ProfileDiffSelection) Reset() {
*x = ProfileDiffSelection{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ProfileDiffSelection) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ProfileDiffSelection) ProtoMessage() {}
func (x *ProfileDiffSelection) ProtoReflect() protoreflect.Message {
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ProfileDiffSelection.ProtoReflect.Descriptor instead.
func (*ProfileDiffSelection) Descriptor() ([]byte, []int) {
return file_parca_query_v1alpha1_query_proto_rawDescGZIP(), []int{10}
}
func (x *ProfileDiffSelection) GetMode() ProfileDiffSelection_Mode {
if x != nil {
return x.Mode
}
return ProfileDiffSelection_MODE_SINGLE_UNSPECIFIED
}
func (x *ProfileDiffSelection) GetOptions() isProfileDiffSelection_Options {
if x != nil {
return x.Options
}
return nil
}
func (x *ProfileDiffSelection) GetMerge() *MergeProfile {
if x != nil {
if x, ok := x.Options.(*ProfileDiffSelection_Merge); ok {
return x.Merge
}
}
return nil
}
func (x *ProfileDiffSelection) GetSingle() *SingleProfile {
if x != nil {
if x, ok := x.Options.(*ProfileDiffSelection_Single); ok {
return x.Single
}
}
return nil
}
type isProfileDiffSelection_Options interface {
isProfileDiffSelection_Options()
}
type ProfileDiffSelection_Merge struct {
// merge contains options for a merge request
Merge *MergeProfile `protobuf:"bytes,2,opt,name=merge,proto3,oneof"`
}
type ProfileDiffSelection_Single struct {
// single contains options for a single profile request
Single *SingleProfile `protobuf:"bytes,3,opt,name=single,proto3,oneof"`
}
func (*ProfileDiffSelection_Merge) isProfileDiffSelection_Options() {}
func (*ProfileDiffSelection_Single) isProfileDiffSelection_Options() {}
// QueryRequest is a request for a profile query
type QueryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
// mode indicates the type of query performed
Mode QueryRequest_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=parca.query.v1alpha1.QueryRequest_Mode" json:"mode,omitempty"`
// options are the options corresponding to the mode
//
// Types that are valid to be assigned to Options:
//
// *QueryRequest_Diff
// *QueryRequest_Merge
// *QueryRequest_Single
Options isQueryRequest_Options `protobuf_oneof:"options"`
// report_type is the type of report to return
ReportType QueryRequest_ReportType `protobuf:"varint,5,opt,name=report_type,json=reportType,proto3,enum=parca.query.v1alpha1.QueryRequest_ReportType" json:"report_type,omitempty"`
// filter_query is the query string to filter the profile samples
//
// Deprecated: Marked as deprecated in parca/query/v1alpha1/query.proto.
FilterQuery *string `protobuf:"bytes,6,opt,name=filter_query,json=filterQuery,proto3,oneof" json:"filter_query,omitempty"`
// node_trim_threshold is the threshold % where the nodes with Value less than this will be removed from the report
NodeTrimThreshold *float32 `protobuf:"fixed32,7,opt,name=node_trim_threshold,json=nodeTrimThreshold,proto3,oneof" json:"node_trim_threshold,omitempty"`
// group_by indicates the fields to group by
GroupBy *GroupBy `protobuf:"bytes,8,opt,name=group_by,json=groupBy,proto3,oneof" json:"group_by,omitempty"`
// source information about the source requested, required if source report is requested
SourceReference *SourceReference `protobuf:"bytes,9,opt,name=source_reference,json=sourceReference,proto3,oneof" json:"source_reference,omitempty"`
// which runtime frames to filter out, often interpreter frames like python or ruby are not super useful by default
//
// Deprecated: Marked as deprecated in parca/query/v1alpha1/query.proto.
RuntimeFilter *RuntimeFilter `protobuf:"bytes,10,opt,name=runtime_filter,json=runtimeFilter,proto3,oneof" json:"runtime_filter,omitempty"`
// invert_call_stack inverts the call stacks in the flamegraph
InvertCallStack *bool `protobuf:"varint,11,opt,name=invert_call_stack,json=invertCallStack,proto3,oneof" json:"invert_call_stack,omitempty"`
// a set of filter to apply to the query request
Filter []*Filter `protobuf:"bytes,12,rep,name=filter,proto3" json:"filter,omitempty"`
// sandwich_by_function is a function name to use for sandwich view functionality
SandwichByFunction *string `protobuf:"bytes,13,opt,name=sandwich_by_function,json=sandwichByFunction,proto3,oneof" json:"sandwich_by_function,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QueryRequest) Reset() {
*x = QueryRequest{}
mi := &file_parca_query_v1alpha1_query_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QueryRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryRequest) ProtoMessage() {}