forked from open-telemetry/opentelemetry-proto
/
metrics.pb.go
3849 lines (3703 loc) · 105 KB
/
metrics.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-gogo. DO NOT EDIT.
// source: opentelemetry/proto/metrics/v1/metrics.proto
package v1
import (
encoding_binary "encoding/binary"
fmt "fmt"
io "io"
math "math"
math_bits "math/bits"
v11 "github.com/bogdandrutu/opentelemetry-proto/gen/go/common/v1"
v1 "github.com/bogdandrutu/opentelemetry-proto/gen/go/resource/v1"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Type of the metric. It describes how the data is reported.
//
// A gauge is an instantaneous measurement of a value.
//
// A counter/cumulative measurement is a value accumulated over a time
// interval. In a time series, cumulative measurements should have the same
// start time, increasing values, until an event resets the cumulative value
// to zero and sets a new start time for the subsequent points.
type MetricDescriptor_Type int32
const (
// Do not use this default value.
MetricDescriptor_UNSPECIFIED MetricDescriptor_Type = 0
// Integer gauge. The value can go both up and down over time.
// Corresponding values are stored in Int64DataPoint.
MetricDescriptor_GAUGE_INT64 MetricDescriptor_Type = 1
// Floating point gauge. The value can go both up and down over time.
// Corresponding values are stored in DoubleDataPoint.
MetricDescriptor_GAUGE_DOUBLE MetricDescriptor_Type = 2
// Histogram gauge measurement.
// Used in scenarios like a snapshot of time that current items in a queue
// have spent there.
// Corresponding values are stored in HistogramDataPoint. The count and sum of the
// histogram can go both up and down over time. Recorded values are always >= 0.
MetricDescriptor_GAUGE_HISTOGRAM MetricDescriptor_Type = 3
// Integer counter measurement. The value cannot decrease; if value is reset then
// start_time_unix_nano should also be reset.
// Corresponding values are stored in Int64DataPoint.
MetricDescriptor_COUNTER_INT64 MetricDescriptor_Type = 4
// Floating point counter measurement. The value cannot decrease, if
// resets then the start_time_unix_nano should also be reset.
// Recorded values are always >= 0.
// Corresponding values are stored in DoubleDataPoint.
MetricDescriptor_COUNTER_DOUBLE MetricDescriptor_Type = 5
// Histogram cumulative measurement.
// Corresponding values are stored in HistogramDataPoint. The count and sum of the
// histogram cannot decrease; if values are reset then start_time_unix_nano
// should also be reset to the new start timestamp.
MetricDescriptor_CUMULATIVE_HISTOGRAM MetricDescriptor_Type = 6
// Summary value. Some frameworks implemented Histograms as a summary of observations
// (usually things like request durations and response sizes). While it
// also provides a total count of observations and a sum of all observed
// values, it calculates configurable percentiles over a sliding time
// window.
// Corresponding values are stored in SummaryDataPoint.
MetricDescriptor_SUMMARY MetricDescriptor_Type = 7
)
var MetricDescriptor_Type_name = map[int32]string{
0: "UNSPECIFIED",
1: "GAUGE_INT64",
2: "GAUGE_DOUBLE",
3: "GAUGE_HISTOGRAM",
4: "COUNTER_INT64",
5: "COUNTER_DOUBLE",
6: "CUMULATIVE_HISTOGRAM",
7: "SUMMARY",
}
var MetricDescriptor_Type_value = map[string]int32{
"UNSPECIFIED": 0,
"GAUGE_INT64": 1,
"GAUGE_DOUBLE": 2,
"GAUGE_HISTOGRAM": 3,
"COUNTER_INT64": 4,
"COUNTER_DOUBLE": 5,
"CUMULATIVE_HISTOGRAM": 6,
"SUMMARY": 7,
}
func (x MetricDescriptor_Type) String() string {
return proto.EnumName(MetricDescriptor_Type_name, int32(x))
}
func (MetricDescriptor_Type) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{3, 0}
}
// A collection of InstrumentationLibraryMetrics from a Resource.
type ResourceMetrics struct {
// The resource for the metrics in this message.
// If this field is not set then no resource info is known.
Resource *v1.Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"`
// A list of metrics that originate from a resource.
InstrumentationLibraryMetrics []*InstrumentationLibraryMetrics `protobuf:"bytes,2,rep,name=instrumentation_library_metrics,json=instrumentationLibraryMetrics,proto3" json:"instrumentation_library_metrics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ResourceMetrics) Reset() { *m = ResourceMetrics{} }
func (m *ResourceMetrics) String() string { return proto.CompactTextString(m) }
func (*ResourceMetrics) ProtoMessage() {}
func (*ResourceMetrics) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{0}
}
func (m *ResourceMetrics) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *ResourceMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_ResourceMetrics.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *ResourceMetrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_ResourceMetrics.Merge(m, src)
}
func (m *ResourceMetrics) XXX_Size() int {
return m.Size()
}
func (m *ResourceMetrics) XXX_DiscardUnknown() {
xxx_messageInfo_ResourceMetrics.DiscardUnknown(m)
}
var xxx_messageInfo_ResourceMetrics proto.InternalMessageInfo
func (m *ResourceMetrics) GetResource() *v1.Resource {
if m != nil {
return m.Resource
}
return nil
}
func (m *ResourceMetrics) GetInstrumentationLibraryMetrics() []*InstrumentationLibraryMetrics {
if m != nil {
return m.InstrumentationLibraryMetrics
}
return nil
}
// A collection of Metrics produced by an InstrumentationLibrary.
type InstrumentationLibraryMetrics struct {
// The instrumentation library information for the metrics in this message.
// If this field is not set then no library info is known.
InstrumentationLibrary *v11.InstrumentationLibrary `protobuf:"bytes,1,opt,name=instrumentation_library,json=instrumentationLibrary,proto3" json:"instrumentation_library,omitempty"`
// A list of metrics that originate from an instrumentation library.
Metrics []*Metric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InstrumentationLibraryMetrics) Reset() { *m = InstrumentationLibraryMetrics{} }
func (m *InstrumentationLibraryMetrics) String() string { return proto.CompactTextString(m) }
func (*InstrumentationLibraryMetrics) ProtoMessage() {}
func (*InstrumentationLibraryMetrics) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{1}
}
func (m *InstrumentationLibraryMetrics) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *InstrumentationLibraryMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_InstrumentationLibraryMetrics.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *InstrumentationLibraryMetrics) XXX_Merge(src proto.Message) {
xxx_messageInfo_InstrumentationLibraryMetrics.Merge(m, src)
}
func (m *InstrumentationLibraryMetrics) XXX_Size() int {
return m.Size()
}
func (m *InstrumentationLibraryMetrics) XXX_DiscardUnknown() {
xxx_messageInfo_InstrumentationLibraryMetrics.DiscardUnknown(m)
}
var xxx_messageInfo_InstrumentationLibraryMetrics proto.InternalMessageInfo
func (m *InstrumentationLibraryMetrics) GetInstrumentationLibrary() *v11.InstrumentationLibrary {
if m != nil {
return m.InstrumentationLibrary
}
return nil
}
func (m *InstrumentationLibraryMetrics) GetMetrics() []*Metric {
if m != nil {
return m.Metrics
}
return nil
}
// Defines a Metric which has one or more timeseries.
//
// The data model and relation between entities is shown in the diagram below.
//
// - Metric is composed of a MetricDescriptor and a list of data points.
// - MetricDescriptor contains a list of label keys (shown horizontally).
// - Data is a list of DataPoints (shown vertically).
// - DataPoint contains a list of label values and a value.
//
// Metric
// +----------+ +------------------------+
// |descriptor|-------->| MetricDescriptor |
// | | |+-----+-----+ +-----+ |
// | | ||label|label|...|label| |
// | data|--+ ||key1 |key2 | |keyN | |
// +----------+ | |+-----+-----+ +-----+ |
// | +------------------------+
// |
// | +---------------------------+
// | |DataPoint 1 |
// v |+------+------+ +------+ |
// +-----+ ||label |label |...|label | |
// | 1 |-->||value1|value2|...|valueN| |
// +-----+ |+------+------+ +------+ |
// | . | |+-----+ |
// | . | ||value| |
// | . | |+-----+ |
// | . | +---------------------------+
// | . | .
// | . | .
// | . | .
// | . | +---------------------------+
// | . | |DataPoint M |
// +-----+ |+------+------+ +------+ |
// | M |-->||label |label |...|label | |
// +-----+ ||value1|value2|...|valueN| |
// |+------+------+ +------+ |
// |+-----+ |
// ||value| |
// |+-----+ |
// +---------------------------+
//
//-----------------------------------------------------------------------
// DataPoint is a value of specific type corresponding to a given moment in
// time. Each DataPoint is timestamped.
//
// DataPoint is strongly typed: each DataPoint type has a specific Protobuf message
// depending on the value type of the metric and thus there are currently 4 DataPoint
// messages, which correspond to the types of metric values.
type Metric struct {
// metric_descriptor describes the Metric.
MetricDescriptor *MetricDescriptor `protobuf:"bytes,1,opt,name=metric_descriptor,json=metricDescriptor,proto3" json:"metric_descriptor,omitempty"`
// Data is a list of one or more DataPoints for a single metric. Only one of the
// following fields is used for the data, depending on the type of the metric defined
// by MetricDescriptor.type field.
Int64DataPoints []*Int64DataPoint `protobuf:"bytes,2,rep,name=int64_data_points,json=int64DataPoints,proto3" json:"int64_data_points,omitempty"`
DoubleDataPoints []*DoubleDataPoint `protobuf:"bytes,3,rep,name=double_data_points,json=doubleDataPoints,proto3" json:"double_data_points,omitempty"`
HistogramDataPoints []*HistogramDataPoint `protobuf:"bytes,4,rep,name=histogram_data_points,json=histogramDataPoints,proto3" json:"histogram_data_points,omitempty"`
SummaryDataPoints []*SummaryDataPoint `protobuf:"bytes,5,rep,name=summary_data_points,json=summaryDataPoints,proto3" json:"summary_data_points,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Metric) Reset() { *m = Metric{} }
func (m *Metric) String() string { return proto.CompactTextString(m) }
func (*Metric) ProtoMessage() {}
func (*Metric) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{2}
}
func (m *Metric) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Metric) XXX_Merge(src proto.Message) {
xxx_messageInfo_Metric.Merge(m, src)
}
func (m *Metric) XXX_Size() int {
return m.Size()
}
func (m *Metric) XXX_DiscardUnknown() {
xxx_messageInfo_Metric.DiscardUnknown(m)
}
var xxx_messageInfo_Metric proto.InternalMessageInfo
func (m *Metric) GetMetricDescriptor() *MetricDescriptor {
if m != nil {
return m.MetricDescriptor
}
return nil
}
func (m *Metric) GetInt64DataPoints() []*Int64DataPoint {
if m != nil {
return m.Int64DataPoints
}
return nil
}
func (m *Metric) GetDoubleDataPoints() []*DoubleDataPoint {
if m != nil {
return m.DoubleDataPoints
}
return nil
}
func (m *Metric) GetHistogramDataPoints() []*HistogramDataPoint {
if m != nil {
return m.HistogramDataPoints
}
return nil
}
func (m *Metric) GetSummaryDataPoints() []*SummaryDataPoint {
if m != nil {
return m.SummaryDataPoints
}
return nil
}
// Defines a metric type and its schema.
type MetricDescriptor struct {
// name of the metric, including its DNS name prefix. It must be unique.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// description of the metric, which can be used in documentation.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
// unit in which the metric value is reported. Follows the format
// described by http://unitsofmeasure.org/ucum.html.
Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
Type MetricDescriptor_Type `protobuf:"varint,4,opt,name=type,proto3,enum=opentelemetry.proto.metrics.v1.MetricDescriptor_Type" json:"type,omitempty"`
// The set of labels associated with the metric descriptor. Labels in this list apply to
// all data points.
Labels []*v11.StringKeyValue `protobuf:"bytes,5,rep,name=labels,proto3" json:"labels,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MetricDescriptor) Reset() { *m = MetricDescriptor{} }
func (m *MetricDescriptor) String() string { return proto.CompactTextString(m) }
func (*MetricDescriptor) ProtoMessage() {}
func (*MetricDescriptor) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{3}
}
func (m *MetricDescriptor) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *MetricDescriptor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_MetricDescriptor.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *MetricDescriptor) XXX_Merge(src proto.Message) {
xxx_messageInfo_MetricDescriptor.Merge(m, src)
}
func (m *MetricDescriptor) XXX_Size() int {
return m.Size()
}
func (m *MetricDescriptor) XXX_DiscardUnknown() {
xxx_messageInfo_MetricDescriptor.DiscardUnknown(m)
}
var xxx_messageInfo_MetricDescriptor proto.InternalMessageInfo
func (m *MetricDescriptor) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *MetricDescriptor) GetDescription() string {
if m != nil {
return m.Description
}
return ""
}
func (m *MetricDescriptor) GetUnit() string {
if m != nil {
return m.Unit
}
return ""
}
func (m *MetricDescriptor) GetType() MetricDescriptor_Type {
if m != nil {
return m.Type
}
return MetricDescriptor_UNSPECIFIED
}
func (m *MetricDescriptor) GetLabels() []*v11.StringKeyValue {
if m != nil {
return m.Labels
}
return nil
}
// Int64DataPoint is a single data point in a timeseries that describes the time-varying
// values of a int64 metric.
type Int64DataPoint struct {
// The set of labels that uniquely identify this timeseries.
Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
// start_time_unix_nano is the time when the cumulative value was reset to zero.
// This is used for Counter type only. For Gauge the value is not specified and
// defaults to 0.
//
// The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano].
// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
//
// Value of 0 indicates that the timestamp is unspecified. In that case the timestamp
// may be decided by the backend.
StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
// time_unix_nano is the moment when this value was recorded.
// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
// value itself.
Value int64 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Int64DataPoint) Reset() { *m = Int64DataPoint{} }
func (m *Int64DataPoint) String() string { return proto.CompactTextString(m) }
func (*Int64DataPoint) ProtoMessage() {}
func (*Int64DataPoint) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{4}
}
func (m *Int64DataPoint) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Int64DataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Int64DataPoint.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Int64DataPoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_Int64DataPoint.Merge(m, src)
}
func (m *Int64DataPoint) XXX_Size() int {
return m.Size()
}
func (m *Int64DataPoint) XXX_DiscardUnknown() {
xxx_messageInfo_Int64DataPoint.DiscardUnknown(m)
}
var xxx_messageInfo_Int64DataPoint proto.InternalMessageInfo
func (m *Int64DataPoint) GetLabels() []*v11.StringKeyValue {
if m != nil {
return m.Labels
}
return nil
}
func (m *Int64DataPoint) GetStartTimeUnixNano() uint64 {
if m != nil {
return m.StartTimeUnixNano
}
return 0
}
func (m *Int64DataPoint) GetTimeUnixNano() uint64 {
if m != nil {
return m.TimeUnixNano
}
return 0
}
func (m *Int64DataPoint) GetValue() int64 {
if m != nil {
return m.Value
}
return 0
}
// DoubleDataPoint is a single data point in a timeseries that describes the time-varying
// value of a double metric.
type DoubleDataPoint struct {
// The set of labels that uniquely identify this timeseries.
Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
// start_time_unix_nano is the time when the cumulative value was reset to zero.
// This is used for Counter type only. For Gauge the value is not specified and
// defaults to 0.
//
// The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano].
// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
//
// Value of 0 indicates that the timestamp is unspecified. In that case the timestamp
// may be decided by the backend.
StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
// time_unix_nano is the moment when this value was recorded.
// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
// value itself.
Value float64 `protobuf:"fixed64,4,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DoubleDataPoint) Reset() { *m = DoubleDataPoint{} }
func (m *DoubleDataPoint) String() string { return proto.CompactTextString(m) }
func (*DoubleDataPoint) ProtoMessage() {}
func (*DoubleDataPoint) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{5}
}
func (m *DoubleDataPoint) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *DoubleDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_DoubleDataPoint.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *DoubleDataPoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_DoubleDataPoint.Merge(m, src)
}
func (m *DoubleDataPoint) XXX_Size() int {
return m.Size()
}
func (m *DoubleDataPoint) XXX_DiscardUnknown() {
xxx_messageInfo_DoubleDataPoint.DiscardUnknown(m)
}
var xxx_messageInfo_DoubleDataPoint proto.InternalMessageInfo
func (m *DoubleDataPoint) GetLabels() []*v11.StringKeyValue {
if m != nil {
return m.Labels
}
return nil
}
func (m *DoubleDataPoint) GetStartTimeUnixNano() uint64 {
if m != nil {
return m.StartTimeUnixNano
}
return 0
}
func (m *DoubleDataPoint) GetTimeUnixNano() uint64 {
if m != nil {
return m.TimeUnixNano
}
return 0
}
func (m *DoubleDataPoint) GetValue() float64 {
if m != nil {
return m.Value
}
return 0
}
// HistogramDataPoint is a single data point in a timeseries that describes the time-varying
// values of a Histogram. A Histogram contains summary statistics for a population of values,
// it may optionally contain the distribution of those values across a set of buckets.
type HistogramDataPoint struct {
// The set of labels that uniquely identify this timeseries.
Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
// start_time_unix_nano is the time when the cumulative value was reset to zero.
//
// The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano].
// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
//
// Value of 0 indicates that the timestamp is unspecified. In that case the timestamp
// may be decided by the backend.
// Note: this field is always unspecified and ignored if MetricDescriptor.type==GAUGE_HISTOGRAM.
StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
// time_unix_nano is the moment when this value was recorded.
// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
// count is the number of values in the population. Must be non-negative. This value
// must be equal to the sum of the "count" fields in buckets if a histogram is provided.
Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
// sum of the values in the population. If count is zero then this field
// must be zero. This value must be equal to the sum of the "sum" fields in buckets if
// a histogram is provided.
Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"`
// buckets is an optional field contains the values of histogram for each bucket.
//
// The sum of the values in the buckets "count" field must equal the value in the count field.
//
// The number of elements in buckets array must be by one greater than the
// number of elements in bucket_bounds array.
//
// Note: if HistogramDataPoint.bucket_options defines bucket bounds then this field
// must also be present and number of elements in this field must be equal to the
// number of buckets defined by bucket_options.
Buckets []*HistogramDataPoint_Bucket `protobuf:"bytes,6,rep,name=buckets,proto3" json:"buckets,omitempty"`
// explicit_bounds specifies buckets with explicitly defined bounds for values.
// The bucket boundaries are described by "bounds" field.
//
// This defines size(bounds) + 1 (= N) buckets. The boundaries for bucket
// at index i are:
//
// [0, bounds[i]) for i == 0
// [bounds[i-1], bounds[i]) for 0 < i < N-1
// [bounds[i], +infinity) for i == N-1
// The values in bounds array must be strictly increasing and > 0.
//
// Note: only [a, b) intervals are currently supported for each bucket. If we decides
// to also support (a, b] intervals we should add support for these by defining a boolean
// value which decides what type of intervals to use.
ExplicitBounds []float64 `protobuf:"fixed64,7,rep,packed,name=explicit_bounds,json=explicitBounds,proto3" json:"explicit_bounds,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HistogramDataPoint) Reset() { *m = HistogramDataPoint{} }
func (m *HistogramDataPoint) String() string { return proto.CompactTextString(m) }
func (*HistogramDataPoint) ProtoMessage() {}
func (*HistogramDataPoint) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{6}
}
func (m *HistogramDataPoint) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HistogramDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HistogramDataPoint.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HistogramDataPoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_HistogramDataPoint.Merge(m, src)
}
func (m *HistogramDataPoint) XXX_Size() int {
return m.Size()
}
func (m *HistogramDataPoint) XXX_DiscardUnknown() {
xxx_messageInfo_HistogramDataPoint.DiscardUnknown(m)
}
var xxx_messageInfo_HistogramDataPoint proto.InternalMessageInfo
func (m *HistogramDataPoint) GetLabels() []*v11.StringKeyValue {
if m != nil {
return m.Labels
}
return nil
}
func (m *HistogramDataPoint) GetStartTimeUnixNano() uint64 {
if m != nil {
return m.StartTimeUnixNano
}
return 0
}
func (m *HistogramDataPoint) GetTimeUnixNano() uint64 {
if m != nil {
return m.TimeUnixNano
}
return 0
}
func (m *HistogramDataPoint) GetCount() uint64 {
if m != nil {
return m.Count
}
return 0
}
func (m *HistogramDataPoint) GetSum() float64 {
if m != nil {
return m.Sum
}
return 0
}
func (m *HistogramDataPoint) GetBuckets() []*HistogramDataPoint_Bucket {
if m != nil {
return m.Buckets
}
return nil
}
func (m *HistogramDataPoint) GetExplicitBounds() []float64 {
if m != nil {
return m.ExplicitBounds
}
return nil
}
// Bucket contains values for a bucket.
type HistogramDataPoint_Bucket struct {
// The number of values in each bucket of the histogram, as described by
// bucket_options.
Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
// exemplar is an optional representative value of the bucket.
Exemplar *HistogramDataPoint_Bucket_Exemplar `protobuf:"bytes,2,opt,name=exemplar,proto3" json:"exemplar,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HistogramDataPoint_Bucket) Reset() { *m = HistogramDataPoint_Bucket{} }
func (m *HistogramDataPoint_Bucket) String() string { return proto.CompactTextString(m) }
func (*HistogramDataPoint_Bucket) ProtoMessage() {}
func (*HistogramDataPoint_Bucket) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{6, 0}
}
func (m *HistogramDataPoint_Bucket) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HistogramDataPoint_Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HistogramDataPoint_Bucket.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HistogramDataPoint_Bucket) XXX_Merge(src proto.Message) {
xxx_messageInfo_HistogramDataPoint_Bucket.Merge(m, src)
}
func (m *HistogramDataPoint_Bucket) XXX_Size() int {
return m.Size()
}
func (m *HistogramDataPoint_Bucket) XXX_DiscardUnknown() {
xxx_messageInfo_HistogramDataPoint_Bucket.DiscardUnknown(m)
}
var xxx_messageInfo_HistogramDataPoint_Bucket proto.InternalMessageInfo
func (m *HistogramDataPoint_Bucket) GetCount() uint64 {
if m != nil {
return m.Count
}
return 0
}
func (m *HistogramDataPoint_Bucket) GetExemplar() *HistogramDataPoint_Bucket_Exemplar {
if m != nil {
return m.Exemplar
}
return nil
}
// Exemplars are example points that may be used to annotate aggregated
// Histogram values. They are metadata that gives information about a
// particular value added to a Histogram bucket.
type HistogramDataPoint_Bucket_Exemplar struct {
// Value of the exemplar point. It determines which bucket the exemplar belongs to.
// If bucket_options define bounds for this bucket then this value must be within
// the defined bounds.
Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
// time_unix_nano is the moment when this exemplar was recorded.
// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
// exemplar_attachments are contextual information about the example value.
// Keys in this list must be unique.
Attachments []*v11.StringKeyValue `protobuf:"bytes,3,rep,name=attachments,proto3" json:"attachments,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *HistogramDataPoint_Bucket_Exemplar) Reset() { *m = HistogramDataPoint_Bucket_Exemplar{} }
func (m *HistogramDataPoint_Bucket_Exemplar) String() string { return proto.CompactTextString(m) }
func (*HistogramDataPoint_Bucket_Exemplar) ProtoMessage() {}
func (*HistogramDataPoint_Bucket_Exemplar) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{6, 0, 0}
}
func (m *HistogramDataPoint_Bucket_Exemplar) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *HistogramDataPoint_Bucket_Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *HistogramDataPoint_Bucket_Exemplar) XXX_Merge(src proto.Message) {
xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar.Merge(m, src)
}
func (m *HistogramDataPoint_Bucket_Exemplar) XXX_Size() int {
return m.Size()
}
func (m *HistogramDataPoint_Bucket_Exemplar) XXX_DiscardUnknown() {
xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar.DiscardUnknown(m)
}
var xxx_messageInfo_HistogramDataPoint_Bucket_Exemplar proto.InternalMessageInfo
func (m *HistogramDataPoint_Bucket_Exemplar) GetValue() float64 {
if m != nil {
return m.Value
}
return 0
}
func (m *HistogramDataPoint_Bucket_Exemplar) GetTimeUnixNano() uint64 {
if m != nil {
return m.TimeUnixNano
}
return 0
}
func (m *HistogramDataPoint_Bucket_Exemplar) GetAttachments() []*v11.StringKeyValue {
if m != nil {
return m.Attachments
}
return nil
}
// SummaryDataPoint is a single data point in a timeseries that describes the time-varying
// values of a Summary metric.
type SummaryDataPoint struct {
// The set of labels that uniquely identify this timeseries.
Labels []*v11.StringKeyValue `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
// start_time_unix_nano is the time when the cumulative value was reset to zero.
//
// The cumulative value is over the time interval (start_time_unix_nano, time_unix_nano].
// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
//
// Value of 0 indicates that the timestamp is unspecified. In that case the timestamp
// may be decided by the backend.
StartTimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=start_time_unix_nano,json=startTimeUnixNano,proto3" json:"start_time_unix_nano,omitempty"`
// time_unix_nano is the moment when this value was recorded.
// Value is UNIX Epoch time in nanoseconds since 00:00:00 UTC on 1 January 1970.
TimeUnixNano uint64 `protobuf:"fixed64,3,opt,name=time_unix_nano,json=timeUnixNano,proto3" json:"time_unix_nano,omitempty"`
// The total number of recorded values since start_time. Optional since
// some systems don't expose this.
Count uint64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"`
// The total sum of recorded values since start_time. Optional since some
// systems don't expose this. If count is zero then this field must be zero.
Sum float64 `protobuf:"fixed64,5,opt,name=sum,proto3" json:"sum,omitempty"`
// A list of values at different percentiles of the distribution calculated
// from the current snapshot. The percentiles must be strictly increasing.
PercentileValues []*SummaryDataPoint_ValueAtPercentile `protobuf:"bytes,6,rep,name=percentile_values,json=percentileValues,proto3" json:"percentile_values,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SummaryDataPoint) Reset() { *m = SummaryDataPoint{} }
func (m *SummaryDataPoint) String() string { return proto.CompactTextString(m) }
func (*SummaryDataPoint) ProtoMessage() {}
func (*SummaryDataPoint) Descriptor() ([]byte, []int) {
return fileDescriptor_3c3112f9fa006917, []int{7}
}
func (m *SummaryDataPoint) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SummaryDataPoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SummaryDataPoint.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalToSizedBuffer(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SummaryDataPoint) XXX_Merge(src proto.Message) {
xxx_messageInfo_SummaryDataPoint.Merge(m, src)
}
func (m *SummaryDataPoint) XXX_Size() int {
return m.Size()
}
func (m *SummaryDataPoint) XXX_DiscardUnknown() {
xxx_messageInfo_SummaryDataPoint.DiscardUnknown(m)
}
var xxx_messageInfo_SummaryDataPoint proto.InternalMessageInfo
func (m *SummaryDataPoint) GetLabels() []*v11.StringKeyValue {
if m != nil {
return m.Labels
}
return nil
}
func (m *SummaryDataPoint) GetStartTimeUnixNano() uint64 {
if m != nil {
return m.StartTimeUnixNano
}
return 0
}
func (m *SummaryDataPoint) GetTimeUnixNano() uint64 {
if m != nil {
return m.TimeUnixNano
}
return 0
}
func (m *SummaryDataPoint) GetCount() uint64 {
if m != nil {
return m.Count
}
return 0
}
func (m *SummaryDataPoint) GetSum() float64 {
if m != nil {
return m.Sum
}
return 0
}
func (m *SummaryDataPoint) GetPercentileValues() []*SummaryDataPoint_ValueAtPercentile {
if m != nil {
return m.PercentileValues
}
return nil
}
// Represents the value at a given percentile of a distribution.
//
// To record Min and Max values following conventions are used:
// - The 100th percentile is equivalent to the maximum value observed.
// - The 0th percentile is equivalent to the minimum value observed.
//
// See the following issue for more context:
// https://github.com/bogdandrutu/opentelemetry-proto/issues/125
type SummaryDataPoint_ValueAtPercentile struct {
// The percentile of a distribution. Must be in the interval
// [0.0, 100.0].