Ejemplo n.º 1
0
func (c *Client) addInternalMetric(name string, value int64) {

	c.metricPoints[name] = *metrics.NewPerintervalCounterMetric(name, int32(value))
}
Ejemplo n.º 2
0
func (p *HeartbeatProcessor) ProcessHeartbeatEventsErrorCount(e *events.Heartbeat, origin string) *metrics.WMetric {
	stat := "ops." + origin + ".heartbeats.eventsErrorCount"
	metric := metrics.NewPerintervalCounterMetric(stat, int32(e.GetErrorCount()))

	return metric
}