Show AC app data visualization in new metrics tab
[portal/ric-dashboard.git] / webapp-frontend / src / app / stats / stats.component.html
1 <!--
2   ========================LICENSE_START=================================
3   O-RAN-SC
4   %%
5   Copyright (C) 2019 AT&T Intellectual Property and Nokia
6   %%
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ========================LICENSE_END===================================
19   -->
20 <div class="stats__section">
21
22         <h3 class="stats__header">Platform stats</h3>
23
24         <mat-card class="bar-chart-card">
25                 <mat-card-header>
26                         <mat-card-title>RIC Total Load</mat-card-title>
27                 </mat-card-header>
28                 <mat-card-content>
29                         <canvas baseChart [datasets]="cpuChartData" [labels]="cpuChartLabels" [options]="cpuChartOptions"
30                                 [colors]="cpuChartColors" [legend]="cpuChartLegend" [chartType]="cpuChartType" (click)="loadClickData()">
31                         </canvas>
32                 </mat-card-content>
33         </mat-card>
34
35         <mat-divider></mat-divider>
36
37         <mat-tab-group>
38                 <mat-tab label="Pendulum xApp">
39                         <mat-grid-list cols="3" rowHeight="3:2">
40                                 <mat-grid-tile>
41                                         <mat-card>
42                                                 <div>Additional Delay</div>
43                                                 <mat-slider thumbLabel tickInterval="1" min="0" [max]="sliderDelayMax" [(ngModel)]="delay"
44                                                         (click)="saveDelay()"></mat-slider>
45                                         </mat-card>
46                                 </mat-grid-tile>
47                                 <mat-grid-tile>
48                                         <mat-card class="bar-chart-card">
49                                                 <mat-card-header>
50                                                         <mat-card-title>Pendulum Control Loop Latency</mat-card-title>
51                                                 </mat-card-header>
52                                                 <mat-card-content>
53                                                         <canvas baseChart [datasets]="latencyChartData" [labels]="latencyChartLabels"
54                                                                 [options]="latencyChartOptions" [colors]="latencyChartColors" [legend]="latencyChartLegend"
55                                                                 [chartType]="latencyChartType" (click)="loadClickData()">
56                                                         </canvas>
57                                                 </mat-card-content>
58                                         </mat-card>
59                                 </mat-grid-tile>
60                                 <mat-grid-tile>
61                                         <mat-card class="bar-chart-card">
62                                                 <mat-card-header>
63                                                         <mat-card-title>Pendulum Control Load</mat-card-title>
64                                                 </mat-card-header>
65                                                 <mat-card-content>
66                                                         <canvas baseChart [datasets]="loadChartData" [labels]="loadChartLabels" [options]="loadChartOptions"
67                                                                 [colors]="loadChartColors" [legend]="loadChartLegend" [chartType]="loadChartType"
68                                                                 (click)="loadClickData()">
69                                                         </canvas>
70                                                 </mat-card-content>
71                                         </mat-card>
72                                 </mat-grid-tile>
73                         </mat-grid-list>
74                 </mat-tab>
75                 <mat-tab label="Reporting xApp">
76                         <mat-grid-list cols="3" rowHeight="3:2">
77                                 <mat-grid-tile>
78                                         <mat-card>
79                                                 <div>Additional Load</div>
80                                                 <mat-slider thumbLabel tickInterval="1" min="0" [max]="sliderLoadMax" [(ngModel)]="load"
81                                                         (click)="saveLoad()"></mat-slider>
82                                         </mat-card>
83                                 </mat-grid-tile>
84                         </mat-grid-list>
85                 </mat-tab>
86                 <mat-tab label="AC xApp">
87                         <mat-grid-list cols="3" rowHeight="3:2">
88                                 <mat-grid-tile>
89                                         <mat-card>
90                                                 <iframe [src]="metricsUrlAc"></iframe>
91                                         </mat-card>
92                                 </mat-grid-tile>
93                         </mat-grid-list>
94                 </mat-tab>
95         </mat-tab-group>
96
97 </div>
98
99 <rd-app-config-event></rd-app-config-event>