Use O-RAN-SC
[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
30                 [datasets]="cpuChartData"
31                 [labels]="cpuChartLabels"
32                 [options]="cpuChartOptions"
33                 [colors]="cpuChartColors"
34                 [legend]="cpuChartLegend"
35                 [chartType]="cpuChartType"
36                 (click)="loadClickData()">
37         </canvas>
38         </mat-card-content>
39     </mat-card>
40 <mat-divider></mat-divider>
41             <mat-tab-group>
42                           <mat-tab label="Pendulum xApp">  
43                                     <mat-grid-list cols="3" rowHeight="3:2">
44                                             <mat-grid-tile>
45                                                 <mat-card>
46                                         <div>Additional Delay</div>
47                                         <mat-slider
48                                             thumbLabel
49                                             tickInterval="1"
50                                             min="0"
51                                             [max]="sliderDelayMax"
52                                             [(ngModel)]="delay" (click)="saveDelay()" ></mat-slider>
53                                                         </mat-card>
54                                             </mat-grid-tile>
55                                         <mat-grid-tile>
56                                             <mat-card class="bar-chart-card">
57                                                 <mat-card-header>
58                                                     <mat-card-title>Pendulum Control Loop Latency</mat-card-title>
59                                                 </mat-card-header>
60                                                 <mat-card-content>
61                                                     <canvas baseChart
62                                                         [datasets]="latencyChartData"
63                                                         [labels]="latencyChartLabels"
64                                                         [options]="latencyChartOptions"
65                                                         [colors]="latencyChartColors"
66                                                         [legend]="latencyChartLegend"
67                                                         [chartType]="latencyChartType"
68                                                         (click)="loadClickData()">
69                                                 </canvas>
70                                                 </mat-card-content>
71                                             </mat-card>
72                                         </mat-grid-tile>
73                                         <mat-grid-tile>
74                                             <mat-card class="bar-chart-card">
75                                                 <mat-card-header>
76                                                     <mat-card-title>Pendulum Control Load</mat-card-title>
77                                                 </mat-card-header>
78                                                 <mat-card-content>
79                                                     <canvas baseChart
80                                                         [datasets]="loadChartData"
81                                                         [labels]="loadChartLabels"
82                                                         [options]="loadChartOptions"
83                                                         [colors]="loadChartColors"
84                                                         [legend]="loadChartLegend"
85                                                         [chartType]="loadChartType"
86                                                         (click)="loadClickData()">
87                                                 </canvas>
88                                                 </mat-card-content>
89                                             </mat-card>
90                                         </mat-grid-tile>
91                                     </mat-grid-list>
92
93                           </mat-tab>
94                           <mat-tab label="Reporting xApp">  
95                                 <mat-grid-list cols="3" rowHeight="3:2">
96                                     <mat-grid-tile>
97
98 <!--                                            <mat-slide-toggle labelPosition="before" [(ngModel)]="checked" (click)="saveLoad($event)" >Additional Load</mat-slide-toggle> -->
99                                                 <mat-card>
100                                         <div>Additional Load</div>
101                                         <mat-slider
102                                             thumbLabel
103                                             tickInterval="1"
104                                             min="0"
105                                             [max]="sliderLoadMax"
106                                             [(ngModel)]="load" (click)="saveLoad()" ></mat-slider>
107                                                         </mat-card>
108
109                                     </mat-grid-tile>
110                                 </mat-grid-list>
111                                 
112                           </mat-tab>
113                         </mat-tab-group>
114
115
116 </div>
117         <app-config-event></app-config-event>