| // Code generated by protoc-gen-go. |
| // source: metrics.proto |
| // DO NOT EDIT! |
| |
| /* |
| Package io_prometheus_client is a generated protocol buffer package. |
| |
| It is generated from these files: |
| metrics.proto |
| |
| It has these top-level messages: |
| LabelPair |
| Gauge |
| Counter |
| Quantile |
| Summary |
| Untyped |
| Histogram |
| Bucket |
| Metric |
| MetricFamily |
| */ |
| package io_prometheus_client |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| |
| // 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.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| type MetricType int32 |
| |
| const ( |
| MetricType_COUNTER MetricType = 0 |
| MetricType_GAUGE MetricType = 1 |
| MetricType_SUMMARY MetricType = 2 |
| MetricType_UNTYPED MetricType = 3 |
| MetricType_HISTOGRAM MetricType = 4 |
| ) |
| |
| var MetricType_name = map[int32]string{ |
| 0: "COUNTER", |
| 1: "GAUGE", |
| 2: "SUMMARY", |
| 3: "UNTYPED", |
| 4: "HISTOGRAM", |
| } |
| var MetricType_value = map[string]int32{ |
| "COUNTER": 0, |
| "GAUGE": 1, |
| "SUMMARY": 2, |
| "UNTYPED": 3, |
| "HISTOGRAM": 4, |
| } |
| |
| func (x MetricType) String() string { |
| return proto.EnumName(MetricType_name, int32(x)) |
| } |
| func (MetricType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
| |
| type LabelPair struct { |
| Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` |
| } |
| |
| func (m *LabelPair) Reset() { *m = LabelPair{} } |
| func (m *LabelPair) String() string { return proto.CompactTextString(m) } |
| func (*LabelPair) ProtoMessage() {} |
| func (*LabelPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
| |
| type Gauge struct { |
| Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` |
| } |
| |
| func (m *Gauge) Reset() { *m = Gauge{} } |
| func (m *Gauge) String() string { return proto.CompactTextString(m) } |
| func (*Gauge) ProtoMessage() {} |
| func (*Gauge) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } |
| |
| type Counter struct { |
| Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` |
| } |
| |
| func (m *Counter) Reset() { *m = Counter{} } |
| func (m *Counter) String() string { return proto.CompactTextString(m) } |
| func (*Counter) ProtoMessage() {} |
| func (*Counter) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } |
| |
| type Quantile struct { |
| Quantile float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"` |
| Value float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` |
| } |
| |
| func (m *Quantile) Reset() { *m = Quantile{} } |
| func (m *Quantile) String() string { return proto.CompactTextString(m) } |
| func (*Quantile) ProtoMessage() {} |
| func (*Quantile) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } |
| |
| type Summary struct { |
| SampleCount uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"` |
| SampleSum float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"` |
| Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"` |
| } |
| |
| func (m *Summary) Reset() { *m = Summary{} } |
| func (m *Summary) String() string { return proto.CompactTextString(m) } |
| func (*Summary) ProtoMessage() {} |
| func (*Summary) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } |
| |
| func (m *Summary) GetQuantile() []*Quantile { |
| if m != nil { |
| return m.Quantile |
| } |
| return nil |
| } |
| |
| type Untyped struct { |
| Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` |
| } |
| |
| func (m *Untyped) Reset() { *m = Untyped{} } |
| func (m *Untyped) String() string { return proto.CompactTextString(m) } |
| func (*Untyped) ProtoMessage() {} |
| func (*Untyped) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } |
| |
| type Histogram struct { |
| SampleCount uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"` |
| SampleSum float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"` |
| Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"` |
| } |
| |
| func (m *Histogram) Reset() { *m = Histogram{} } |
| func (m *Histogram) String() string { return proto.CompactTextString(m) } |
| func (*Histogram) ProtoMessage() {} |
| func (*Histogram) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } |
| |
| func (m *Histogram) GetBucket() []*Bucket { |
| if m != nil { |
| return m.Bucket |
| } |
| return nil |
| } |
| |
| type Bucket struct { |
| CumulativeCount uint64 `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"` |
| UpperBound float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"` |
| } |
| |
| func (m *Bucket) Reset() { *m = Bucket{} } |
| func (m *Bucket) String() string { return proto.CompactTextString(m) } |
| func (*Bucket) ProtoMessage() {} |
| func (*Bucket) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } |
| |
| type Metric struct { |
| Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"` |
| Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"` |
| Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"` |
| Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"` |
| Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"` |
| Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"` |
| TimestampMs int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"` |
| } |
| |
| func (m *Metric) Reset() { *m = Metric{} } |
| func (m *Metric) String() string { return proto.CompactTextString(m) } |
| func (*Metric) ProtoMessage() {} |
| func (*Metric) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } |
| |
| func (m *Metric) GetLabel() []*LabelPair { |
| if m != nil { |
| return m.Label |
| } |
| return nil |
| } |
| |
| func (m *Metric) GetGauge() *Gauge { |
| if m != nil { |
| return m.Gauge |
| } |
| return nil |
| } |
| |
| func (m *Metric) GetCounter() *Counter { |
| if m != nil { |
| return m.Counter |
| } |
| return nil |
| } |
| |
| func (m *Metric) GetSummary() *Summary { |
| if m != nil { |
| return m.Summary |
| } |
| return nil |
| } |
| |
| func (m *Metric) GetUntyped() *Untyped { |
| if m != nil { |
| return m.Untyped |
| } |
| return nil |
| } |
| |
| func (m *Metric) GetHistogram() *Histogram { |
| if m != nil { |
| return m.Histogram |
| } |
| return nil |
| } |
| |
| type MetricFamily struct { |
| Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| Help string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"` |
| Type MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"` |
| Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"` |
| } |
| |
| func (m *MetricFamily) Reset() { *m = MetricFamily{} } |
| func (m *MetricFamily) String() string { return proto.CompactTextString(m) } |
| func (*MetricFamily) ProtoMessage() {} |
| func (*MetricFamily) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } |
| |
| func (m *MetricFamily) GetMetric() []*Metric { |
| if m != nil { |
| return m.Metric |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*LabelPair)(nil), "io.prometheus.client.LabelPair") |
| proto.RegisterType((*Gauge)(nil), "io.prometheus.client.Gauge") |
| proto.RegisterType((*Counter)(nil), "io.prometheus.client.Counter") |
| proto.RegisterType((*Quantile)(nil), "io.prometheus.client.Quantile") |
| proto.RegisterType((*Summary)(nil), "io.prometheus.client.Summary") |
| proto.RegisterType((*Untyped)(nil), "io.prometheus.client.Untyped") |
| proto.RegisterType((*Histogram)(nil), "io.prometheus.client.Histogram") |
| proto.RegisterType((*Bucket)(nil), "io.prometheus.client.Bucket") |
| proto.RegisterType((*Metric)(nil), "io.prometheus.client.Metric") |
| proto.RegisterType((*MetricFamily)(nil), "io.prometheus.client.MetricFamily") |
| proto.RegisterEnum("io.prometheus.client.MetricType", MetricType_name, MetricType_value) |
| } |
| |
| func init() { proto.RegisterFile("metrics.proto", fileDescriptor0) } |
| |
| var fileDescriptor0 = []byte{ |
| // 562 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x54, 0xcf, 0x6f, 0xd3, 0x30, |
| 0x18, 0x25, 0xeb, 0xaf, 0xe5, 0xcb, 0x06, 0x91, 0x35, 0xa1, 0x08, 0x18, 0x2d, 0x3d, 0x0d, 0x0e, |
| 0x95, 0x28, 0x4c, 0x48, 0x08, 0x0e, 0x2d, 0x94, 0x82, 0x44, 0xd8, 0x70, 0xdb, 0xc3, 0x4e, 0x95, |
| 0x9b, 0x59, 0x6d, 0x44, 0xdc, 0x86, 0xc4, 0x9e, 0xd4, 0x33, 0x07, 0xfe, 0x0f, 0xfe, 0x51, 0xf0, |
| 0xaf, 0xb4, 0x9b, 0x94, 0xf6, 0xc4, 0xcd, 0x7e, 0x79, 0xef, 0xf3, 0xcb, 0xe7, 0xe7, 0x0f, 0x8e, |
| 0x19, 0xe5, 0x59, 0x1c, 0xe5, 0x9d, 0x34, 0x5b, 0xf1, 0x15, 0x3a, 0x89, 0x57, 0x6a, 0x25, 0xc1, |
| 0x05, 0x15, 0x79, 0x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