App metrics visualization manage
[portal/ric-dashboard.git] / dashboard / webapp-frontend / src / app / stats / stats-dialog.component.html
1 <!--
2   ========================LICENSE_START=================================
3   O-RAN-SC
4   %%
5   Copyright (C) 2019 AT&T Intellectual Property
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
21 <div mat-dialog-title>
22     App Metrics Visualization
23 </div>
24 <form [formGroup]="statsDialogForm" novalidate autocomplete="off" (ngSubmit)="setupStats(statsDialogForm.value)">
25   <div mat-dialog-content>
26     <mat-form-field class="input-display-block">
27       <input matInput type="text" placeholder="App Name" formControlName="appName">
28       <mat-hint align="end">Example: MC</mat-hint>
29       <mat-error *ngIf="validateControl('appName') && hasError('appName', 'required')">App Name is required</mat-error>
30     </mat-form-field>
31     <mat-form-field class="input-display-block">
32       <input matInput type="text" placeholder="Metrics Url" formControlName="metricUrl">
33       <mat-error *ngIf="validateControl('metricUrl') && hasError('metricUrl', 'required')">Metrics Url is required</mat-error>
34     </mat-form-field>
35   </div>
36   <div mat-dialog-actions class="modal-footer justify-content-center">
37     <button class="mat-raised-button" [mat-dialog-close]="false">Cancel</button>
38     <button class="mat-raised-button mat-primary" [disabled]="!statsDialogForm.valid || processing">OK</button>
39   </div>
40 </form>