client_model: github.com/prometheus/client_model/go Index | Files

package io_prometheus_client

import "github.com/prometheus/client_model/go"

Index

Package Files

metrics.pb.go

Variables

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,
}

type Bucket Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Bucket) Descriptor Uses

func (*Bucket) Descriptor() ([]byte, []int)

func (*Bucket) GetCumulativeCount Uses

func (m *Bucket) GetCumulativeCount() uint64

func (*Bucket) GetUpperBound Uses

func (m *Bucket) GetUpperBound() float64

func (*Bucket) ProtoMessage Uses

func (*Bucket) ProtoMessage()

func (*Bucket) Reset Uses

func (m *Bucket) Reset()

func (*Bucket) String Uses

func (m *Bucket) String() string

func (*Bucket) XXX_DiscardUnknown Uses

func (m *Bucket) XXX_DiscardUnknown()

func (*Bucket) XXX_Marshal Uses

func (m *Bucket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bucket) XXX_Merge Uses

func (dst *Bucket) XXX_Merge(src proto.Message)

func (*Bucket) XXX_Size Uses

func (m *Bucket) XXX_Size() int

func (*Bucket) XXX_Unmarshal Uses

func (m *Bucket) XXX_Unmarshal(b []byte) error

type Counter Uses

type Counter struct {
    Value                *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Counter) Descriptor Uses

func (*Counter) Descriptor() ([]byte, []int)

func (*Counter) GetValue Uses

func (m *Counter) GetValue() float64

func (*Counter) ProtoMessage Uses

func (*Counter) ProtoMessage()

func (*Counter) Reset Uses

func (m *Counter) Reset()

func (*Counter) String Uses

func (m *Counter) String() string

func (*Counter) XXX_DiscardUnknown Uses

func (m *Counter) XXX_DiscardUnknown()

func (*Counter) XXX_Marshal Uses

func (m *Counter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Counter) XXX_Merge Uses

func (dst *Counter) XXX_Merge(src proto.Message)

func (*Counter) XXX_Size Uses

func (m *Counter) XXX_Size() int

func (*Counter) XXX_Unmarshal Uses

func (m *Counter) XXX_Unmarshal(b []byte) error

type Gauge Uses

type Gauge struct {
    Value                *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Gauge) Descriptor Uses

func (*Gauge) Descriptor() ([]byte, []int)

func (*Gauge) GetValue Uses

func (m *Gauge) GetValue() float64

func (*Gauge) ProtoMessage Uses

func (*Gauge) ProtoMessage()

func (*Gauge) Reset Uses

func (m *Gauge) Reset()

func (*Gauge) String Uses

func (m *Gauge) String() string

func (*Gauge) XXX_DiscardUnknown Uses

func (m *Gauge) XXX_DiscardUnknown()

func (*Gauge) XXX_Marshal Uses

func (m *Gauge) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Gauge) XXX_Merge Uses

func (dst *Gauge) XXX_Merge(src proto.Message)

func (*Gauge) XXX_Size Uses

func (m *Gauge) XXX_Size() int

func (*Gauge) XXX_Unmarshal Uses

func (m *Gauge) XXX_Unmarshal(b []byte) error

type Histogram Uses

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"`
    XXX_NoUnkeyedLiteral struct{}  `json:"-"`
    XXX_unrecognized     []byte    `json:"-"`
    XXX_sizecache        int32     `json:"-"`
}

func (*Histogram) Descriptor Uses

func (*Histogram) Descriptor() ([]byte, []int)

func (*Histogram) GetBucket Uses

func (m *Histogram) GetBucket() []*Bucket

func (*Histogram) GetSampleCount Uses

func (m *Histogram) GetSampleCount() uint64

func (*Histogram) GetSampleSum Uses

func (m *Histogram) GetSampleSum() float64

func (*Histogram) ProtoMessage Uses

func (*Histogram) ProtoMessage()

func (*Histogram) Reset Uses

func (m *Histogram) Reset()

func (*Histogram) String Uses

func (m *Histogram) String() string

func (*Histogram) XXX_DiscardUnknown Uses

func (m *Histogram) XXX_DiscardUnknown()

func (*Histogram) XXX_Marshal Uses

func (m *Histogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Histogram) XXX_Merge Uses

func (dst *Histogram) XXX_Merge(src proto.Message)

func (*Histogram) XXX_Size Uses

func (m *Histogram) XXX_Size() int

func (*Histogram) XXX_Unmarshal Uses

func (m *Histogram) XXX_Unmarshal(b []byte) error

type LabelPair Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*LabelPair) Descriptor Uses

func (*LabelPair) Descriptor() ([]byte, []int)

func (*LabelPair) GetName Uses

func (m *LabelPair) GetName() string

func (*LabelPair) GetValue Uses

func (m *LabelPair) GetValue() string

func (*LabelPair) ProtoMessage Uses

func (*LabelPair) ProtoMessage()

func (*LabelPair) Reset Uses

func (m *LabelPair) Reset()

func (*LabelPair) String Uses

func (m *LabelPair) String() string

func (*LabelPair) XXX_DiscardUnknown Uses

func (m *LabelPair) XXX_DiscardUnknown()

func (*LabelPair) XXX_Marshal Uses

func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LabelPair) XXX_Merge Uses

func (dst *LabelPair) XXX_Merge(src proto.Message)

func (*LabelPair) XXX_Size Uses

func (m *LabelPair) XXX_Size() int

func (*LabelPair) XXX_Unmarshal Uses

func (m *LabelPair) XXX_Unmarshal(b []byte) error

type Metric Uses

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"`
    XXX_NoUnkeyedLiteral struct{}     `json:"-"`
    XXX_unrecognized     []byte       `json:"-"`
    XXX_sizecache        int32        `json:"-"`
}

func (*Metric) Descriptor Uses

func (*Metric) Descriptor() ([]byte, []int)

func (*Metric) GetCounter Uses

func (m *Metric) GetCounter() *Counter

func (*Metric) GetGauge Uses

func (m *Metric) GetGauge() *Gauge

func (*Metric) GetHistogram Uses

func (m *Metric) GetHistogram() *Histogram

func (*Metric) GetLabel Uses

func (m *Metric) GetLabel() []*LabelPair

func (*Metric) GetSummary Uses

func (m *Metric) GetSummary() *Summary

func (*Metric) GetTimestampMs Uses

func (m *Metric) GetTimestampMs() int64

func (*Metric) GetUntyped Uses

func (m *Metric) GetUntyped() *Untyped

func (*Metric) ProtoMessage Uses

func (*Metric) ProtoMessage()

func (*Metric) Reset Uses

func (m *Metric) Reset()

func (*Metric) String Uses

func (m *Metric) String() string

func (*Metric) XXX_DiscardUnknown Uses

func (m *Metric) XXX_DiscardUnknown()

func (*Metric) XXX_Marshal Uses

func (m *Metric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metric) XXX_Merge Uses

func (dst *Metric) XXX_Merge(src proto.Message)

func (*Metric) XXX_Size Uses

func (m *Metric) XXX_Size() int

func (*Metric) XXX_Unmarshal Uses

func (m *Metric) XXX_Unmarshal(b []byte) error

type MetricFamily Uses

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"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*MetricFamily) Descriptor Uses

func (*MetricFamily) Descriptor() ([]byte, []int)

func (*MetricFamily) GetHelp Uses

func (m *MetricFamily) GetHelp() string

func (*MetricFamily) GetMetric Uses

func (m *MetricFamily) GetMetric() []*Metric

func (*MetricFamily) GetName Uses

func (m *MetricFamily) GetName() string

func (*MetricFamily) GetType Uses

func (m *MetricFamily) GetType() MetricType

func (*MetricFamily) ProtoMessage Uses

func (*MetricFamily) ProtoMessage()

func (*MetricFamily) Reset Uses

func (m *MetricFamily) Reset()

func (*MetricFamily) String Uses

func (m *MetricFamily) String() string

func (*MetricFamily) XXX_DiscardUnknown Uses

func (m *MetricFamily) XXX_DiscardUnknown()

func (*MetricFamily) XXX_Marshal Uses

func (m *MetricFamily) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MetricFamily) XXX_Merge Uses

func (dst *MetricFamily) XXX_Merge(src proto.Message)

func (*MetricFamily) XXX_Size Uses

func (m *MetricFamily) XXX_Size() int

func (*MetricFamily) XXX_Unmarshal Uses

func (m *MetricFamily) XXX_Unmarshal(b []byte) error

type MetricType Uses

type MetricType int32
const (
    MetricType_COUNTER   MetricType = 0
    MetricType_GAUGE     MetricType = 1
    MetricType_SUMMARY   MetricType = 2
    MetricType_UNTYPED   MetricType = 3
    MetricType_HISTOGRAM MetricType = 4
)

func (MetricType) Enum Uses

func (x MetricType) Enum() *MetricType

func (MetricType) EnumDescriptor Uses

func (MetricType) EnumDescriptor() ([]byte, []int)

func (MetricType) String Uses

func (x MetricType) String() string

func (*MetricType) UnmarshalJSON Uses

func (x *MetricType) UnmarshalJSON(data []byte) error

type Quantile Uses

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"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Quantile) Descriptor Uses

func (*Quantile) Descriptor() ([]byte, []int)

func (*Quantile) GetQuantile Uses

func (m *Quantile) GetQuantile() float64

func (*Quantile) GetValue Uses

func (m *Quantile) GetValue() float64

func (*Quantile) ProtoMessage Uses

func (*Quantile) ProtoMessage()

func (*Quantile) Reset Uses

func (m *Quantile) Reset()

func (*Quantile) String Uses

func (m *Quantile) String() string

func (*Quantile) XXX_DiscardUnknown Uses

func (m *Quantile) XXX_DiscardUnknown()

func (*Quantile) XXX_Marshal Uses

func (m *Quantile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Quantile) XXX_Merge Uses

func (dst *Quantile) XXX_Merge(src proto.Message)

func (*Quantile) XXX_Size Uses

func (m *Quantile) XXX_Size() int

func (*Quantile) XXX_Unmarshal Uses

func (m *Quantile) XXX_Unmarshal(b []byte) error

type Summary Uses

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"`
    XXX_NoUnkeyedLiteral struct{}    `json:"-"`
    XXX_unrecognized     []byte      `json:"-"`
    XXX_sizecache        int32       `json:"-"`
}

func (*Summary) Descriptor Uses

func (*Summary) Descriptor() ([]byte, []int)

func (*Summary) GetQuantile Uses

func (m *Summary) GetQuantile() []*Quantile

func (*Summary) GetSampleCount Uses

func (m *Summary) GetSampleCount() uint64

func (*Summary) GetSampleSum Uses

func (m *Summary) GetSampleSum() float64

func (*Summary) ProtoMessage Uses

func (*Summary) ProtoMessage()

func (*Summary) Reset Uses

func (m *Summary) Reset()

func (*Summary) String Uses

func (m *Summary) String() string

func (*Summary) XXX_DiscardUnknown Uses

func (m *Summary) XXX_DiscardUnknown()

func (*Summary) XXX_Marshal Uses

func (m *Summary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Summary) XXX_Merge Uses

func (dst *Summary) XXX_Merge(src proto.Message)

func (*Summary) XXX_Size Uses

func (m *Summary) XXX_Size() int

func (*Summary) XXX_Unmarshal Uses

func (m *Summary) XXX_Unmarshal(b []byte) error

type Untyped Uses

type Untyped struct {
    Value                *float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*Untyped) Descriptor Uses

func (*Untyped) Descriptor() ([]byte, []int)

func (*Untyped) GetValue Uses

func (m *Untyped) GetValue() float64

func (*Untyped) ProtoMessage Uses

func (*Untyped) ProtoMessage()

func (*Untyped) Reset Uses

func (m *Untyped) Reset()

func (*Untyped) String Uses

func (m *Untyped) String() string

func (*Untyped) XXX_DiscardUnknown Uses

func (m *Untyped) XXX_DiscardUnknown()

func (*Untyped) XXX_Marshal Uses

func (m *Untyped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Untyped) XXX_Merge Uses

func (dst *Untyped) XXX_Merge(src proto.Message)

func (*Untyped) XXX_Size Uses

func (m *Untyped) XXX_Size() int

func (*Untyped) XXX_Unmarshal Uses

func (m *Untyped) XXX_Unmarshal(b []byte) error

Package io_prometheus_client imports 3 packages (graph) and is imported by 357 packages. Updated 2018-07-19. Refresh now. Tools for package owners.