Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
PushUrl string = "http://127.0.0.1:2058/v1/push"
)
Functions ¶
func NewMetricValue ¶
func NewMetricValue(metric string, value int64) *dataobj.MetricValue
Types ¶
type CounterMetric ¶
var Counter *CounterMetric
func NewCounter ¶
func NewCounter(prefix string) *CounterMetric
func (*CounterMetric) Dump ¶
func (c *CounterMetric) Dump() map[string]int
func (*CounterMetric) Set ¶
func (c *CounterMetric) Set(metric string, value int)
Click to show internal directories.
Click to hide internal directories.