Esempio n. 1
0
func (this *subMetrics) ConsumedOk(appid, topic, ver string) {
	telemetry.UpdateCounter(appid, topic, ver, "subd.ok", 1, &this.consumedMapMu, this.ConsumedMap)
}
Esempio n. 2
0
func (this *pubMetrics) PubOk(appid, topic, ver string) {
	if this.expPubOk != nil {
		this.expPubOk.Add(1)
	}
	telemetry.UpdateCounter(appid, topic, ver, "pub.ok", 1, &this.pubOkMu, this.PubOkMap)
}
Esempio n. 3
0
func (this *subMetrics) ConsumeOk(appid, topic, ver string) {
	if this.expConsumeOk != nil {
		this.expConsumeOk.Add(1)
	}
	telemetry.UpdateCounter(appid, topic, ver, "sub.ok", 1, &this.consumeMapMu, this.ConsumeMap)
}
Esempio n. 4
0
func (this *pubMetrics) PubFail(appid, topic, ver string) {
	if this.expPubFail != nil {
		this.expPubFail.Add(1)
	}
	telemetry.UpdateCounter(appid, topic, ver, "pub.fail", 1, &this.pubFailMu, this.PubFailMap)
}