- .subscribe((vnfd: {}[]) => {
- if (vnfd['monitoring-param'] !== undefined && vnfd['monitoring-param'].length > 0) {
- this.isLoadingMetricsResult = false;
- const location: string = environment.GRAFANA_URL + '/' + this.instanceID + '/osm-ns-metrics-metrics';
- window.open(location);
- } else {
- this.isLoadingMetricsResult = false;
- this.notifierService.notify('error', this.translateService.instant('GRAFANA.METRICSERROR'));
- }
- setTimeout(() => {
+ .subscribe((vnfd: VNFD): void => {
+ vnfd.vdu.forEach((vduData: VDU): void => {
+ if (vduData['monitoring-parameter'] !== undefined && vduData['monitoring-parameter'].length > 0) {
+ this.isLoadingMetricsResult = false;
+ const location: string = environment.GRAFANA_URL + '/' + this.instanceID + '/osm-ns-metrics-metrics';
+ window.open(location);
+ } else {
+ this.isLoadingMetricsResult = false;
+ this.notifierService.notify('error', this.translateService.instant('GRAFANA.METRICSERROR'));
+ }
+ });
+ setTimeout((): void => {