diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-06-18 00:42:22 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2018-06-18 22:29:55 +0200 |
commit | ee66af78c42c4d7ff33f104415bc09d60dbdc27b (patch) | |
tree | 834e494c29d339940a5a7036671650e439e3864d /webapp/src/app/@core-xds/services/xdsagent.service.ts | |
parent | 72c9174cecdfbe4cde9baa71c0c02d0bee753224 (diff) |
Added Supervision/Monitoring support
Added new API supervisor/* to control and get status of AGL XDS
Supervisor.
Also add new panel in dashboard to control and visualized data
collected by the supervision (visualiazation is based on Granafa).
Change-Id: I093470f6e384e96a0856b233390e85a98911162e
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 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/webapp/src/app/@core-xds/services/xdsagent.service.ts b/webapp/src/app/@core-xds/services/xdsagent.service.ts index adbee98..002c84b 100644 --- a/webapp/src/app/@core-xds/services/xdsagent.service.ts +++ b/webapp/src/app/@core-xds/services/xdsagent.service.ts @@ -665,6 +665,21 @@ export class XDSAgentService { { cols: cols, rows: rows }); } + /*** + ** Supervision + ***/ + getTopoSupervisor(): Observable<any> { + return this._get('/supervisor/topo'); + } + + startTraceSupervisor(cfg: any): Observable<any> { + return this._post('/supervisor/trace/start', cfg); + } + + stopTraceSupervisor(cfg: any): Observable<any> { + return this._post('/supervisor/trace/stop', cfg); + } + /** ** Private functions ***/ |