From 7bf59016c6ecba1ac732e3c4f97a98420bc645d0 Mon Sep 17 00:00:00 2001 From: rozetko Date: Mon, 8 Apr 2019 21:09:47 +0300 Subject: [PATCH] Enable "Analytics is down" webhooks --- server/src/services/analytics_service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/services/analytics_service.ts b/server/src/services/analytics_service.ts index 01813ab..21a612a 100644 --- a/server/src/services/analytics_service.ts +++ b/server/src/services/analytics_service.ts @@ -182,14 +182,14 @@ export class AnalyticsService { this.sendTask(this._queue.shift(), true); } console.log(msg); - //this._alertService.sendMsg(msg, WebhookType.RECOVERY); + this._alertService.sendMsg(msg, WebhookType.RECOVERY); } private async _onAnalyticsDown() { const msg = 'Analytics is down'; console.log(msg); // TODO: enable analytics down webhooks when it stops bouncing - // this._alertService.sendMsg(msg); + this._alertService.sendMsg(msg, WebhookType.FAILURE); if(this._productionMode && !this._inDocker) { await AnalyticsService._runAnalyticsProcess(this._zmqConnectionString); }