type github.com/prometheus/client_model/go.MetricType
16 uses
github.com/prometheus/client_model/go (current package)
metrics.pb.go#L21: type MetricType int32
metrics.pb.go#L24: MetricType_COUNTER MetricType = 0
metrics.pb.go#L25: MetricType_GAUGE MetricType = 1
metrics.pb.go#L26: MetricType_SUMMARY MetricType = 2
metrics.pb.go#L27: MetricType_UNTYPED MetricType = 3
metrics.pb.go#L28: MetricType_HISTOGRAM MetricType = 4
metrics.pb.go#L46: func (x MetricType) Enum() *MetricType {
metrics.pb.go#L47: p := new(MetricType)
metrics.pb.go#L51: func (x MetricType) String() string {
metrics.pb.go#L54: func (x *MetricType) UnmarshalJSON(data []byte) error {
metrics.pb.go#L59: *x = MetricType(value)
metrics.pb.go#L62: func (MetricType) EnumDescriptor() ([]byte, []int) {
metrics.pb.go#L515: Type *MetricType `protobuf:"varint,3,opt,name=type,enum=io.prometheus.client.MetricType" json:"type,omitempty"`
metrics.pb.go#L560: func (m *MetricFamily) GetType() MetricType {
github.com/prometheus/common/expfmt
text_parse.go#L512: p.currentMF.Type = dto.MetricType(metricType).Enum()
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |