khenaidoo | ab1f7bd | 2019-11-14 14:00:27 -0500 | [diff] [blame^] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: metrics.proto |
| 3 | |
| 4 | package io_prometheus_client // import "github.com/prometheus/client_model/go" |
| 5 | |
| 6 | import proto "github.com/golang/protobuf/proto" |
| 7 | import fmt "fmt" |
| 8 | import math "math" |
| 9 | |
| 10 | // Reference imports to suppress errors if they are not otherwise used. |
| 11 | var _ = proto.Marshal |
| 12 | var _ = fmt.Errorf |
| 13 | var _ = math.Inf |
| 14 | |
| 15 | // This is a compile-time assertion to ensure that this generated file |
| 16 | // is compatible with the proto package it is being compiled against. |
| 17 | // A compilation error at this line likely means your copy of the |
| 18 | // proto package needs to be updated. |
| 19 | const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| 20 | |
| 21 | type MetricType int32 |
| 22 | |
| 23 | const ( |
| 24 | MetricType_COUNTER MetricType = 0 |
| 25 | MetricType_GAUGE MetricType = 1 |
| 26 | MetricType_SUMMARY MetricType = 2 |
| 27 | MetricType_UNTYPED MetricType = 3 |
| 28 | MetricType_HISTOGRAM MetricType = 4 |
| 29 | ) |
| 30 | |
| 31 | var MetricType_name = map[int32]string{ |
| 32 | 0: "COUNTER", |
| 33 | 1: "GAUGE", |
| 34 | 2: "SUMMARY", |
| 35 | 3: "UNTYPED", |
| 36 | 4: "HISTOGRAM", |
| 37 | } |
| 38 | var MetricType_value = map[string]int32{ |
| 39 | "COUNTER": 0, |
| 40 | "GAUGE": 1, |
| 41 | "SUMMARY": 2, |
| 42 | "UNTYPED": 3, |
| 43 | "HISTOGRAM": 4, |
| 44 | } |
| 45 | |
| 46 | func (x MetricType) Enum() *MetricType { |
| 47 | p := new(MetricType) |
| 48 | *p = x |
| 49 | return p |
| 50 | } |
| 51 | func (x MetricType) String() string { |
| 52 | return proto.EnumName(MetricType_name, int32(x)) |
| 53 | } |
| 54 | func (x *MetricType) UnmarshalJSON(data []byte) error { |
| 55 | value, err := proto.UnmarshalJSONEnum(MetricType_value, data, "MetricType") |
| 56 | if err != nil { |
| 57 | return err |
| 58 | } |
| 59 | *x = MetricType(value) |
| 60 | return nil |
| 61 | } |
| 62 | func (MetricType) EnumDescriptor() ([]byte, []int) { |
| 63 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{0} |
| 64 | } |
| 65 | |
| 66 | type LabelPair struct { |
| 67 | Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| 68 | Value *string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"` |
| 69 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 70 | XXX_unrecognized []byte `json:"-"` |
| 71 | XXX_sizecache int32 `json:"-"` |
| 72 | } |
| 73 | |
| 74 | func (m *LabelPair) Reset() { *m = LabelPair{} } |
| 75 | func (m *LabelPair) String() string { return proto.CompactTextString(m) } |
| 76 | func (*LabelPair) ProtoMessage() {} |
| 77 | func (*LabelPair) Descriptor() ([]byte, []int) { |
| 78 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{0} |
| 79 | } |
| 80 | func (m *LabelPair) XXX_Unmarshal(b []byte) error { |
| 81 | return xxx_messageInfo_LabelPair.Unmarshal(m, b) |
| 82 | } |
| 83 | func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 84 | return xxx_messageInfo_LabelPair.Marshal(b, m, deterministic) |
| 85 | } |
| 86 | func (dst *LabelPair) XXX_Merge(src proto.Message) { |
| 87 | xxx_messageInfo_LabelPair.Merge(dst, src) |
| 88 | } |
| 89 | func (m *LabelPair) XXX_Size() int { |
| 90 | return xxx_messageInfo_LabelPair.Size(m) |
| 91 | } |
| 92 | func (m *LabelPair) XXX_DiscardUnknown() { |
| 93 | xxx_messageInfo_LabelPair.DiscardUnknown(m) |
| 94 | } |
| 95 | |
| 96 | var xxx_messageInfo_LabelPair proto.InternalMessageInfo |
| 97 | |
| 98 | func (m *LabelPair) GetName() string { |
| 99 | if m != nil && m.Name != nil { |
| 100 | return *m.Name |
| 101 | } |
| 102 | return "" |
| 103 | } |
| 104 | |
| 105 | func (m *LabelPair) GetValue() string { |
| 106 | if m != nil && m.Value != nil { |
| 107 | return *m.Value |
| 108 | } |
| 109 | return "" |
| 110 | } |
| 111 | |
| 112 | type Gauge struct { |
| 113 | Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` |
| 114 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 115 | XXX_unrecognized []byte `json:"-"` |
| 116 | XXX_sizecache int32 `json:"-"` |
| 117 | } |
| 118 | |
| 119 | func (m *Gauge) Reset() { *m = Gauge{} } |
| 120 | func (m *Gauge) String() string { return proto.CompactTextString(m) } |
| 121 | func (*Gauge) ProtoMessage() {} |
| 122 | func (*Gauge) Descriptor() ([]byte, []int) { |
| 123 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{1} |
| 124 | } |
| 125 | func (m *Gauge) XXX_Unmarshal(b []byte) error { |
| 126 | return xxx_messageInfo_Gauge.Unmarshal(m, b) |
| 127 | } |
| 128 | func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 129 | return xxx_messageInfo_Gauge.Marshal(b, m, deterministic) |
| 130 | } |
| 131 | func (dst *Gauge) XXX_Merge(src proto.Message) { |
| 132 | xxx_messageInfo_Gauge.Merge(dst, src) |
| 133 | } |
| 134 | func (m *Gauge) XXX_Size() int { |
| 135 | return xxx_messageInfo_Gauge.Size(m) |
| 136 | } |
| 137 | func (m *Gauge) XXX_DiscardUnknown() { |
| 138 | xxx_messageInfo_Gauge.DiscardUnknown(m) |
| 139 | } |
| 140 | |
| 141 | var xxx_messageInfo_Gauge proto.InternalMessageInfo |
| 142 | |
| 143 | func (m *Gauge) GetValue() float64 { |
| 144 | if m != nil && m.Value != nil { |
| 145 | return *m.Value |
| 146 | } |
| 147 | return 0 |
| 148 | } |
| 149 | |
| 150 | type Counter struct { |
| 151 | Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` |
| 152 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 153 | XXX_unrecognized []byte `json:"-"` |
| 154 | XXX_sizecache int32 `json:"-"` |
| 155 | } |
| 156 | |
| 157 | func (m *Counter) Reset() { *m = Counter{} } |
| 158 | func (m *Counter) String() string { return proto.CompactTextString(m) } |
| 159 | func (*Counter) ProtoMessage() {} |
| 160 | func (*Counter) Descriptor() ([]byte, []int) { |
| 161 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{2} |
| 162 | } |
| 163 | func (m *Counter) XXX_Unmarshal(b []byte) error { |
| 164 | return xxx_messageInfo_Counter.Unmarshal(m, b) |
| 165 | } |
| 166 | func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 167 | return xxx_messageInfo_Counter.Marshal(b, m, deterministic) |
| 168 | } |
| 169 | func (dst *Counter) XXX_Merge(src proto.Message) { |
| 170 | xxx_messageInfo_Counter.Merge(dst, src) |
| 171 | } |
| 172 | func (m *Counter) XXX_Size() int { |
| 173 | return xxx_messageInfo_Counter.Size(m) |
| 174 | } |
| 175 | func (m *Counter) XXX_DiscardUnknown() { |
| 176 | xxx_messageInfo_Counter.DiscardUnknown(m) |
| 177 | } |
| 178 | |
| 179 | var xxx_messageInfo_Counter proto.InternalMessageInfo |
| 180 | |
| 181 | func (m *Counter) GetValue() float64 { |
| 182 | if m != nil && m.Value != nil { |
| 183 | return *m.Value |
| 184 | } |
| 185 | return 0 |
| 186 | } |
| 187 | |
| 188 | type Quantile struct { |
| 189 | Quantile *float64 `protobuf:"fixed64,1,opt,name=quantile" json:"quantile,omitempty"` |
| 190 | Value *float64 `protobuf:"fixed64,2,opt,name=value" json:"value,omitempty"` |
| 191 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 192 | XXX_unrecognized []byte `json:"-"` |
| 193 | XXX_sizecache int32 `json:"-"` |
| 194 | } |
| 195 | |
| 196 | func (m *Quantile) Reset() { *m = Quantile{} } |
| 197 | func (m *Quantile) String() string { return proto.CompactTextString(m) } |
| 198 | func (*Quantile) ProtoMessage() {} |
| 199 | func (*Quantile) Descriptor() ([]byte, []int) { |
| 200 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{3} |
| 201 | } |
| 202 | func (m *Quantile) XXX_Unmarshal(b []byte) error { |
| 203 | return xxx_messageInfo_Quantile.Unmarshal(m, b) |
| 204 | } |
| 205 | func (m *Quantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 206 | return xxx_messageInfo_Quantile.Marshal(b, m, deterministic) |
| 207 | } |
| 208 | func (dst *Quantile) XXX_Merge(src proto.Message) { |
| 209 | xxx_messageInfo_Quantile.Merge(dst, src) |
| 210 | } |
| 211 | func (m *Quantile) XXX_Size() int { |
| 212 | return xxx_messageInfo_Quantile.Size(m) |
| 213 | } |
| 214 | func (m *Quantile) XXX_DiscardUnknown() { |
| 215 | xxx_messageInfo_Quantile.DiscardUnknown(m) |
| 216 | } |
| 217 | |
| 218 | var xxx_messageInfo_Quantile proto.InternalMessageInfo |
| 219 | |
| 220 | func (m *Quantile) GetQuantile() float64 { |
| 221 | if m != nil && m.Quantile != nil { |
| 222 | return *m.Quantile |
| 223 | } |
| 224 | return 0 |
| 225 | } |
| 226 | |
| 227 | func (m *Quantile) GetValue() float64 { |
| 228 | if m != nil && m.Value != nil { |
| 229 | return *m.Value |
| 230 | } |
| 231 | return 0 |
| 232 | } |
| 233 | |
| 234 | type Summary struct { |
| 235 | SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"` |
| 236 | SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"` |
| 237 | Quantile []*Quantile `protobuf:"bytes,3,rep,name=quantile" json:"quantile,omitempty"` |
| 238 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 239 | XXX_unrecognized []byte `json:"-"` |
| 240 | XXX_sizecache int32 `json:"-"` |
| 241 | } |
| 242 | |
| 243 | func (m *Summary) Reset() { *m = Summary{} } |
| 244 | func (m *Summary) String() string { return proto.CompactTextString(m) } |
| 245 | func (*Summary) ProtoMessage() {} |
| 246 | func (*Summary) Descriptor() ([]byte, []int) { |
| 247 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{4} |
| 248 | } |
| 249 | func (m *Summary) XXX_Unmarshal(b []byte) error { |
| 250 | return xxx_messageInfo_Summary.Unmarshal(m, b) |
| 251 | } |
| 252 | func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 253 | return xxx_messageInfo_Summary.Marshal(b, m, deterministic) |
| 254 | } |
| 255 | func (dst *Summary) XXX_Merge(src proto.Message) { |
| 256 | xxx_messageInfo_Summary.Merge(dst, src) |
| 257 | } |
| 258 | func (m *Summary) XXX_Size() int { |
| 259 | return xxx_messageInfo_Summary.Size(m) |
| 260 | } |
| 261 | func (m *Summary) XXX_DiscardUnknown() { |
| 262 | xxx_messageInfo_Summary.DiscardUnknown(m) |
| 263 | } |
| 264 | |
| 265 | var xxx_messageInfo_Summary proto.InternalMessageInfo |
| 266 | |
| 267 | func (m *Summary) GetSampleCount() uint64 { |
| 268 | if m != nil && m.SampleCount != nil { |
| 269 | return *m.SampleCount |
| 270 | } |
| 271 | return 0 |
| 272 | } |
| 273 | |
| 274 | func (m *Summary) GetSampleSum() float64 { |
| 275 | if m != nil && m.SampleSum != nil { |
| 276 | return *m.SampleSum |
| 277 | } |
| 278 | return 0 |
| 279 | } |
| 280 | |
| 281 | func (m *Summary) GetQuantile() []*Quantile { |
| 282 | if m != nil { |
| 283 | return m.Quantile |
| 284 | } |
| 285 | return nil |
| 286 | } |
| 287 | |
| 288 | type Untyped struct { |
| 289 | Value *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"` |
| 290 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 291 | XXX_unrecognized []byte `json:"-"` |
| 292 | XXX_sizecache int32 `json:"-"` |
| 293 | } |
| 294 | |
| 295 | func (m *Untyped) Reset() { *m = Untyped{} } |
| 296 | func (m *Untyped) String() string { return proto.CompactTextString(m) } |
| 297 | func (*Untyped) ProtoMessage() {} |
| 298 | func (*Untyped) Descriptor() ([]byte, []int) { |
| 299 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{5} |
| 300 | } |
| 301 | func (m *Untyped) XXX_Unmarshal(b []byte) error { |
| 302 | return xxx_messageInfo_Untyped.Unmarshal(m, b) |
| 303 | } |
| 304 | func (m *Untyped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 305 | return xxx_messageInfo_Untyped.Marshal(b, m, deterministic) |
| 306 | } |
| 307 | func (dst *Untyped) XXX_Merge(src proto.Message) { |
| 308 | xxx_messageInfo_Untyped.Merge(dst, src) |
| 309 | } |
| 310 | func (m *Untyped) XXX_Size() int { |
| 311 | return xxx_messageInfo_Untyped.Size(m) |
| 312 | } |
| 313 | func (m *Untyped) XXX_DiscardUnknown() { |
| 314 | xxx_messageInfo_Untyped.DiscardUnknown(m) |
| 315 | } |
| 316 | |
| 317 | var xxx_messageInfo_Untyped proto.InternalMessageInfo |
| 318 | |
| 319 | func (m *Untyped) GetValue() float64 { |
| 320 | if m != nil && m.Value != nil { |
| 321 | return *m.Value |
| 322 | } |
| 323 | return 0 |
| 324 | } |
| 325 | |
| 326 | type Histogram struct { |
| 327 | SampleCount *uint64 `protobuf:"varint,1,opt,name=sample_count,json=sampleCount" json:"sample_count,omitempty"` |
| 328 | SampleSum *float64 `protobuf:"fixed64,2,opt,name=sample_sum,json=sampleSum" json:"sample_sum,omitempty"` |
| 329 | Bucket []*Bucket `protobuf:"bytes,3,rep,name=bucket" json:"bucket,omitempty"` |
| 330 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 331 | XXX_unrecognized []byte `json:"-"` |
| 332 | XXX_sizecache int32 `json:"-"` |
| 333 | } |
| 334 | |
| 335 | func (m *Histogram) Reset() { *m = Histogram{} } |
| 336 | func (m *Histogram) String() string { return proto.CompactTextString(m) } |
| 337 | func (*Histogram) ProtoMessage() {} |
| 338 | func (*Histogram) Descriptor() ([]byte, []int) { |
| 339 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{6} |
| 340 | } |
| 341 | func (m *Histogram) XXX_Unmarshal(b []byte) error { |
| 342 | return xxx_messageInfo_Histogram.Unmarshal(m, b) |
| 343 | } |
| 344 | func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 345 | return xxx_messageInfo_Histogram.Marshal(b, m, deterministic) |
| 346 | } |
| 347 | func (dst *Histogram) XXX_Merge(src proto.Message) { |
| 348 | xxx_messageInfo_Histogram.Merge(dst, src) |
| 349 | } |
| 350 | func (m *Histogram) XXX_Size() int { |
| 351 | return xxx_messageInfo_Histogram.Size(m) |
| 352 | } |
| 353 | func (m *Histogram) XXX_DiscardUnknown() { |
| 354 | xxx_messageInfo_Histogram.DiscardUnknown(m) |
| 355 | } |
| 356 | |
| 357 | var xxx_messageInfo_Histogram proto.InternalMessageInfo |
| 358 | |
| 359 | func (m *Histogram) GetSampleCount() uint64 { |
| 360 | if m != nil && m.SampleCount != nil { |
| 361 | return *m.SampleCount |
| 362 | } |
| 363 | return 0 |
| 364 | } |
| 365 | |
| 366 | func (m *Histogram) GetSampleSum() float64 { |
| 367 | if m != nil && m.SampleSum != nil { |
| 368 | return *m.SampleSum |
| 369 | } |
| 370 | return 0 |
| 371 | } |
| 372 | |
| 373 | func (m *Histogram) GetBucket() []*Bucket { |
| 374 | if m != nil { |
| 375 | return m.Bucket |
| 376 | } |
| 377 | return nil |
| 378 | } |
| 379 | |
| 380 | type Bucket struct { |
| 381 | CumulativeCount *uint64 `protobuf:"varint,1,opt,name=cumulative_count,json=cumulativeCount" json:"cumulative_count,omitempty"` |
| 382 | UpperBound *float64 `protobuf:"fixed64,2,opt,name=upper_bound,json=upperBound" json:"upper_bound,omitempty"` |
| 383 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 384 | XXX_unrecognized []byte `json:"-"` |
| 385 | XXX_sizecache int32 `json:"-"` |
| 386 | } |
| 387 | |
| 388 | func (m *Bucket) Reset() { *m = Bucket{} } |
| 389 | func (m *Bucket) String() string { return proto.CompactTextString(m) } |
| 390 | func (*Bucket) ProtoMessage() {} |
| 391 | func (*Bucket) Descriptor() ([]byte, []int) { |
| 392 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{7} |
| 393 | } |
| 394 | func (m *Bucket) XXX_Unmarshal(b []byte) error { |
| 395 | return xxx_messageInfo_Bucket.Unmarshal(m, b) |
| 396 | } |
| 397 | func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 398 | return xxx_messageInfo_Bucket.Marshal(b, m, deterministic) |
| 399 | } |
| 400 | func (dst *Bucket) XXX_Merge(src proto.Message) { |
| 401 | xxx_messageInfo_Bucket.Merge(dst, src) |
| 402 | } |
| 403 | func (m *Bucket) XXX_Size() int { |
| 404 | return xxx_messageInfo_Bucket.Size(m) |
| 405 | } |
| 406 | func (m *Bucket) XXX_DiscardUnknown() { |
| 407 | xxx_messageInfo_Bucket.DiscardUnknown(m) |
| 408 | } |
| 409 | |
| 410 | var xxx_messageInfo_Bucket proto.InternalMessageInfo |
| 411 | |
| 412 | func (m *Bucket) GetCumulativeCount() uint64 { |
| 413 | if m != nil && m.CumulativeCount != nil { |
| 414 | return *m.CumulativeCount |
| 415 | } |
| 416 | return 0 |
| 417 | } |
| 418 | |
| 419 | func (m *Bucket) GetUpperBound() float64 { |
| 420 | if m != nil && m.UpperBound != nil { |
| 421 | return *m.UpperBound |
| 422 | } |
| 423 | return 0 |
| 424 | } |
| 425 | |
| 426 | type Metric struct { |
| 427 | Label []*LabelPair `protobuf:"bytes,1,rep,name=label" json:"label,omitempty"` |
| 428 | Gauge *Gauge `protobuf:"bytes,2,opt,name=gauge" json:"gauge,omitempty"` |
| 429 | Counter *Counter `protobuf:"bytes,3,opt,name=counter" json:"counter,omitempty"` |
| 430 | Summary *Summary `protobuf:"bytes,4,opt,name=summary" json:"summary,omitempty"` |
| 431 | Untyped *Untyped `protobuf:"bytes,5,opt,name=untyped" json:"untyped,omitempty"` |
| 432 | Histogram *Histogram `protobuf:"bytes,7,opt,name=histogram" json:"histogram,omitempty"` |
| 433 | TimestampMs *int64 `protobuf:"varint,6,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"` |
| 434 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 435 | XXX_unrecognized []byte `json:"-"` |
| 436 | XXX_sizecache int32 `json:"-"` |
| 437 | } |
| 438 | |
| 439 | func (m *Metric) Reset() { *m = Metric{} } |
| 440 | func (m *Metric) String() string { return proto.CompactTextString(m) } |
| 441 | func (*Metric) ProtoMessage() {} |
| 442 | func (*Metric) Descriptor() ([]byte, []int) { |
| 443 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{8} |
| 444 | } |
| 445 | func (m *Metric) XXX_Unmarshal(b []byte) error { |
| 446 | return xxx_messageInfo_Metric.Unmarshal(m, b) |
| 447 | } |
| 448 | func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 449 | return xxx_messageInfo_Metric.Marshal(b, m, deterministic) |
| 450 | } |
| 451 | func (dst *Metric) XXX_Merge(src proto.Message) { |
| 452 | xxx_messageInfo_Metric.Merge(dst, src) |
| 453 | } |
| 454 | func (m *Metric) XXX_Size() int { |
| 455 | return xxx_messageInfo_Metric.Size(m) |
| 456 | } |
| 457 | func (m *Metric) XXX_DiscardUnknown() { |
| 458 | xxx_messageInfo_Metric.DiscardUnknown(m) |
| 459 | } |
| 460 | |
| 461 | var xxx_messageInfo_Metric proto.InternalMessageInfo |
| 462 | |
| 463 | func (m *Metric) GetLabel() []*LabelPair { |
| 464 | if m != nil { |
| 465 | return m.Label |
| 466 | } |
| 467 | return nil |
| 468 | } |
| 469 | |
| 470 | func (m *Metric) GetGauge() *Gauge { |
| 471 | if m != nil { |
| 472 | return m.Gauge |
| 473 | } |
| 474 | return nil |
| 475 | } |
| 476 | |
| 477 | func (m *Metric) GetCounter() *Counter { |
| 478 | if m != nil { |
| 479 | return m.Counter |
| 480 | } |
| 481 | return nil |
| 482 | } |
| 483 | |
| 484 | func (m *Metric) GetSummary() *Summary { |
| 485 | if m != nil { |
| 486 | return m.Summary |
| 487 | } |
| 488 | return nil |
| 489 | } |
| 490 | |
| 491 | func (m *Metric) GetUntyped() *Untyped { |
| 492 | if m != nil { |
| 493 | return m.Untyped |
| 494 | } |
| 495 | return nil |
| 496 | } |
| 497 | |
| 498 | func (m *Metric) GetHistogram() *Histogram { |
| 499 | if m != nil { |
| 500 | return m.Histogram |
| 501 | } |
| 502 | return nil |
| 503 | } |
| 504 | |
| 505 | func (m *Metric) GetTimestampMs() int64 { |
| 506 | if m != nil && m.TimestampMs != nil { |
| 507 | return *m.TimestampMs |
| 508 | } |
| 509 | return 0 |
| 510 | } |
| 511 | |
| 512 | type MetricFamily struct { |
| 513 | Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| 514 | Help *string `protobuf:"bytes,2,opt,name=help" json:"help,omitempty"` |
| 515 | Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"` |
| 516 | Metric []*Metric `protobuf:"bytes,4,rep,name=metric" json:"metric,omitempty"` |
| 517 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 518 | XXX_unrecognized []byte `json:"-"` |
| 519 | XXX_sizecache int32 `json:"-"` |
| 520 | } |
| 521 | |
| 522 | func (m *MetricFamily) Reset() { *m = MetricFamily{} } |
| 523 | func (m *MetricFamily) String() string { return proto.CompactTextString(m) } |
| 524 | func (*MetricFamily) ProtoMessage() {} |
| 525 | func (*MetricFamily) Descriptor() ([]byte, []int) { |
| 526 | return fileDescriptor_metrics_c97c9a2b9560cb8f, []int{9} |
| 527 | } |
| 528 | func (m *MetricFamily) XXX_Unmarshal(b []byte) error { |
| 529 | return xxx_messageInfo_MetricFamily.Unmarshal(m, b) |
| 530 | } |
| 531 | func (m *MetricFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 532 | return xxx_messageInfo_MetricFamily.Marshal(b, m, deterministic) |
| 533 | } |
| 534 | func (dst *MetricFamily) XXX_Merge(src proto.Message) { |
| 535 | xxx_messageInfo_MetricFamily.Merge(dst, src) |
| 536 | } |
| 537 | func (m *MetricFamily) XXX_Size() int { |
| 538 | return xxx_messageInfo_MetricFamily.Size(m) |
| 539 | } |
| 540 | func (m *MetricFamily) XXX_DiscardUnknown() { |
| 541 | xxx_messageInfo_MetricFamily.DiscardUnknown(m) |
| 542 | } |
| 543 | |
| 544 | var xxx_messageInfo_MetricFamily proto.InternalMessageInfo |
| 545 | |
| 546 | func (m *MetricFamily) GetName() string { |
| 547 | if m != nil && m.Name != nil { |
| 548 | return *m.Name |
| 549 | } |
| 550 | return "" |
| 551 | } |
| 552 | |
| 553 | func (m *MetricFamily) GetHelp() string { |
| 554 | if m != nil && m.Help != nil { |
| 555 | return *m.Help |
| 556 | } |
| 557 | return "" |
| 558 | } |
| 559 | |
| 560 | func (m *MetricFamily) GetType() MetricType { |
| 561 | if m != nil && m.Type != nil { |
| 562 | return *m.Type |
| 563 | } |
| 564 | return MetricType_COUNTER |
| 565 | } |
| 566 | |
| 567 | func (m *MetricFamily) GetMetric() []*Metric { |
| 568 | if m != nil { |
| 569 | return m.Metric |
| 570 | } |
| 571 | return nil |
| 572 | } |
| 573 | |
| 574 | func init() { |
| 575 | proto.RegisterType((*LabelPair)(nil), "io.prometheus.client.LabelPair") |
| 576 | proto.RegisterType((*Gauge)(nil), "io.prometheus.client.Gauge") |
| 577 | proto.RegisterType((*Counter)(nil), "io.prometheus.client.Counter") |
| 578 | proto.RegisterType((*Quantile)(nil), "io.prometheus.client.Quantile") |
| 579 | proto.RegisterType((*Summary)(nil), "io.prometheus.client.Summary") |
| 580 | proto.RegisterType((*Untyped)(nil), "io.prometheus.client.Untyped") |
| 581 | proto.RegisterType((*Histogram)(nil), "io.prometheus.client.Histogram") |
| 582 | proto.RegisterType((*Bucket)(nil), "io.prometheus.client.Bucket") |
| 583 | proto.RegisterType((*Metric)(nil), "io.prometheus.client.Metric") |
| 584 | proto.RegisterType((*MetricFamily)(nil), "io.prometheus.client.MetricFamily") |
| 585 | proto.RegisterEnum("io.prometheus.client.MetricType", MetricType_name, MetricType_value) |
| 586 | } |
| 587 | |
| 588 | func init() { proto.RegisterFile("metrics.proto", fileDescriptor_metrics_c97c9a2b9560cb8f) } |
| 589 | |
| 590 | var fileDescriptor_metrics_c97c9a2b9560cb8f = []byte{ |
| 591 | // 591 bytes of a gzipped FileDescriptorProto |
| 592 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x4f, 0x4f, 0xdb, 0x4e, |
| 593 | 0x14, 0xfc, 0x99, 0xd8, 0x09, 0x7e, 0x86, 0x5f, 0xad, 0x15, 0x07, 0xab, 0x2d, 0x25, 0xcd, 0x89, |
| 594 | 0xf6, 0x10, 0x54, 0x04, 0xaa, 0x44, 0xdb, 0x03, 0x50, 0x1a, 0x2a, 0xd5, 0x40, 0x37, 0xc9, 0x81, |
| 595 | 0x5e, 0xac, 0x8d, 0x59, 0x25, 0x56, 0xbd, 0xb6, 0x6b, 0xef, 0x22, 0xe5, 0xdc, 0x43, 0xbf, 0x47, |
| 596 | 0xbf, 0x68, 0xab, 0xfd, 0xe3, 0x18, 0x24, 0xc3, 0xa9, 0xb7, 0xb7, 0xf3, 0x66, 0xde, 0x8e, 0x77, |
| 597 | 0xc7, 0x0b, 0x9b, 0x8c, 0xf2, 0x32, 0x89, 0xab, 0x61, 0x51, 0xe6, 0x3c, 0x47, 0x5b, 0x49, 0x2e, |
| 598 | 0x2b, 0x46, 0xf9, 0x82, 0x8a, 0x6a, 0x18, 0xa7, 0x09, 0xcd, 0xf8, 0xe0, 0x10, 0xdc, 0x2f, 0x64, |
| 599 | 0x46, 0xd3, 0x2b, 0x92, 0x94, 0x08, 0x81, 0x9d, 0x11, 0x46, 0x03, 0xab, 0x6f, 0xed, 0xba, 0x58, |
| 600 | 0xd5, 0x68, 0x0b, 0x9c, 0x5b, 0x92, 0x0a, 0x1a, 0xac, 0x29, 0x50, 0x2f, 0x06, 0xdb, 0xe0, 0x8c, |
| 601 | 0x88, 0x98, 0xdf, 0x69, 0x4b, 0x8d, 0x55, 0xb7, 0x77, 0xa0, 0x77, 0x9a, 0x8b, 0x8c, 0xd3, 0xf2, |
| 602 | 0x01, 0xc2, 0x7b, 0x58, 0xff, 0x2a, 0x48, 0xc6, 0x93, 0x94, 0xa2, 0xa7, 0xb0, 0xfe, 0xc3, 0xd4, |
| 603 | 0x86, 0xb4, 0x5a, 0xdf, 0xdf, 0x7d, 0xa5, 0xfe, 0x65, 0x41, 0x6f, 0x2c, 0x18, 0x23, 0xe5, 0x12, |
| 604 | 0xbd, 0x84, 0x8d, 0x8a, 0xb0, 0x22, 0xa5, 0x51, 0x2c, 0x77, 0x54, 0x13, 0x6c, 0xec, 0x69, 0x4c, |
| 605 | 0x99, 0x40, 0xdb, 0x00, 0x86, 0x52, 0x09, 0x66, 0x26, 0xb9, 0x1a, 0x19, 0x0b, 0x86, 0x8e, 0xee, |
| 606 | 0xec, 0xdf, 0xe9, 0x77, 0x76, 0xbd, 0xfd, 0x17, 0xc3, 0xb6, 0xb3, 0x1a, 0xd6, 0x8e, 0x1b, 0x7f, |
| 607 | 0xf2, 0x43, 0xa7, 0x19, 0x5f, 0x16, 0xf4, 0xe6, 0x81, 0x0f, 0xfd, 0x69, 0x81, 0x7b, 0x9e, 0x54, |
| 608 | 0x3c, 0x9f, 0x97, 0x84, 0xfd, 0x03, 0xb3, 0x07, 0xd0, 0x9d, 0x89, 0xf8, 0x3b, 0xe5, 0xc6, 0xea, |
| 609 | 0xf3, 0x76, 0xab, 0x27, 0x8a, 0x83, 0x0d, 0x77, 0x30, 0x81, 0xae, 0x46, 0xd0, 0x2b, 0xf0, 0x63, |
| 610 | 0xc1, 0x44, 0x4a, 0x78, 0x72, 0x7b, 0xdf, 0xc5, 0x93, 0x06, 0xd7, 0x4e, 0x76, 0xc0, 0x13, 0x45, |
| 611 | 0x41, 0xcb, 0x68, 0x96, 0x8b, 0xec, 0xc6, 0x58, 0x01, 0x05, 0x9d, 0x48, 0x64, 0xf0, 0x67, 0x0d, |
| 612 | 0xba, 0xa1, 0xca, 0x18, 0x3a, 0x04, 0x27, 0x95, 0x31, 0x0a, 0x2c, 0xe5, 0x6a, 0xa7, 0xdd, 0xd5, |
| 613 | 0x2a, 0x69, 0x58, 0xb3, 0xd1, 0x1b, 0x70, 0xe6, 0x32, 0x46, 0x6a, 0xb8, 0xb7, 0xff, 0xac, 0x5d, |
| 614 | 0xa6, 0x92, 0x86, 0x35, 0x13, 0xbd, 0x85, 0x5e, 0xac, 0xa3, 0x15, 0x74, 0x94, 0x68, 0xbb, 0x5d, |
| 615 | 0x64, 0xf2, 0x87, 0x6b, 0xb6, 0x14, 0x56, 0x3a, 0x33, 0x81, 0xfd, 0x98, 0xd0, 0x04, 0x0b, 0xd7, |
| 616 | 0x6c, 0x29, 0x14, 0xfa, 0x8e, 0x03, 0xe7, 0x31, 0xa1, 0x09, 0x02, 0xae, 0xd9, 0xe8, 0x03, 0xb8, |
| 617 | 0x8b, 0xfa, 0xea, 0x83, 0x9e, 0x92, 0x3e, 0x70, 0x30, 0xab, 0x84, 0xe0, 0x46, 0x21, 0xc3, 0xc2, |
| 618 | 0x13, 0x46, 0x2b, 0x4e, 0x58, 0x11, 0xb1, 0x2a, 0xe8, 0xf6, 0xad, 0xdd, 0x0e, 0xf6, 0x56, 0x58, |
| 619 | 0x58, 0x0d, 0x7e, 0x5b, 0xb0, 0xa1, 0x6f, 0xe0, 0x13, 0x61, 0x49, 0xba, 0x6c, 0xfd, 0x83, 0x11, |
| 620 | 0xd8, 0x0b, 0x9a, 0x16, 0xe6, 0x07, 0x56, 0x35, 0x3a, 0x00, 0x5b, 0x7a, 0x54, 0x47, 0xf8, 0xff, |
| 621 | 0x7e, 0xbf, 0xdd, 0x95, 0x9e, 0x3c, 0x59, 0x16, 0x14, 0x2b, 0xb6, 0x0c, 0x9f, 0x7e, 0x53, 0x02, |
| 622 | 0xfb, 0xb1, 0xf0, 0x69, 0x1d, 0x36, 0xdc, 0xd7, 0x21, 0x40, 0x33, 0x09, 0x79, 0xd0, 0x3b, 0xbd, |
| 623 | 0x9c, 0x5e, 0x4c, 0xce, 0xb0, 0xff, 0x1f, 0x72, 0xc1, 0x19, 0x1d, 0x4f, 0x47, 0x67, 0xbe, 0x25, |
| 624 | 0xf1, 0xf1, 0x34, 0x0c, 0x8f, 0xf1, 0xb5, 0xbf, 0x26, 0x17, 0xd3, 0x8b, 0xc9, 0xf5, 0xd5, 0xd9, |
| 625 | 0x47, 0xbf, 0x83, 0x36, 0xc1, 0x3d, 0xff, 0x3c, 0x9e, 0x5c, 0x8e, 0xf0, 0x71, 0xe8, 0xdb, 0x27, |
| 626 | 0x18, 0x5a, 0x5f, 0xb2, 0x6f, 0x47, 0xf3, 0x84, 0x2f, 0xc4, 0x6c, 0x18, 0xe7, 0x6c, 0xaf, 0xe9, |
| 627 | 0xee, 0xe9, 0x6e, 0xc4, 0xf2, 0x1b, 0x9a, 0xee, 0xcd, 0xf3, 0x77, 0x49, 0x1e, 0x35, 0xdd, 0x48, |
| 628 | 0x77, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x45, 0x21, 0x7f, 0x64, 0x2b, 0x05, 0x00, 0x00, |
| 629 | } |