Added Supervision/Monitoring support
[src/xds/xds-agent.git] / webapp / src / app / @core-xds / services / xdsagent.service.ts
index adbee98..002c84b 100644 (file)
@@ -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
   ***/