diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2019-07-13 10:21:53 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2019-07-14 14:06:14 +0200 |
commit | 701548c5b25efba70c3818e96a4394701cfb913e (patch) | |
tree | 347881ae607acda17f2014a5e7ed1aadee055145 /webapp/src/app/@core-xds/services/xdsagent.service.ts | |
parent | 247bb7c2db5f0d48178398599348249bf886ebbc (diff) |
Add LowCollector & rename Supervisor to Monitoringsandbox/SebD/dev_supervisor_als_2019
Change-Id: Ibd78f1200ed71b0100ebd48dddb9236377e2fb36
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'webapp/src/app/@core-xds/services/xdsagent.service.ts')
-rw-r--r-- | webapp/src/app/@core-xds/services/xdsagent.service.ts | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/webapp/src/app/@core-xds/services/xdsagent.service.ts b/webapp/src/app/@core-xds/services/xdsagent.service.ts index 002c84b..35abe46 100644 --- a/webapp/src/app/@core-xds/services/xdsagent.service.ts +++ b/webapp/src/app/@core-xds/services/xdsagent.service.ts @@ -1,6 +1,6 @@ /** * @license -* Copyright (C) 2017-2018 "IoT.bzh" +* Copyright (C) 2017-2019 "IoT.bzh" * Author Sebastien Douheret <sebastien@iot.bzh> * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -666,18 +666,33 @@ export class XDSAgentService { } /*** - ** Supervision + ** Monitoring ***/ - getTopoSupervisor(): Observable<any> { - return this._get('/supervisor/topo'); + getTopoMonitoring(): Observable<any> { + return this._get('/monitoring/topo'); } - startTraceSupervisor(cfg: any): Observable<any> { - return this._post('/supervisor/trace/start', cfg); + startTraceMonitoring(cfg: any): Observable<any> { + return this._post('/monitoring/trace/start', cfg); } - stopTraceSupervisor(cfg: any): Observable<any> { - return this._post('/supervisor/trace/stop', cfg); + stopTraceMonitoring(cfg: any): Observable<any> { + return this._post('/monitoring/trace/stop', cfg); + } + + /*** + ** AGL Low Collector + ***/ + startLowCollector(cfg: any): Observable<any> { + return this._post('/monitoring/alc/start', cfg); + } + + stopLowCollector(): Observable<any> { + return this._post('/monitoring/alc/stop', {}); + } + + resetLowCollector(): Observable<any> { + return this._post('/monitoring/alc/reset', {}); } /** @@ -692,7 +707,7 @@ export class XDSAgentService { error => { this.alert.error('ERROR while registering to all events: ' + error); }, - ); + ); } private _getServer(ID: string): IXDServerCfg { |