- putDelay(value: number) {
- //this.loadMetrics = this.getRandomValue();
- const jsonValue = '{ "delay": ' + value + ' }';
- console.log(jsonValue);
- this.httpClient.put(this.hostURL + this.delayPath, jsonValue , this.httpOptions).subscribe((res) => {
- console.log(res);
+ // Gets xApp metrics Kibana url for the named application
+ getAppMetricsUrl(appName: string) {
+ const path = this.dashboardSvc.buildPath(this.component, null, 'metrics');
+ return this.httpClient.get(path, {
+ params: new HttpParams()
+ .set('app', appName)