[MM-41200] Add OnSendDailyTelemetry() plugin hook (#19387)

This commit is contained in:
Ben Schumacher
2022-02-10 06:20:00 +01:00
committed by GitHub
parent 7c9708ef49
commit 0d67995eb4
6 changed files with 98 additions and 1 deletions
+6
View File
@@ -200,3 +200,9 @@ func (hooks *hooksTimerLayer) OnInstall(c *Context, event model.OnInstallEvent)
hooks.recordTime(startTime, "OnInstall", _returnsA == nil)
return _returnsA
}
func (hooks *hooksTimerLayer) OnSendDailyTelemetry() {
startTime := timePkg.Now()
hooks.hooksImpl.OnSendDailyTelemetry()
hooks.recordTime(startTime, "OnSendDailyTelemetry", true)
}