func (c *Client) addInternalMetric(name string, value int64) { c.metricPoints[name] = *metrics.NewPerintervalCounterMetric(name, int32(value)) }
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 }