source: code/trunk/vendor/github.com/prometheus/client_model/go/metrics.pb.go@ 822

Last change on this file since 822 was 822, checked in by yakumo.izuru, 22 months ago

Prefer immortal.run over runit and rc.d, use vendored modules
for convenience.

Signed-off-by: Izuru Yakumo <yakumo.izuru@…>

File size: 30.9 KB
Line 
1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: io/prometheus/client/metrics.proto
3
4package io_prometheus_client
5
6import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 timestamp "github.com/golang/protobuf/ptypes/timestamp"
10 math "math"
11)
12
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.
22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
23
24type MetricType int32
25
26const (
27 // COUNTER must use the Metric field "counter".
28 MetricType_COUNTER MetricType = 0
29 // GAUGE must use the Metric field "gauge".
30 MetricType_GAUGE MetricType = 1
31 // SUMMARY must use the Metric field "summary".
32 MetricType_SUMMARY MetricType = 2
33 // UNTYPED must use the Metric field "untyped".
34 MetricType_UNTYPED MetricType = 3
35 // HISTOGRAM must use the Metric field "histogram".
36 MetricType_HISTOGRAM MetricType = 4
37 // GAUGE_HISTOGRAM must use the Metric field "histogram".
38 MetricType_GAUGE_HISTOGRAM MetricType = 5
39)
40
41var MetricType_name = map[int32]string{
42 0: "COUNTER",
43 1: "GAUGE",
44 2: "SUMMARY",
45 3: "UNTYPED",
46 4: "HISTOGRAM",
47 5: "GAUGE_HISTOGRAM",
48}
49
50var MetricType_value = map[string]int32{
51 "COUNTER": 0,
52 "GAUGE": 1,
53 "SUMMARY": 2,
54 "UNTYPED": 3,
55 "HISTOGRAM": 4,
56 "GAUGE_HISTOGRAM": 5,
57}
58
59func (x MetricType) Enum() *MetricType {
60 p := new(MetricType)
61 *p = x
62 return p
63}
64
65func (x MetricType) String() string {
66 return proto.EnumName(MetricType_name, int32(x))
67}
68
69func (x *MetricType) UnmarshalJSON(data []byte) error {
70 value, err := proto.UnmarshalJSONEnum(MetricType_value, data, "MetricType")
71 if err != nil {
72 return err
73 }
74 *x = MetricType(value)
75 return nil
76}
77
78func (MetricType) EnumDescriptor() ([]byte, []int) {
79 return fileDescriptor_d1e5ddb18987a258, []int{0}
80}
81
82type LabelPair struct {
83 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
84 Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
85 XXX_NoUnkeyedLiteral struct{} `json:"-"`
86 XXX_unrecognized []byte `json:"-"`
87 XXX_sizecache int32 `json:"-"`
88}
89
90func (m *LabelPair) Reset() { *m = LabelPair{} }
91func (m *LabelPair) String() string { return proto.CompactTextString(m) }
92func (*LabelPair) ProtoMessage() {}
93func (*LabelPair) Descriptor() ([]byte, []int) {
94 return fileDescriptor_d1e5ddb18987a258, []int{0}
95}
96
97func (m *LabelPair) XXX_Unmarshal(b []byte) error {
98 return xxx_messageInfo_LabelPair.Unmarshal(m, b)
99}
100func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
101 return xxx_messageInfo_LabelPair.Marshal(b, m, deterministic)
102}
103func (m *LabelPair) XXX_Merge(src proto.Message) {
104 xxx_messageInfo_LabelPair.Merge(m, src)
105}
106func (m *LabelPair) XXX_Size() int {
107 return xxx_messageInfo_LabelPair.Size(m)
108}
109func (m *LabelPair) XXX_DiscardUnknown() {
110 xxx_messageInfo_LabelPair.DiscardUnknown(m)
111}
112
113var xxx_messageInfo_LabelPair proto.InternalMessageInfo
114
115func (m *LabelPair) GetName() string {
116 if m != nil && m.Name != nil {
117 return *m.Name
118 }
119 return ""
120}
121
122func (m *LabelPair) GetValue() string {
123 if m != nil && m.Value != nil {
124 return *m.Value
125 }
126 return ""
127}
128
129type Gauge struct {
130 Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
131 XXX_NoUnkeyedLiteral struct{} `json:"-"`
132 XXX_unrecognized []byte `json:"-"`
133 XXX_sizecache int32 `json:"-"`
134}
135
136func (m *Gauge) Reset() { *m = Gauge{} }
137func (m *Gauge) String() string { return proto.CompactTextString(m) }
138func (*Gauge) ProtoMessage() {}
139func (*Gauge) Descriptor() ([]byte, []int) {
140 return fileDescriptor_d1e5ddb18987a258, []int{1}
141}
142
143func (m *Gauge) XXX_Unmarshal(b []byte) error {
144 return xxx_messageInfo_Gauge.Unmarshal(m, b)
145}
146func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
147 return xxx_messageInfo_Gauge.Marshal(b, m, deterministic)
148}
149func (m *Gauge) XXX_Merge(src proto.Message) {
150 xxx_messageInfo_Gauge.Merge(m, src)
151}
152func (m *Gauge) XXX_Size() int {
153 return xxx_messageInfo_Gauge.Size(m)
154}
155func (m *Gauge) XXX_DiscardUnknown() {
156 xxx_messageInfo_Gauge.DiscardUnknown(m)
157}
158
159var xxx_messageInfo_Gauge proto.InternalMessageInfo
160
161func (m *Gauge) GetValue() float64 {
162 if m != nil && m.Value != nil {
163 return *m.Value
164 }
165 return 0
166}
167
168type Counter struct {
169 Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
170 Exemplar *Exemplar `protobuf:"bytes,2,opt,name=exemplar" json:"exemplar,omitempty"`
171 XXX_NoUnkeyedLiteral struct{} `json:"-"`
172 XXX_unrecognized []byte `json:"-"`
173 XXX_sizecache int32 `json:"-"`
174}
175
176func (m *Counter) Reset() { *m = Counter{} }
177func (m *Counter) String() string { return proto.CompactTextString(m) }
178func (*Counter) ProtoMessage() {}
179func (*Counter) Descriptor() ([]byte, []int) {
180 return fileDescriptor_d1e5ddb18987a258, []int{2}
181}
182
183func (m *Counter) XXX_Unmarshal(b []byte) error {
184 return xxx_messageInfo_Counter.Unmarshal(m, b)
185}
186func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
187 return xxx_messageInfo_Counter.Marshal(b, m, deterministic)
188}
189func (m *Counter) XXX_Merge(src proto.Message) {
190 xxx_messageInfo_Counter.Merge(m, src)
191}
192func (m *Counter) XXX_Size() int {
193 return xxx_messageInfo_Counter.Size(m)
194}
195func (m *Counter) XXX_DiscardUnknown() {
196 xxx_messageInfo_Counter.DiscardUnknown(m)
197}
198
199var xxx_messageInfo_Counter proto.InternalMessageInfo
200
201func (m *Counter) GetValue() float64 {
202 if m != nil && m.Value != nil {
203 return *m.Value
204 }
205 return 0
206}
207
208func (m *Counter) GetExemplar() *Exemplar {
209 if m != nil {
210 return m.Exemplar
211 }
212 return nil
213}
214
215type Quantile struct {
216 Quantile *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"`
217 Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
218 XXX_NoUnkeyedLiteral struct{} `json:"-"`
219 XXX_unrecognized []byte `json:"-"`
220 XXX_sizecache int32 `json:"-"`
221}
222
223func (m *Quantile) Reset() { *m = Quantile{} }
224func (m *Quantile) String() string { return proto.CompactTextString(m) }
225func (*Quantile) ProtoMessage() {}
226func (*Quantile) Descriptor() ([]byte, []int) {
227 return fileDescriptor_d1e5ddb18987a258, []int{3}
228}
229
230func (m *Quantile) XXX_Unmarshal(b []byte) error {
231 return xxx_messageInfo_Quantile.Unmarshal(m, b)
232}
233func (m *Quantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
234 return xxx_messageInfo_Quantile.Marshal(b, m, deterministic)
235}
236func (m *Quantile) XXX_Merge(src proto.Message) {
237 xxx_messageInfo_Quantile.Merge(m, src)
238}
239func (m *Quantile) XXX_Size() int {
240 return xxx_messageInfo_Quantile.Size(m)
241}
242func (m *Quantile) XXX_DiscardUnknown() {
243 xxx_messageInfo_Quantile.DiscardUnknown(m)
244}
245
246var xxx_messageInfo_Quantile proto.InternalMessageInfo
247
248func (m *Quantile) GetQuantile() float64 {
249 if m != nil && m.Quantile != nil {
250 return *m.Quantile
251 }
252 return 0
253}
254
255func (m *Quantile) GetValue() float64 {
256 if m != nil && m.Value != nil {
257 return *m.Value
258 }
259 return 0
260}
261
262type Summary struct {
263 SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
264 SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
265 Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"`
266 XXX_NoUnkeyedLiteral struct{} `json:"-"`
267 XXX_unrecognized []byte `json:"-"`
268 XXX_sizecache int32 `json:"-"`
269}
270
271func (m *Summary) Reset() { *m = Summary{} }
272func (m *Summary) String() string { return proto.CompactTextString(m) }
273func (*Summary) ProtoMessage() {}
274func (*Summary) Descriptor() ([]byte, []int) {
275 return fileDescriptor_d1e5ddb18987a258, []int{4}
276}
277
278func (m *Summary) XXX_Unmarshal(b []byte) error {
279 return xxx_messageInfo_Summary.Unmarshal(m, b)
280}
281func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
282 return xxx_messageInfo_Summary.Marshal(b, m, deterministic)
283}
284func (m *Summary) XXX_Merge(src proto.Message) {
285 xxx_messageInfo_Summary.Merge(m, src)
286}
287func (m *Summary) XXX_Size() int {
288 return xxx_messageInfo_Summary.Size(m)
289}
290func (m *Summary) XXX_DiscardUnknown() {
291 xxx_messageInfo_Summary.DiscardUnknown(m)
292}
293
294var xxx_messageInfo_Summary proto.InternalMessageInfo
295
296func (m *Summary) GetSampleCount() uint64 {
297 if m != nil && m.SampleCount != nil {
298 return *m.SampleCount
299 }
300 return 0
301}
302
303func (m *Summary) GetSampleSum() float64 {
304 if m != nil && m.SampleSum != nil {
305 return *m.SampleSum
306 }
307 return 0
308}
309
310func (m *Summary) GetQuantile() []*Quantile {
311 if m != nil {
312 return m.Quantile
313 }
314 return nil
315}
316
317type Untyped struct {
318 Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
319 XXX_NoUnkeyedLiteral struct{} `json:"-"`
320 XXX_unrecognized []byte `json:"-"`
321 XXX_sizecache int32 `json:"-"`
322}
323
324func (m *Untyped) Reset() { *m = Untyped{} }
325func (m *Untyped) String() string { return proto.CompactTextString(m) }
326func (*Untyped) ProtoMessage() {}
327func (*Untyped) Descriptor() ([]byte, []int) {
328 return fileDescriptor_d1e5ddb18987a258, []int{5}
329}
330
331func (m *Untyped) XXX_Unmarshal(b []byte) error {
332 return xxx_messageInfo_Untyped.Unmarshal(m, b)
333}
334func (m *Untyped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
335 return xxx_messageInfo_Untyped.Marshal(b, m, deterministic)
336}
337func (m *Untyped) XXX_Merge(src proto.Message) {
338 xxx_messageInfo_Untyped.Merge(m, src)
339}
340func (m *Untyped) XXX_Size() int {
341 return xxx_messageInfo_Untyped.Size(m)
342}
343func (m *Untyped) XXX_DiscardUnknown() {
344 xxx_messageInfo_Untyped.DiscardUnknown(m)
345}
346
347var xxx_messageInfo_Untyped proto.InternalMessageInfo
348
349func (m *Untyped) GetValue() float64 {
350 if m != nil && m.Value != nil {
351 return *m.Value
352 }
353 return 0
354}
355
356type Histogram struct {
357 SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"`
358 SampleCountFloat *float64 `protobuf:"fixed64,4,opt,name=sample_count_float,json=sampleCountFloat" json:"sample_count_float,omitempty"`
359 SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"`
360 // Buckets for the conventional histogram.
361 Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"`
362 // schema defines the bucket schema. Currently, valid numbers are -4 <= n <= 8.
363 // They are all for base-2 bucket schemas, where 1 is a bucket boundary in each case, and
364 // then each power of two is divided into 2^n logarithmic buckets.
365 // Or in other words, each bucket boundary is the previous boundary times 2^(2^-n).
366 // In the future, more bucket schemas may be added using numbers < -4 or > 8.
367 Schema *int32 `protobuf:"zigzag32,5,opt,name=schema" json:"schema,omitempty"`
368 ZeroThreshold *float64 `protobuf:"fixed64,6,opt,name=zero_threshold,json=zeroThreshold" json:"zero_threshold,omitempty"`
369 ZeroCount *uint64 `protobuf:"varint,7,opt,name=zero_count,json=zeroCount" json:"zero_count,omitempty"`
370 ZeroCountFloat *float64 `protobuf:"fixed64,8,opt,name=zero_count_float,json=zeroCountFloat" json:"zero_count_float,omitempty"`
371 // Negative buckets for the native histogram.
372 NegativeSpan []*BucketSpan `protobuf:"bytes,9,rep,name=negative_span,json=negativeSpan" json:"negative_span,omitempty"`
373 // Use either "negative_delta" or "negative_count", the former for
374 // regular histograms with integer counts, the latter for float
375 // histograms.
376 NegativeDelta []int64 `protobuf:"zigzag64,10,rep,name=negative_delta,json=negativeDelta" json:"negative_delta,omitempty"`
377 NegativeCount []float64 `protobuf:"fixed64,11,rep,name=negative_count,json=negativeCount" json:"negative_count,omitempty"`
378 // Positive buckets for the native histogram.
379 PositiveSpan []*BucketSpan `protobuf:"bytes,12,rep,name=positive_span,json=positiveSpan" json:"positive_span,omitempty"`
380 // Use either "positive_delta" or "positive_count", the former for
381 // regular histograms with integer counts, the latter for float
382 // histograms.
383 PositiveDelta []int64 `protobuf:"zigzag64,13,rep,name=positive_delta,json=positiveDelta" json:"positive_delta,omitempty"`
384 PositiveCount []float64 `protobuf:"fixed64,14,rep,name=positive_count,json=positiveCount" json:"positive_count,omitempty"`
385 XXX_NoUnkeyedLiteral struct{} `json:"-"`
386 XXX_unrecognized []byte `json:"-"`
387 XXX_sizecache int32 `json:"-"`
388}
389
390func (m *Histogram) Reset() { *m = Histogram{} }
391func (m *Histogram) String() string { return proto.CompactTextString(m) }
392func (*Histogram) ProtoMessage() {}
393func (*Histogram) Descriptor() ([]byte, []int) {
394 return fileDescriptor_d1e5ddb18987a258, []int{6}
395}
396
397func (m *Histogram) XXX_Unmarshal(b []byte) error {
398 return xxx_messageInfo_Histogram.Unmarshal(m, b)
399}
400func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
401 return xxx_messageInfo_Histogram.Marshal(b, m, deterministic)
402}
403func (m *Histogram) XXX_Merge(src proto.Message) {
404 xxx_messageInfo_Histogram.Merge(m, src)
405}
406func (m *Histogram) XXX_Size() int {
407 return xxx_messageInfo_Histogram.Size(m)
408}
409func (m *Histogram) XXX_DiscardUnknown() {
410 xxx_messageInfo_Histogram.DiscardUnknown(m)
411}
412
413var xxx_messageInfo_Histogram proto.InternalMessageInfo
414
415func (m *Histogram) GetSampleCount() uint64 {
416 if m != nil && m.SampleCount != nil {
417 return *m.SampleCount
418 }
419 return 0
420}
421
422func (m *Histogram) GetSampleCountFloat() float64 {
423 if m != nil && m.SampleCountFloat != nil {
424 return *m.SampleCountFloat
425 }
426 return 0
427}
428
429func (m *Histogram) GetSampleSum() float64 {
430 if m != nil && m.SampleSum != nil {
431 return *m.SampleSum
432 }
433 return 0
434}
435
436func (m *Histogram) GetBucket() []*Bucket {
437 if m != nil {
438 return m.Bucket
439 }
440 return nil
441}
442
443func (m *Histogram) GetSchema() int32 {
444 if m != nil && m.Schema != nil {
445 return *m.Schema
446 }
447 return 0
448}
449
450func (m *Histogram) GetZeroThreshold() float64 {
451 if m != nil && m.ZeroThreshold != nil {
452 return *m.ZeroThreshold
453 }
454 return 0
455}
456
457func (m *Histogram) GetZeroCount() uint64 {
458 if m != nil && m.ZeroCount != nil {
459 return *m.ZeroCount
460 }
461 return 0
462}
463
464func (m *Histogram) GetZeroCountFloat() float64 {
465 if m != nil && m.ZeroCountFloat != nil {
466 return *m.ZeroCountFloat
467 }
468 return 0
469}
470
471func (m *Histogram) GetNegativeSpan() []*BucketSpan {
472 if m != nil {
473 return m.NegativeSpan
474 }
475 return nil
476}
477
478func (m *Histogram) GetNegativeDelta() []int64 {
479 if m != nil {
480 return m.NegativeDelta
481 }
482 return nil
483}
484
485func (m *Histogram) GetNegativeCount() []float64 {
486 if m != nil {
487 return m.NegativeCount
488 }
489 return nil
490}
491
492func (m *Histogram) GetPositiveSpan() []*BucketSpan {
493 if m != nil {
494 return m.PositiveSpan
495 }
496 return nil
497}
498
499func (m *Histogram) GetPositiveDelta() []int64 {
500 if m != nil {
501 return m.PositiveDelta
502 }
503 return nil
504}
505
506func (m *Histogram) GetPositiveCount() []float64 {
507 if m != nil {
508 return m.PositiveCount
509 }
510 return nil
511}
512
513// A Bucket of a conventional histogram, each of which is treated as
514// an individual counter-like time series by Prometheus.
515type Bucket struct {
516 CumulativeCount *uint64 `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"`
517 CumulativeCountFloat *float64 `protobuf:"fixed64,4,opt,name=cumulative_count_float,json=cumulativeCountFloat" json:"cumulative_count_float,omitempty"`
518 UpperBound *float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"`
519 Exemplar *Exemplar `protobuf:"bytes,3,opt,name=exemplar" json:"exemplar,omitempty"`
520 XXX_NoUnkeyedLiteral struct{} `json:"-"`
521 XXX_unrecognized []byte `json:"-"`
522 XXX_sizecache int32 `json:"-"`
523}
524
525func (m *Bucket) Reset() { *m = Bucket{} }
526func (m *Bucket) String() string { return proto.CompactTextString(m) }
527func (*Bucket) ProtoMessage() {}
528func (*Bucket) Descriptor() ([]byte, []int) {
529 return fileDescriptor_d1e5ddb18987a258, []int{7}
530}
531
532func (m *Bucket) XXX_Unmarshal(b []byte) error {
533 return xxx_messageInfo_Bucket.Unmarshal(m, b)
534}
535func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
536 return xxx_messageInfo_Bucket.Marshal(b, m, deterministic)
537}
538func (m *Bucket) XXX_Merge(src proto.Message) {
539 xxx_messageInfo_Bucket.Merge(m, src)
540}
541func (m *Bucket) XXX_Size() int {
542 return xxx_messageInfo_Bucket.Size(m)
543}
544func (m *Bucket) XXX_DiscardUnknown() {
545 xxx_messageInfo_Bucket.DiscardUnknown(m)
546}
547
548var xxx_messageInfo_Bucket proto.InternalMessageInfo
549
550func (m *Bucket) GetCumulativeCount() uint64 {
551 if m != nil && m.CumulativeCount != nil {
552 return *m.CumulativeCount
553 }
554 return 0
555}
556
557func (m *Bucket) GetCumulativeCountFloat() float64 {
558 if m != nil && m.CumulativeCountFloat != nil {
559 return *m.CumulativeCountFloat
560 }
561 return 0
562}
563
564func (m *Bucket) GetUpperBound() float64 {
565 if m != nil && m.UpperBound != nil {
566 return *m.UpperBound
567 }
568 return 0
569}
570
571func (m *Bucket) GetExemplar() *Exemplar {
572 if m != nil {
573 return m.Exemplar
574 }
575 return nil
576}
577
578// A BucketSpan defines a number of consecutive buckets in a native
579// histogram with their offset. Logically, it would be more
580// straightforward to include the bucket counts in the Span. However,
581// the protobuf representation is more compact in the way the data is
582// structured here (with all the buckets in a single array separate
583// from the Spans).
584type BucketSpan struct {
585 Offset *int32 `protobuf:"zigzag32,1,opt,name=offset" json:"offset,omitempty"`
586 Length *uint32 `protobuf:"varint,2,opt,name=length" json:"length,omitempty"`
587 XXX_NoUnkeyedLiteral struct{} `json:"-"`
588 XXX_unrecognized []byte `json:"-"`
589 XXX_sizecache int32 `json:"-"`
590}
591
592func (m *BucketSpan) Reset() { *m = BucketSpan{} }
593func (m *BucketSpan) String() string { return proto.CompactTextString(m) }
594func (*BucketSpan) ProtoMessage() {}
595func (*BucketSpan) Descriptor() ([]byte, []int) {
596 return fileDescriptor_d1e5ddb18987a258, []int{8}
597}
598
599func (m *BucketSpan) XXX_Unmarshal(b []byte) error {
600 return xxx_messageInfo_BucketSpan.Unmarshal(m, b)
601}
602func (m *BucketSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
603 return xxx_messageInfo_BucketSpan.Marshal(b, m, deterministic)
604}
605func (m *BucketSpan) XXX_Merge(src proto.Message) {
606 xxx_messageInfo_BucketSpan.Merge(m, src)
607}
608func (m *BucketSpan) XXX_Size() int {
609 return xxx_messageInfo_BucketSpan.Size(m)
610}
611func (m *BucketSpan) XXX_DiscardUnknown() {
612 xxx_messageInfo_BucketSpan.DiscardUnknown(m)
613}
614
615var xxx_messageInfo_BucketSpan proto.InternalMessageInfo
616
617func (m *BucketSpan) GetOffset() int32 {
618 if m != nil && m.Offset != nil {
619 return *m.Offset
620 }
621 return 0
622}
623
624func (m *BucketSpan) GetLength() uint32 {
625 if m != nil && m.Length != nil {
626 return *m.Length
627 }
628 return 0
629}
630
631type Exemplar struct {
632 Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
633 Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"`
634 Timestamp *timestamp.Timestamp `protobuf:"bytes,3,opt,name=timestamp" json:"timestamp,omitempty"`
635 XXX_NoUnkeyedLiteral struct{} `json:"-"`
636 XXX_unrecognized []byte `json:"-"`
637 XXX_sizecache int32 `json:"-"`
638}
639
640func (m *Exemplar) Reset() { *m = Exemplar{} }
641func (m *Exemplar) String() string { return proto.CompactTextString(m) }
642func (*Exemplar) ProtoMessage() {}
643func (*Exemplar) Descriptor() ([]byte, []int) {
644 return fileDescriptor_d1e5ddb18987a258, []int{9}
645}
646
647func (m *Exemplar) XXX_Unmarshal(b []byte) error {
648 return xxx_messageInfo_Exemplar.Unmarshal(m, b)
649}
650func (m *Exemplar) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
651 return xxx_messageInfo_Exemplar.Marshal(b, m, deterministic)
652}
653func (m *Exemplar) XXX_Merge(src proto.Message) {
654 xxx_messageInfo_Exemplar.Merge(m, src)
655}
656func (m *Exemplar) XXX_Size() int {
657 return xxx_messageInfo_Exemplar.Size(m)
658}
659func (m *Exemplar) XXX_DiscardUnknown() {
660 xxx_messageInfo_Exemplar.DiscardUnknown(m)
661}
662
663var xxx_messageInfo_Exemplar proto.InternalMessageInfo
664
665func (m *Exemplar) GetLabel() []*LabelPair {
666 if m != nil {
667 return m.Label
668 }
669 return nil
670}
671
672func (m *Exemplar) GetValue() float64 {
673 if m != nil && m.Value != nil {
674 return *m.Value
675 }
676 return 0
677}
678
679func (m *Exemplar) GetTimestamp() *timestamp.Timestamp {
680 if m != nil {
681 return m.Timestamp
682 }
683 return nil
684}
685
686type Metric struct {
687 Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"`
688 Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"`
689 Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"`
690 Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"`
691 Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"`
692 Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"`
693 TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"`
694 XXX_NoUnkeyedLiteral struct{} `json:"-"`
695 XXX_unrecognized []byte `json:"-"`
696 XXX_sizecache int32 `json:"-"`
697}
698
699func (m *Metric) Reset() { *m = Metric{} }
700func (m *Metric) String() string { return proto.CompactTextString(m) }
701func (*Metric) ProtoMessage() {}
702func (*Metric) Descriptor() ([]byte, []int) {
703 return fileDescriptor_d1e5ddb18987a258, []int{10}
704}
705
706func (m *Metric) XXX_Unmarshal(b []byte) error {
707 return xxx_messageInfo_Metric.Unmarshal(m, b)
708}
709func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
710 return xxx_messageInfo_Metric.Marshal(b, m, deterministic)
711}
712func (m *Metric) XXX_Merge(src proto.Message) {
713 xxx_messageInfo_Metric.Merge(m, src)
714}
715func (m *Metric) XXX_Size() int {
716 return xxx_messageInfo_Metric.Size(m)
717}
718func (m *Metric) XXX_DiscardUnknown() {
719 xxx_messageInfo_Metric.DiscardUnknown(m)
720}
721
722var xxx_messageInfo_Metric proto.InternalMessageInfo
723
724func (m *Metric) GetLabel() []*LabelPair {
725 if m != nil {
726 return m.Label
727 }
728 return nil
729}
730
731func (m *Metric) GetGauge() *Gauge {
732 if m != nil {
733 return m.Gauge
734 }
735 return nil
736}
737
738func (m *Metric) GetCounter() *Counter {
739 if m != nil {
740 return m.Counter
741 }
742 return nil
743}
744
745func (m *Metric) GetSummary() *Summary {
746 if m != nil {
747 return m.Summary
748 }
749 return nil
750}
751
752func (m *Metric) GetUntyped() *Untyped {
753 if m != nil {
754 return m.Untyped
755 }
756 return nil
757}
758
759func (m *Metric) GetHistogram() *Histogram {
760 if m != nil {
761 return m.Histogram
762 }
763 return nil
764}
765
766func (m *Metric) GetTimestampMs() int64 {
767 if m != nil && m.TimestampMs != nil {
768 return *m.TimestampMs
769 }
770 return 0
771}
772
773type MetricFamily struct {
774 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
775 Help *string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"`
776 Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"`
777 Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"`
778 XXX_NoUnkeyedLiteral struct{} `json:"-"`
779 XXX_unrecognized []byte `json:"-"`
780 XXX_sizecache int32 `json:"-"`
781}
782
783func (m *MetricFamily) Reset() { *m = MetricFamily{} }
784func (m *MetricFamily) String() string { return proto.CompactTextString(m) }
785func (*MetricFamily) ProtoMessage() {}
786func (*MetricFamily) Descriptor() ([]byte, []int) {
787 return fileDescriptor_d1e5ddb18987a258, []int{11}
788}
789
790func (m *MetricFamily) XXX_Unmarshal(b []byte) error {
791 return xxx_messageInfo_MetricFamily.Unmarshal(m, b)
792}
793func (m *MetricFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
794 return xxx_messageInfo_MetricFamily.Marshal(b, m, deterministic)
795}
796func (m *MetricFamily) XXX_Merge(src proto.Message) {
797 xxx_messageInfo_MetricFamily.Merge(m, src)
798}
799func (m *MetricFamily) XXX_Size() int {
800 return xxx_messageInfo_MetricFamily.Size(m)
801}
802func (m *MetricFamily) XXX_DiscardUnknown() {
803 xxx_messageInfo_MetricFamily.DiscardUnknown(m)
804}
805
806var xxx_messageInfo_MetricFamily proto.InternalMessageInfo
807
808func (m *MetricFamily) GetName() string {
809 if m != nil && m.Name != nil {
810 return *m.Name
811 }
812 return ""
813}
814
815func (m *MetricFamily) GetHelp() string {
816 if m != nil && m.Help != nil {
817 return *m.Help
818 }
819 return ""
820}
821
822func (m *MetricFamily) GetType() MetricType {
823 if m != nil && m.Type != nil {
824 return *m.Type
825 }
826 return MetricType_COUNTER
827}
828
829func (m *MetricFamily) GetMetric() []*Metric {
830 if m != nil {
831 return m.Metric
832 }
833 return nil
834}
835
836func init() {
837 proto.RegisterEnum("io.prometheus.client.MetricType", MetricType_name, MetricType_value)
838 proto.RegisterType((*LabelPair)(nil), "io.prometheus.client.LabelPair")
839 proto.RegisterType((*Gauge)(nil), "io.prometheus.client.Gauge")
840 proto.RegisterType((*Counter)(nil), "io.prometheus.client.Counter")
841 proto.RegisterType((*Quantile)(nil), "io.prometheus.client.Quantile")
842 proto.RegisterType((*Summary)(nil), "io.prometheus.client.Summary")
843 proto.RegisterType((*Untyped)(nil), "io.prometheus.client.Untyped")
844 proto.RegisterType((*Histogram)(nil), "io.prometheus.client.Histogram")
845 proto.RegisterType((*Bucket)(nil), "io.prometheus.client.Bucket")
846 proto.RegisterType((*BucketSpan)(nil), "io.prometheus.client.BucketSpan")
847 proto.RegisterType((*Exemplar)(nil), "io.prometheus.client.Exemplar")
848 proto.RegisterType((*Metric)(nil), "io.prometheus.client.Metric")
849 proto.RegisterType((*MetricFamily)(nil), "io.prometheus.client.MetricFamily")
850}
851
852func init() {
853 proto.RegisterFile("io/prometheus/client/metrics.proto", fileDescriptor_d1e5ddb18987a258)
854}
855
856var fileDescriptor_d1e5ddb18987a258 = []byte{
857 // 896 bytes of a gzipped FileDescriptorProto
858 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xdd, 0x8e, 0xdb, 0x44,
859 0x18, 0xc5, 0x9b, 0x5f, 0x7f, 0xd9, 0x6c, 0xd3, 0x61, 0x55, 0x59, 0x0b, 0xcb, 0x06, 0x4b, 0x48,
860 0x0b, 0x42, 0x8e, 0x40, 0x5b, 0x81, 0x0a, 0x5c, 0xec, 0xb6, 0xe9, 0x16, 0x89, 0xb4, 0x65, 0x92,
861 0x5c, 0x14, 0x2e, 0xac, 0x49, 0x32, 0xeb, 0x58, 0x78, 0x3c, 0xc6, 0x1e, 0x57, 0x2c, 0x2f, 0xc0,
862 0x35, 0xaf, 0xc0, 0xc3, 0xf0, 0x22, 0x3c, 0x08, 0x68, 0xfe, 0xec, 0xdd, 0xe2, 0x94, 0xd2, 0x3b,
863 0x7f, 0x67, 0xce, 0xf7, 0xcd, 0x39, 0xe3, 0xc9, 0x71, 0xc0, 0x8f, 0xf9, 0x24, 0xcb, 0x39, 0xa3,
864 0x62, 0x4b, 0xcb, 0x62, 0xb2, 0x4e, 0x62, 0x9a, 0x8a, 0x09, 0xa3, 0x22, 0x8f, 0xd7, 0x45, 0x90,
865 0xe5, 0x5c, 0x70, 0x74, 0x18, 0xf3, 0xa0, 0xe6, 0x04, 0x9a, 0x73, 0x74, 0x12, 0x71, 0x1e, 0x25,
866 0x74, 0xa2, 0x38, 0xab, 0xf2, 0x6a, 0x22, 0x62, 0x46, 0x0b, 0x41, 0x58, 0xa6, 0xdb, 0xfc, 0xfb,
867 0xe0, 0x7e, 0x47, 0x56, 0x34, 0x79, 0x4e, 0xe2, 0x1c, 0x21, 0x68, 0xa7, 0x84, 0x51, 0xcf, 0x19,
868 0x3b, 0xa7, 0x2e, 0x56, 0xcf, 0xe8, 0x10, 0x3a, 0x2f, 0x49, 0x52, 0x52, 0x6f, 0x4f, 0x81, 0xba,
869 0xf0, 0x8f, 0xa1, 0x73, 0x49, 0xca, 0xe8, 0xc6, 0xb2, 0xec, 0x71, 0xec, 0xf2, 0x8f, 0x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0x53, 0xa1, 0x8f, 0xe0, 0xe0, 0x57, 0x9a, 0xf3, 0x50, 0x6c, 0x73, 0x5a, 0x6c, 0x79,
882 0xb2, 0xf1, 0xba, 0x6a, 0xc3, 0xa1, 0x44, 0x17, 0x16, 0x94, 0x9a, 0x14, 0x4d, 0x5b, 0xec, 0x29,
883 0x8b, 0xae, 0x44, 0xb4, 0xc1, 0x53, 0x18, 0xd5, 0xcb, 0xc6, 0x5e, 0x5f, 0xcd, 0x39, 0xa8, 0x48,
884 0xda, 0xdc, 0x14, 0x86, 0x29, 0x8d, 0x88, 0x88, 0x5f, 0xd2, 0xb0, 0xc8, 0x48, 0xea, 0xb9, 0xca,
885 0xc4, 0xf8, 0x75, 0x26, 0xe6, 0x19, 0x49, 0xf1, 0xbe, 0x6d, 0x93, 0x95, 0x94, 0x5d, 0x8d, 0xd9,
886 0xd0, 0x44, 0x10, 0x0f, 0xc6, 0xad, 0x53, 0x84, 0xab, 0xe1, 0x8f, 0x24, 0x78, 0x8b, 0xa6, 0xa5,
887 0x0f, 0xc6, 0x2d, 0xe9, 0xce, 0xa2, 0x5a, 0xfe, 0x14, 0x86, 0x19, 0x2f, 0xe2, 0x5a, 0xd4, 0xfe,
888 0x9b, 0x8a, 0xb2, 0x6d, 0x56, 0x54, 0x35, 0x46, 0x8b, 0x1a, 0x6a, 0x51, 0x16, 0xad, 0x44, 0x55,
889 0x34, 0x2d, 0xea, 0x40, 0x8b, 0xb2, 0xa8, 0x12, 0xe5, 0xff, 0xe9, 0x40, 0x57, 0x6f, 0x85, 0x3e,
890 0x86, 0xd1, 0xba, 0x64, 0x65, 0x72, 0xd3, 0x88, 0xbe, 0x66, 0x77, 0x6a, 0x5c, 0x5b, 0x39, 0x83,
891 0x7b, 0xaf, 0x52, 0x6f, 0x5d, 0xb7, 0xc3, 0x57, 0x1a, 0xf4, 0x5b, 0x39, 0x81, 0x41, 0x99, 0x65,
892 0x34, 0x0f, 0x57, 0xbc, 0x4c, 0x37, 0xe6, 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e1, 0xc0, 0xbe, 0x7e, 0x03, 0x8f,
904 0x09, 0x8b, 0x93, 0xeb, 0xc6, 0x4f, 0x24, 0x82, 0xf6, 0x96, 0x26, 0x99, 0xf9, 0x42, 0xaa, 0x67,
905 0x74, 0x06, 0x6d, 0xa9, 0x51, 0x1d, 0xe1, 0xc1, 0xae, 0x5f, 0xb8, 0x9e, 0xbc, 0xb8, 0xce, 0x28,
906 0x56, 0x6c, 0x99, 0xb9, 0xfa, 0xab, 0xee, 0xb5, 0x5f, 0x97, 0xb9, 0xba, 0x0f, 0x1b, 0xee, 0x27,
907 0x2b, 0x80, 0x7a, 0x12, 0x1a, 0x40, 0xef, 0xe1, 0xb3, 0xe5, 0xd3, 0xc5, 0x14, 0x8f, 0xde, 0x41,
908 0x2e, 0x74, 0x2e, 0xcf, 0x97, 0x97, 0xd3, 0x91, 0x23, 0xf1, 0xf9, 0x72, 0x36, 0x3b, 0xc7, 0x2f,
909 0x46, 0x7b, 0xb2, 0x58, 0x3e, 0x5d, 0xbc, 0x78, 0x3e, 0x7d, 0x34, 0x6a, 0xa1, 0x21, 0xb8, 0x4f,
910 0xbe, 0x9d, 0x2f, 0x9e, 0x5d, 0xe2, 0xf3, 0xd9, 0xa8, 0x8d, 0xde, 0x85, 0x3b, 0xaa, 0x27, 0xac,
911 0xc1, 0xce, 0x05, 0x86, 0xc6, 0x3f, 0x18, 0x3f, 0x3c, 0x88, 0x62, 0xb1, 0x2d, 0x57, 0xc1, 0x9a,
912 0xb3, 0x7f, 0xff, 0x45, 0x09, 0x19, 0xdf, 0xd0, 0x64, 0x12, 0xf1, 0xaf, 0x62, 0x1e, 0xd6, 0xab,
913 0xa1, 0x5e, 0xfd, 0x27, 0x00, 0x00, 0xff, 0xff, 0x16, 0x77, 0x81, 0x98, 0xd7, 0x08, 0x00, 0x00,
914}
Note: See TracBrowser for help on using the repository browser.