github.com/prometheus/client_model/go.MetricType.Enum (method)

8 uses

	github.com/prometheus/client_model/go (current package)
		metrics.pb.go#L46: func (x MetricType) Enum() *MetricType {

	github.com/prometheus/client_golang/prometheus
		registry.go#L653: 			metricFamily.Type = dto.MetricType_GAUGE.Enum()
		registry.go#L655: 			metricFamily.Type = dto.MetricType_COUNTER.Enum()
		registry.go#L657: 			metricFamily.Type = dto.MetricType_SUMMARY.Enum()
		registry.go#L659: 			metricFamily.Type = dto.MetricType_UNTYPED.Enum()
		registry.go#L661: 			metricFamily.Type = dto.MetricType_HISTOGRAM.Enum()

	github.com/prometheus/common/expfmt
		text_parse.go#L233: 		p.currentMF.Type = dto.MetricType_UNTYPED.Enum()
		text_parse.go#L512: 	p.currentMF.Type = dto.MetricType(metricType).Enum()