Documentation
¶
Index ¶
- func InitMeter(p Meter)
- type Meter
- type Metric
- type MetricType
- type T
- type Value
- func Counter(n int64, opts ...ValueOption) *Value
- func CounterF(n float64, opts ...ValueOption) *Value
- func Histogram(n int64, opts ...ValueOption) *Value
- func HistogramF(n float64, opts ...ValueOption) *Value
- func RateCounter(n int64, opts ...ValueOption) *Value
- func RateCounterF(n float64, opts ...ValueOption) *Value
- func Store(n int64, opts ...ValueOption) *Value
- func StoreF(n float64, opts ...ValueOption) *Value
- func Timer(n int64, opts ...ValueOption) *Value
- func TimerF(n float64, opts ...ValueOption) *Value
- type ValueOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Meter ¶
type Meter interface {
NewMetric(name string, types []MetricType, tagNames []string) (Metric, error)
}
type MetricType ¶
type MetricType string
const ( MetricTypeCounter MetricType = "counter" MetricTypeRateCounter MetricType = "rate_counter" MetricTypeStore MetricType = "store" MetricTypeTimer MetricType = "timer" MetricTypeHistogram MetricType = "histogram" )
type Value ¶
type Value struct {
// contains filtered or unexported fields
}
func Counter ¶
func Counter(n int64, opts ...ValueOption) *Value
func CounterF ¶
func CounterF(n float64, opts ...ValueOption) *Value
func Histogram ¶
func Histogram(n int64, opts ...ValueOption) *Value
func HistogramF ¶
func HistogramF(n float64, opts ...ValueOption) *Value
func RateCounter ¶
func RateCounter(n int64, opts ...ValueOption) *Value
func RateCounterF ¶
func RateCounterF(n float64, opts ...ValueOption) *Value
func Store ¶
func Store(n int64, opts ...ValueOption) *Value
func StoreF ¶
func StoreF(n float64, opts ...ValueOption) *Value
func Timer ¶
func Timer(n int64, opts ...ValueOption) *Value
func TimerF ¶
func TimerF(n float64, opts ...ValueOption) *Value
func (*Value) GetType ¶
func (v *Value) GetType() MetricType
type ValueOption ¶
type ValueOption func(v *Value)
func WithSuffix ¶
func WithSuffix(suffix string) ValueOption
Click to show internal directories.
Click to hide internal directories.