blob: 2f4930d9dd3443ded359d40e8d8186ff9f707fbd [file] [log] [blame]
khenaidoo59ce9dd2019-11-11 13:05:32 -05001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: metrics.proto
3
khenaidoo26721882021-08-11 17:42:52 -04004package io_prometheus_client
khenaidoo59ce9dd2019-11-11 13:05:32 -05005
khenaidoo26721882021-08-11 17:42:52 -04006import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 timestamp "github.com/golang/protobuf/ptypes/timestamp"
10 math "math"
11)
khenaidoo59ce9dd2019-11-11 13:05:32 -050012
13// Reference imports to suppress errors if they are not otherwise used.
14var _ = proto.Marshal
15var _ = fmt.Errorf
16var _ = math.Inf
17
18// This is a compile-time assertion to ensure that this generated file
19// is compatible with the proto package it is being compiled against.
20// A compilation error at this line likely means your copy of the
21// proto package needs to be updated.
khenaidoo26721882021-08-11 17:42:52 -040022const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
khenaidoo59ce9dd2019-11-11 13:05:32 -050023
24type MetricType int32
25
26const (
27 MetricType_COUNTER MetricType = 0
28 MetricType_GAUGE MetricType = 1
29 MetricType_SUMMARY MetricType = 2
30 MetricType_UNTYPED MetricType = 3
31 MetricType_HISTOGRAM MetricType = 4
32)
33
34var MetricType_name = map[int32]string{
35 0: "COUNTER",
36 1: "GAUGE",
37 2: "SUMMARY",
38 3: "UNTYPED",
39 4: "HISTOGRAM",
40}
khenaidoo26721882021-08-11 17:42:52 -040041
khenaidoo59ce9dd2019-11-11 13:05:32 -050042var MetricType_value = map[string]int32{
43 "COUNTER": 0,
44 "GAUGE": 1,
45 "SUMMARY": 2,
46 "UNTYPED": 3,
47 "HISTOGRAM": 4,
48}
49
50func (x MetricType) Enum() *MetricType {
51 p := new(MetricType)
52 *p = x
53 return p
54}
khenaidoo26721882021-08-11 17:42:52 -040055
khenaidoo59ce9dd2019-11-11 13:05:32 -050056func (x MetricType) String() string {
57 return proto.EnumName(MetricType_name, int32(x))
58}
khenaidoo26721882021-08-11 17:42:52 -040059
khenaidoo59ce9dd2019-11-11 13:05:32 -050060func (x *MetricType) UnmarshalJSON(data []byte) error {
61 value, err := proto.UnmarshalJSONEnum(MetricType_value, data, "MetricType")
62 if err != nil {
63 return err
64 }
65 *x = MetricType(value)
66 return nil
67}
khenaidoo26721882021-08-11 17:42:52 -040068
khenaidoo59ce9dd2019-11-11 13:05:32 -050069func (MetricType) EnumDescriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -040070 return fileDescriptor_6039342a2ba47b72, []int{0}
khenaidoo59ce9dd2019-11-11 13:05:32 -050071}
72
73type LabelPair struct {
74 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
75 Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
76 XXX_NoUnkeyedLiteral struct{} `json:"-"`
77 XXX_unrecognized []byte `json:"-"`
78 XXX_sizecache int32 `json:"-"`
79}
80
81func (m *LabelPair) Reset() { *m = LabelPair{} }
82func (m *LabelPair) String() string { return proto.CompactTextString(m) }
83func (*LabelPair) ProtoMessage() {}
84func (*LabelPair) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -040085 return fileDescriptor_6039342a2ba47b72, []int{0}
khenaidoo59ce9dd2019-11-11 13:05:32 -050086}
khenaidoo26721882021-08-11 17:42:52 -040087
khenaidoo59ce9dd2019-11-11 13:05:32 -050088func (m *LabelPair) XXX_Unmarshal(b []byte) error {
89 return xxx_messageInfo_LabelPair.Unmarshal(m, b)
90}
91func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
92 return xxx_messageInfo_LabelPair.Marshal(b, m, deterministic)
93}
khenaidoo26721882021-08-11 17:42:52 -040094func (m *LabelPair) XXX_Merge(src proto.Message) {
95 xxx_messageInfo_LabelPair.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -050096}
97func (m *LabelPair) XXX_Size() int {
98 return xxx_messageInfo_LabelPair.Size(m)
99}
100func (m *LabelPair) XXX_DiscardUnknown() {
101 xxx_messageInfo_LabelPair.DiscardUnknown(m)
102}
103
104var xxx_messageInfo_LabelPair proto.InternalMessageInfo
105
106func (m *LabelPair) GetName() string {
107 if m != nil && m.Name != nil {
108 return *m.Name
109 }
110 return ""
111}
112
113func (m *LabelPair) GetValue() string {
114 if m != nil && m.Value != nil {
115 return *m.Value
116 }
117 return ""
118}
119
120type Gauge struct {
121 Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
122 XXX_NoUnkeyedLiteral struct{} `json:"-"`
123 XXX_unrecognized []byte `json:"-"`
124 XXX_sizecache int32 `json:"-"`
125}
126
127func (m *Gauge) Reset() { *m = Gauge{} }
128func (m *Gauge) String() string { return proto.CompactTextString(m) }
129func (*Gauge) ProtoMessage() {}
130func (*Gauge) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -0400131 return fileDescriptor_6039342a2ba47b72, []int{1}
khenaidoo59ce9dd2019-11-11 13:05:32 -0500132}
khenaidoo26721882021-08-11 17:42:52 -0400133
khenaidoo59ce9dd2019-11-11 13:05:32 -0500134func (m *Gauge) XXX_Unmarshal(b []byte) error {
135 return xxx_messageInfo_Gauge.Unmarshal(m, b)
136}
137func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
138 return xxx_messageInfo_Gauge.Marshal(b, m, deterministic)
139}
khenaidoo26721882021-08-11 17:42:52 -0400140func (m *Gauge) XXX_Merge(src proto.Message) {
141 xxx_messageInfo_Gauge.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500142}
143func (m *Gauge) XXX_Size() int {
144 return xxx_messageInfo_Gauge.Size(m)
145}
146func (m *Gauge) XXX_DiscardUnknown() {
147 xxx_messageInfo_Gauge.DiscardUnknown(m)
148}
149
150var xxx_messageInfo_Gauge proto.InternalMessageInfo
151
152func (m *Gauge) GetValue() float64 {
153 if m != nil && m.Value != nil {
154 return *m.Value
155 }
156 return 0
157}
158
159type Counter struct {
khenaidoo26721882021-08-11 17:42:52 -0400160 Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
161 Exemplar *Exemplar `protobuf:"bytes,2,opt,name=exemplar" json:"exemplar,omitempty"`
162 XXX_NoUnkeyedLiteral struct{} `json:"-"`
163 XXX_unrecognized []byte `json:"-"`
164 XXX_sizecache int32 `json:"-"`
khenaidoo59ce9dd2019-11-11 13:05:32 -0500165}
166
167func (m *Counter) Reset() { *m = Counter{} }
168func (m *Counter) String() string { return proto.CompactTextString(m) }
169func (*Counter) ProtoMessage() {}
170func (*Counter) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -0400171 return fileDescriptor_6039342a2ba47b72, []int{2}
khenaidoo59ce9dd2019-11-11 13:05:32 -0500172}
khenaidoo26721882021-08-11 17:42:52 -0400173
khenaidoo59ce9dd2019-11-11 13:05:32 -0500174func (m *Counter) XXX_Unmarshal(b []byte) error {
175 return xxx_messageInfo_Counter.Unmarshal(m, b)
176}
177func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
178 return xxx_messageInfo_Counter.Marshal(b, m, deterministic)
179}
khenaidoo26721882021-08-11 17:42:52 -0400180func (m *Counter) XXX_Merge(src proto.Message) {
181 xxx_messageInfo_Counter.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500182}
183func (m *Counter) XXX_Size() int {
184 return xxx_messageInfo_Counter.Size(m)
185}
186func (m *Counter) XXX_DiscardUnknown() {
187 xxx_messageInfo_Counter.DiscardUnknown(m)
188}
189
190var xxx_messageInfo_Counter proto.InternalMessageInfo
191
192func (m *Counter) GetValue() float64 {
193 if m != nil && m.Value != nil {
194 return *m.Value
195 }
196 return 0
197}
198
khenaidoo26721882021-08-11 17:42:52 -0400199func (m *Counter) GetExemplar() *Exemplar {
200 if m != nil {
201 return m.Exemplar
202 }
203 return nil
204}
205
khenaidoo59ce9dd2019-11-11 13:05:32 -0500206type Quantile struct {
207 Quantile *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"`
208 Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
209 XXX_NoUnkeyedLiteral struct{} `json:"-"`
210 XXX_unrecognized []byte `json:"-"`
211 XXX_sizecache int32 `json:"-"`
212}
213
214func (m *Quantile) Reset() { *m = Quantile{} }
215func (m *Quantile) String() string { return proto.CompactTextString(m) }
216func (*Quantile) ProtoMessage() {}
217func (*Quantile) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -0400218 return fileDescriptor_6039342a2ba47b72, []int{3}
khenaidoo59ce9dd2019-11-11 13:05:32 -0500219}
khenaidoo26721882021-08-11 17:42:52 -0400220
khenaidoo59ce9dd2019-11-11 13:05:32 -0500221func (m *Quantile) XXX_Unmarshal(b []byte) error {
222 return xxx_messageInfo_Quantile.Unmarshal(m, b)
223}
224func (m *Quantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
225 return xxx_messageInfo_Quantile.Marshal(b, m, deterministic)
226}
khenaidoo26721882021-08-11 17:42:52 -0400227func (m *Quantile) XXX_Merge(src proto.Message) {
228 xxx_messageInfo_Quantile.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500229}
230func (m *Quantile) XXX_Size() int {
231 return xxx_messageInfo_Quantile.Size(m)
232}
233func (m *Quantile) XXX_DiscardUnknown() {
234 xxx_messageInfo_Quantile.DiscardUnknown(m)
235}
236
237var xxx_messageInfo_Quantile proto.InternalMessageInfo
238
239func (m *Quantile) GetQuantile() float64 {
240 if m != nil && m.Quantile != nil {
241 return *m.Quantile
242 }
243 return 0
244}
245
246func (m *Quantile) GetValue() float64 {
247 if m != nil && m.Value != nil {
248 return *m.Value
249 }
250 return 0
251}
252
253type Summary struct {
254 SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
255 SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
256 Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"`
257 XXX_NoUnkeyedLiteral struct{} `json:"-"`
258 XXX_unrecognized []byte `json:"-"`
259 XXX_sizecache int32 `json:"-"`
260}
261
262func (m *Summary) Reset() { *m = Summary{} }
263func (m *Summary) String() string { return proto.CompactTextString(m) }
264func (*Summary) ProtoMessage() {}
265func (*Summary) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -0400266 return fileDescriptor_6039342a2ba47b72, []int{4}
khenaidoo59ce9dd2019-11-11 13:05:32 -0500267}
khenaidoo26721882021-08-11 17:42:52 -0400268
khenaidoo59ce9dd2019-11-11 13:05:32 -0500269func (m *Summary) XXX_Unmarshal(b []byte) error {
270 return xxx_messageInfo_Summary.Unmarshal(m, b)
271}
272func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
273 return xxx_messageInfo_Summary.Marshal(b, m, deterministic)
274}
khenaidoo26721882021-08-11 17:42:52 -0400275func (m *Summary) XXX_Merge(src proto.Message) {
276 xxx_messageInfo_Summary.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500277}
278func (m *Summary) XXX_Size() int {
279 return xxx_messageInfo_Summary.Size(m)
280}
281func (m *Summary) XXX_DiscardUnknown() {
282 xxx_messageInfo_Summary.DiscardUnknown(m)
283}
284
285var xxx_messageInfo_Summary proto.InternalMessageInfo
286
287func (m *Summary) GetSampleCount() uint64 {
288 if m != nil && m.SampleCount != nil {
289 return *m.SampleCount
290 }
291 return 0
292}
293
294func (m *Summary) GetSampleSum() float64 {
295 if m != nil && m.SampleSum != nil {
296 return *m.SampleSum
297 }
298 return 0
299}
300
301func (m *Summary) GetQuantile() []*Quantile {
302 if m != nil {
303 return m.Quantile
304 }
305 return nil
306}
307
308type Untyped struct {
309 Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
310 XXX_NoUnkeyedLiteral struct{} `json:"-"`
311 XXX_unrecognized []byte `json:"-"`
312 XXX_sizecache int32 `json:"-"`
313}
314
315func (m *Untyped) Reset() { *m = Untyped{} }
316func (m *Untyped) String() string { return proto.CompactTextString(m) }
317func (*Untyped) ProtoMessage() {}
318func (*Untyped) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -0400319 return fileDescriptor_6039342a2ba47b72, []int{5}
khenaidoo59ce9dd2019-11-11 13:05:32 -0500320}
khenaidoo26721882021-08-11 17:42:52 -0400321
khenaidoo59ce9dd2019-11-11 13:05:32 -0500322func (m *Untyped) XXX_Unmarshal(b []byte) error {
323 return xxx_messageInfo_Untyped.Unmarshal(m, b)
324}
325func (m *Untyped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
326 return xxx_messageInfo_Untyped.Marshal(b, m, deterministic)
327}
khenaidoo26721882021-08-11 17:42:52 -0400328func (m *Untyped) XXX_Merge(src proto.Message) {
329 xxx_messageInfo_Untyped.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500330}
331func (m *Untyped) XXX_Size() int {
332 return xxx_messageInfo_Untyped.Size(m)
333}
334func (m *Untyped) XXX_DiscardUnknown() {
335 xxx_messageInfo_Untyped.DiscardUnknown(m)
336}
337
338var xxx_messageInfo_Untyped proto.InternalMessageInfo
339
340func (m *Untyped) GetValue() float64 {
341 if m != nil && m.Value != nil {
342 return *m.Value
343 }
344 return 0
345}
346
347type Histogram struct {
348 SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
349 SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
350 Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"`
351 XXX_NoUnkeyedLiteral struct{} `json:"-"`
352 XXX_unrecognized []byte `json:"-"`
353 XXX_sizecache int32 `json:"-"`
354}
355
356func (m *Histogram) Reset() { *m = Histogram{} }
357func (m *Histogram) String() string { return proto.CompactTextString(m) }
358func (*Histogram) ProtoMessage() {}
359func (*Histogram) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -0400360 return fileDescriptor_6039342a2ba47b72, []int{6}
khenaidoo59ce9dd2019-11-11 13:05:32 -0500361}
khenaidoo26721882021-08-11 17:42:52 -0400362
khenaidoo59ce9dd2019-11-11 13:05:32 -0500363func (m *Histogram) XXX_Unmarshal(b []byte) error {
364 return xxx_messageInfo_Histogram.Unmarshal(m, b)
365}
366func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
367 return xxx_messageInfo_Histogram.Marshal(b, m, deterministic)
368}
khenaidoo26721882021-08-11 17:42:52 -0400369func (m *Histogram) XXX_Merge(src proto.Message) {
370 xxx_messageInfo_Histogram.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500371}
372func (m *Histogram) XXX_Size() int {
373 return xxx_messageInfo_Histogram.Size(m)
374}
375func (m *Histogram) XXX_DiscardUnknown() {
376 xxx_messageInfo_Histogram.DiscardUnknown(m)
377}
378
379var xxx_messageInfo_Histogram proto.InternalMessageInfo
380
381func (m *Histogram) GetSampleCount() uint64 {
382 if m != nil && m.SampleCount != nil {
383 return *m.SampleCount
384 }
385 return 0
386}
387
388func (m *Histogram) GetSampleSum() float64 {
389 if m != nil && m.SampleSum != nil {
390 return *m.SampleSum
391 }
392 return 0
393}
394
395func (m *Histogram) GetBucket() []*Bucket {
396 if m != nil {
397 return m.Bucket
398 }
399 return nil
400}
401
402type Bucket struct {
khenaidoo26721882021-08-11 17:42:52 -0400403 CumulativeCount *uint64 `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"`
404 UpperBound *float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"`
405 Exemplar *Exemplar `protobuf:"bytes,3,opt,name=exemplar" json:"exemplar,omitempty"`
406 XXX_NoUnkeyedLiteral struct{} `json:"-"`
407 XXX_unrecognized []byte `json:"-"`
408 XXX_sizecache int32 `json:"-"`
khenaidoo59ce9dd2019-11-11 13:05:32 -0500409}
410
411func (m *Bucket) Reset() { *m = Bucket{} }
412func (m *Bucket) String() string { return proto.CompactTextString(m) }
413func (*Bucket) ProtoMessage() {}
414func (*Bucket) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -0400415 return fileDescriptor_6039342a2ba47b72, []int{7}
khenaidoo59ce9dd2019-11-11 13:05:32 -0500416}
khenaidoo26721882021-08-11 17:42:52 -0400417
khenaidoo59ce9dd2019-11-11 13:05:32 -0500418func (m *Bucket) XXX_Unmarshal(b []byte) error {
419 return xxx_messageInfo_Bucket.Unmarshal(m, b)
420}
421func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
422 return xxx_messageInfo_Bucket.Marshal(b, m, deterministic)
423}
khenaidoo26721882021-08-11 17:42:52 -0400424func (m *Bucket) XXX_Merge(src proto.Message) {
425 xxx_messageInfo_Bucket.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500426}
427func (m *Bucket) XXX_Size() int {
428 return xxx_messageInfo_Bucket.Size(m)
429}
430func (m *Bucket) XXX_DiscardUnknown() {
431 xxx_messageInfo_Bucket.DiscardUnknown(m)
432}
433
434var xxx_messageInfo_Bucket proto.InternalMessageInfo
435
436func (m *Bucket) GetCumulativeCount() uint64 {
437 if m != nil && m.CumulativeCount != nil {
438 return *m.CumulativeCount
439 }
440 return 0
441}
442
443func (m *Bucket) GetUpperBound() float64 {
444 if m != nil && m.UpperBound != nil {
445 return *m.UpperBound
446 }
447 return 0
448}
449
khenaidoo26721882021-08-11 17:42:52 -0400450func (m *Bucket) GetExemplar() *Exemplar {
451 if m != nil {
452 return m.Exemplar
453 }
454 return nil
455}
456
457type Exemplar struct {
458 Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
459 Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
460 Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"`
461 XXX_NoUnkeyedLiteral struct{} `json:"-"`
462 XXX_unrecognized []byte `json:"-"`
463 XXX_sizecache int32 `json:"-"`
464}
465
466func (m *Exemplar) Reset() { *m = Exemplar{} }
467func (m *Exemplar) String() string { return proto.CompactTextString(m) }
468func (*Exemplar) ProtoMessage() {}
469func (*Exemplar) Descriptor() ([]byte, []int) {
470 return fileDescriptor_6039342a2ba47b72, []int{8}
471}
472
473func (m *Exemplar) XXX_Unmarshal(b []byte) error {
474 return xxx_messageInfo_Exemplar.Unmarshal(m, b)
475}
476func (m *Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
477 return xxx_messageInfo_Exemplar.Marshal(b, m, deterministic)
478}
479func (m *Exemplar) XXX_Merge(src proto.Message) {
480 xxx_messageInfo_Exemplar.Merge(m, src)
481}
482func (m *Exemplar) XXX_Size() int {
483 return xxx_messageInfo_Exemplar.Size(m)
484}
485func (m *Exemplar) XXX_DiscardUnknown() {
486 xxx_messageInfo_Exemplar.DiscardUnknown(m)
487}
488
489var xxx_messageInfo_Exemplar proto.InternalMessageInfo
490
491func (m *Exemplar) GetLabel() []*LabelPair {
492 if m != nil {
493 return m.Label
494 }
495 return nil
496}
497
498func (m *Exemplar) GetValue() float64 {
499 if m != nil && m.Value != nil {
500 return *m.Value
501 }
502 return 0
503}
504
505func (m *Exemplar) GetTimestamp() *timestamp.Timestamp {
506 if m != nil {
507 return m.Timestamp
508 }
509 return nil
510}
511
khenaidoo59ce9dd2019-11-11 13:05:32 -0500512type Metric struct {
513 Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
514 Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"`
515 Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"`
516 Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
517 Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"`
518 Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"`
519 TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"`
520 XXX_NoUnkeyedLiteral struct{} `json:"-"`
521 XXX_unrecognized []byte `json:"-"`
522 XXX_sizecache int32 `json:"-"`
523}
524
525func (m *Metric) Reset() { *m = Metric{} }
526func (m *Metric) String() string { return proto.CompactTextString(m) }
527func (*Metric) ProtoMessage() {}
528func (*Metric) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -0400529 return fileDescriptor_6039342a2ba47b72, []int{9}
khenaidoo59ce9dd2019-11-11 13:05:32 -0500530}
khenaidoo26721882021-08-11 17:42:52 -0400531
khenaidoo59ce9dd2019-11-11 13:05:32 -0500532func (m *Metric) XXX_Unmarshal(b []byte) error {
533 return xxx_messageInfo_Metric.Unmarshal(m, b)
534}
535func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
536 return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
537}
khenaidoo26721882021-08-11 17:42:52 -0400538func (m *Metric) XXX_Merge(src proto.Message) {
539 xxx_messageInfo_Metric.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500540}
541func (m *Metric) XXX_Size() int {
542 return xxx_messageInfo_Metric.Size(m)
543}
544func (m *Metric) XXX_DiscardUnknown() {
545 xxx_messageInfo_Metric.DiscardUnknown(m)
546}
547
548var xxx_messageInfo_Metric proto.InternalMessageInfo
549
550func (m *Metric) GetLabel() []*LabelPair {
551 if m != nil {
552 return m.Label
553 }
554 return nil
555}
556
557func (m *Metric) GetGauge() *Gauge {
558 if m != nil {
559 return m.Gauge
560 }
561 return nil
562}
563
564func (m *Metric) GetCounter() *Counter {
565 if m != nil {
566 return m.Counter
567 }
568 return nil
569}
570
571func (m *Metric) GetSummary() *Summary {
572 if m != nil {
573 return m.Summary
574 }
575 return nil
576}
577
578func (m *Metric) GetUntyped() *Untyped {
579 if m != nil {
580 return m.Untyped
581 }
582 return nil
583}
584
585func (m *Metric) GetHistogram() *Histogram {
586 if m != nil {
587 return m.Histogram
588 }
589 return nil
590}
591
592func (m *Metric) GetTimestampMs() int64 {
593 if m != nil && m.TimestampMs != nil {
594 return *m.TimestampMs
595 }
596 return 0
597}
598
599type MetricFamily struct {
600 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
601 Help *string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"`
602 Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"`
603 Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"`
604 XXX_NoUnkeyedLiteral struct{} `json:"-"`
605 XXX_unrecognized []byte `json:"-"`
606 XXX_sizecache int32 `json:"-"`
607}
608
609func (m *MetricFamily) Reset() { *m = MetricFamily{} }
610func (m *MetricFamily) String() string { return proto.CompactTextString(m) }
611func (*MetricFamily) ProtoMessage() {}
612func (*MetricFamily) Descriptor() ([]byte, []int) {
khenaidoo26721882021-08-11 17:42:52 -0400613 return fileDescriptor_6039342a2ba47b72, []int{10}
khenaidoo59ce9dd2019-11-11 13:05:32 -0500614}
khenaidoo26721882021-08-11 17:42:52 -0400615
khenaidoo59ce9dd2019-11-11 13:05:32 -0500616func (m *MetricFamily) XXX_Unmarshal(b []byte) error {
617 return xxx_messageInfo_MetricFamily.Unmarshal(m, b)
618}
619func (m *MetricFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
620 return xxx_messageInfo_MetricFamily.Marshal(b, m, deterministic)
621}
khenaidoo26721882021-08-11 17:42:52 -0400622func (m *MetricFamily) XXX_Merge(src proto.Message) {
623 xxx_messageInfo_MetricFamily.Merge(m, src)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500624}
625func (m *MetricFamily) XXX_Size() int {
626 return xxx_messageInfo_MetricFamily.Size(m)
627}
628func (m *MetricFamily) XXX_DiscardUnknown() {
629 xxx_messageInfo_MetricFamily.DiscardUnknown(m)
630}
631
632var xxx_messageInfo_MetricFamily proto.InternalMessageInfo
633
634func (m *MetricFamily) GetName() string {
635 if m != nil && m.Name != nil {
636 return *m.Name
637 }
638 return ""
639}
640
641func (m *MetricFamily) GetHelp() string {
642 if m != nil && m.Help != nil {
643 return *m.Help
644 }
645 return ""
646}
647
648func (m *MetricFamily) GetType() MetricType {
649 if m != nil && m.Type != nil {
650 return *m.Type
651 }
652 return MetricType_COUNTER
653}
654
655func (m *MetricFamily) GetMetric() []*Metric {
656 if m != nil {
657 return m.Metric
658 }
659 return nil
660}
661
662func init() {
khenaidoo26721882021-08-11 17:42:52 -0400663 proto.RegisterEnum("io.prometheus.client.MetricType", MetricType_name, MetricType_value)
khenaidoo59ce9dd2019-11-11 13:05:32 -0500664 proto.RegisterType((*LabelPair)(nil), "io.prometheus.client.LabelPair")
665 proto.RegisterType((*Gauge)(nil), "io.prometheus.client.Gauge")
666 proto.RegisterType((*Counter)(nil), "io.prometheus.client.Counter")
667 proto.RegisterType((*Quantile)(nil), "io.prometheus.client.Quantile")
668 proto.RegisterType((*Summary)(nil), "io.prometheus.client.Summary")
669 proto.RegisterType((*Untyped)(nil), "io.prometheus.client.Untyped")
670 proto.RegisterType((*Histogram)(nil), "io.prometheus.client.Histogram")
671 proto.RegisterType((*Bucket)(nil), "io.prometheus.client.Bucket")
khenaidoo26721882021-08-11 17:42:52 -0400672 proto.RegisterType((*Exemplar)(nil), "io.prometheus.client.Exemplar")
khenaidoo59ce9dd2019-11-11 13:05:32 -0500673 proto.RegisterType((*Metric)(nil), "io.prometheus.client.Metric")
674 proto.RegisterType((*MetricFamily)(nil), "io.prometheus.client.MetricFamily")
khenaidoo59ce9dd2019-11-11 13:05:32 -0500675}
676
khenaidoo26721882021-08-11 17:42:52 -0400677func init() { proto.RegisterFile("metrics.proto", fileDescriptor_6039342a2ba47b72) }
khenaidoo59ce9dd2019-11-11 13:05:32 -0500678
khenaidoo26721882021-08-11 17:42:52 -0400679var fileDescriptor_6039342a2ba47b72 = []byte{
680 // 665 bytes of a gzipped FileDescriptorProto
681 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xcd, 0x6e, 0xd3, 0x4c,
682 0x14, 0xfd, 0xdc, 0x38, 0x3f, 0xbe, 0x69, 0x3f, 0xa2, 0x51, 0x17, 0x56, 0xa1, 0x24, 0x78, 0x55,
683 0x58, 0x38, 0xa2, 0x6a, 0x05, 0x2a, 0xb0, 0x68, 0x4b, 0x48, 0x91, 0x48, 0x5b, 0x26, 0xc9, 0xa2,
684 0xb0, 0x88, 0x1c, 0x77, 0x70, 0x2c, 0x3c, 0xb1, 0xb1, 0x67, 0x2a, 0xb2, 0x66, 0xc1, 0x16, 0x5e,
685 0x81, 0x17, 0x05, 0xcd, 0x8f, 0x6d, 0x2a, 0xb9, 0x95, 0x40, 0xec, 0x66, 0xee, 0x3d, 0xe7, 0xfa,
686 0xcc, 0xf8, 0x9c, 0x81, 0x0d, 0x4a, 0x58, 0x1a, 0xfa, 0x99, 0x9b, 0xa4, 0x31, 0x8b, 0xd1, 0x66,
687 0x18, 0x8b, 0x15, 0x25, 0x6c, 0x41, 0x78, 0xe6, 0xfa, 0x51, 0x48, 0x96, 0x6c, 0xab, 0x1b, 0xc4,
688 0x71, 0x10, 0x91, 0xbe, 0xc4, 0xcc, 0xf9, 0x87, 0x3e, 0x0b, 0x29, 0xc9, 0x98, 0x47, 0x13, 0x45,
689 0x73, 0xf6, 0xc1, 0x7a, 0xe3, 0xcd, 0x49, 0x74, 0xee, 0x85, 0x29, 0x42, 0x60, 0x2e, 0x3d, 0x4a,
690 0x6c, 0xa3, 0x67, 0xec, 0x58, 0x58, 0xae, 0xd1, 0x26, 0xd4, 0xaf, 0xbc, 0x88, 0x13, 0x7b, 0x4d,
691 0x16, 0xd5, 0xc6, 0xd9, 0x86, 0xfa, 0xd0, 0xe3, 0xc1, 0x6f, 0x6d, 0xc1, 0x31, 0xf2, 0xf6, 0x7b,
692 0x68, 0x1e, 0xc7, 0x7c, 0xc9, 0x48, 0x5a, 0x0d, 0x40, 0x07, 0xd0, 0x22, 0x9f, 0x09, 0x4d, 0x22,
693 0x2f, 0x95, 0x83, 0xdb, 0xbb, 0xf7, 0xdd, 0xaa, 0x03, 0xb8, 0x03, 0x8d, 0xc2, 0x05, 0xde, 0x79,
694 0x0e, 0xad, 0xb7, 0xdc, 0x5b, 0xb2, 0x30, 0x22, 0x68, 0x0b, 0x5a, 0x9f, 0xf4, 0x5a, 0x7f, 0xa0,
695 0xd8, 0x5f, 0x57, 0x5e, 0x48, 0xfb, 0x6a, 0x40, 0x73, 0xcc, 0x29, 0xf5, 0xd2, 0x15, 0x7a, 0x00,
696 0xeb, 0x99, 0x47, 0x93, 0x88, 0xcc, 0x7c, 0xa1, 0x56, 0x4e, 0x30, 0x71, 0x5b, 0xd5, 0xe4, 0x01,
697 0xd0, 0x36, 0x80, 0x86, 0x64, 0x9c, 0xea, 0x49, 0x96, 0xaa, 0x8c, 0x39, 0x15, 0xe7, 0x28, 0xbe,
698 0x5f, 0xeb, 0xd5, 0x6e, 0x3e, 0x47, 0xae, 0xb8, 0xd4, 0xe7, 0x74, 0xa1, 0x39, 0x5d, 0xb2, 0x55,
699 0x42, 0x2e, 0x6f, 0xb8, 0xc5, 0x2f, 0x06, 0x58, 0x27, 0x61, 0xc6, 0xe2, 0x20, 0xf5, 0xe8, 0x3f,
700 0x10, 0xbb, 0x07, 0x8d, 0x39, 0xf7, 0x3f, 0x12, 0xa6, 0xa5, 0xde, 0xab, 0x96, 0x7a, 0x24, 0x31,
701 0x58, 0x63, 0x9d, 0x6f, 0x06, 0x34, 0x54, 0x09, 0x3d, 0x84, 0x8e, 0xcf, 0x29, 0x8f, 0x3c, 0x16,
702 0x5e, 0x5d, 0x97, 0x71, 0xa7, 0xac, 0x2b, 0x29, 0x5d, 0x68, 0xf3, 0x24, 0x21, 0xe9, 0x6c, 0x1e,
703 0xf3, 0xe5, 0xa5, 0xd6, 0x02, 0xb2, 0x74, 0x24, 0x2a, 0xd7, 0x1c, 0x50, 0xfb, 0x43, 0x07, 0x7c,
704 0x37, 0xa0, 0x95, 0x97, 0xd1, 0x3e, 0xd4, 0x23, 0xe1, 0x60, 0xdb, 0x90, 0x87, 0xea, 0x56, 0x4f,
705 0x29, 0x4c, 0x8e, 0x15, 0xba, 0xda, 0x1d, 0xe8, 0x29, 0x58, 0x45, 0x42, 0xb4, 0xac, 0x2d, 0x57,
706 0x65, 0xc8, 0xcd, 0x33, 0xe4, 0x4e, 0x72, 0x04, 0x2e, 0xc1, 0xce, 0xcf, 0x35, 0x68, 0x8c, 0x64,
707 0x22, 0xff, 0x56, 0xd1, 0x63, 0xa8, 0x07, 0x22, 0x53, 0x3a, 0x10, 0x77, 0xab, 0x69, 0x32, 0x76,
708 0x58, 0x21, 0xd1, 0x13, 0x68, 0xfa, 0x2a, 0x67, 0x5a, 0xec, 0x76, 0x35, 0x49, 0x87, 0x11, 0xe7,
709 0x68, 0x41, 0xcc, 0x54, 0x08, 0x6c, 0xf3, 0x36, 0xa2, 0x4e, 0x0a, 0xce, 0xd1, 0x82, 0xc8, 0x95,
710 0x69, 0xed, 0xfa, 0x6d, 0x44, 0xed, 0x6c, 0x9c, 0xa3, 0xd1, 0x0b, 0xb0, 0x16, 0xb9, 0x97, 0xed,
711 0xa6, 0xa4, 0xde, 0x70, 0x31, 0x85, 0xe5, 0x71, 0xc9, 0x10, 0xee, 0x2f, 0xee, 0x7a, 0x46, 0x33,
712 0xbb, 0xd1, 0x33, 0x76, 0x6a, 0xb8, 0x5d, 0xd4, 0x46, 0x99, 0xf3, 0xc3, 0x80, 0x75, 0xf5, 0x07,
713 0x5e, 0x79, 0x34, 0x8c, 0x56, 0x95, 0xcf, 0x19, 0x02, 0x73, 0x41, 0xa2, 0x44, 0xbf, 0x66, 0x72,
714 0x8d, 0xf6, 0xc0, 0x14, 0x1a, 0xe5, 0x15, 0xfe, 0xbf, 0xdb, 0xab, 0x56, 0xa5, 0x26, 0x4f, 0x56,
715 0x09, 0xc1, 0x12, 0x2d, 0xd2, 0xa4, 0x5e, 0x60, 0xdb, 0xbc, 0x2d, 0x4d, 0x8a, 0x87, 0x35, 0xf6,
716 0xd1, 0x08, 0xa0, 0x9c, 0x84, 0xda, 0xd0, 0x3c, 0x3e, 0x9b, 0x9e, 0x4e, 0x06, 0xb8, 0xf3, 0x1f,
717 0xb2, 0xa0, 0x3e, 0x3c, 0x9c, 0x0e, 0x07, 0x1d, 0x43, 0xd4, 0xc7, 0xd3, 0xd1, 0xe8, 0x10, 0x5f,
718 0x74, 0xd6, 0xc4, 0x66, 0x7a, 0x3a, 0xb9, 0x38, 0x1f, 0xbc, 0xec, 0xd4, 0xd0, 0x06, 0x58, 0x27,
719 0xaf, 0xc7, 0x93, 0xb3, 0x21, 0x3e, 0x1c, 0x75, 0xcc, 0x23, 0x0c, 0x95, 0xef, 0xfe, 0xbb, 0x83,
720 0x20, 0x64, 0x0b, 0x3e, 0x77, 0xfd, 0x98, 0xf6, 0xcb, 0x6e, 0x5f, 0x75, 0x67, 0x34, 0xbe, 0x24,
721 0x51, 0x3f, 0x88, 0x9f, 0x85, 0xf1, 0xac, 0xec, 0xce, 0x54, 0xf7, 0x57, 0x00, 0x00, 0x00, 0xff,
722 0xff, 0xd0, 0x84, 0x91, 0x73, 0x59, 0x06, 0x00, 0x00,
khenaidoo59ce9dd2019-11-11 13:05:32 -0500723}