From d5b67cf1b081902c5b070ee639ae5b4438d78b7e Mon Sep 17 00:00:00 2001 From: rozetko Date: Fri, 6 Jul 2018 23:31:20 +0300 Subject: [PATCH] Change anomaly_id to predictor_id (#25) --- src/services/anomaly_service.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/anomaly_service.ts b/src/services/anomaly_service.ts index f7ac2c7..7d4ce35 100644 --- a/src/services/anomaly_service.ts +++ b/src/services/anomaly_service.ts @@ -58,7 +58,7 @@ export class AnomalyService { } async getSegments(key: AnomalyKey, from?: number, to?: number): Promise { - var payload: any = { anomaly_id: key }; + var payload: any = { predictor_id: key }; if(from !== undefined) { payload['from'] = from; } @@ -97,7 +97,7 @@ export class AnomalyService { async getAlertEnabled(key: AnomalyKey): Promise { var data = await this._backendSrv.get( - this._backendURL + '/alerts', { anomaly_id: key } + this._backendURL + '/alerts', { predictor_id: key } ); return data.enable as boolean; @@ -105,7 +105,7 @@ export class AnomalyService { async setAlertEnabled(key: AnomalyKey, value: boolean): Promise { return this._backendSrv.post( - this._backendURL + '/alerts', { anomaly_id: key, enable: value } + this._backendURL + '/alerts', { predictor_id: key, enable: value } ); }