Use O-RAN-SC
[portal/ric-dashboard.git] / webapp-frontend / src / app / services / control / control.service.ts
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 import { Injectable } from '@angular/core';
21
22 @Injectable()
23 export class ControlService {
24
25 data = [{
26     id: 1,
27     xAppName: 'Pendulum Control',
28     xAppType: 'Type1',
29     podId: 'dc-ric-app-b8c6668d8-56bjb',
30     k8Status: 'running',
31     age: '25 mins',
32   }, {
33     id: 2,
34     xAppName: 'Dual Connectivity',
35     xAppType: 'Type2',
36     podId: 'ac-ric-app-5ddbc59ffd-qc6rp',
37     k8Status: 'failed',
38     age: '5 mins',
39
40   }, {
41     id: 3,
42     xAppName: 'ANR',
43     xAppType: 'Type1',
44     podId: 'dc-ric-app-694c45b75f-nqdtt',
45     k8Status: 'pending',
46     age: '55 mins',
47   }, {
48     id: 4,
49     xAppName: 'Admission Control',
50     xAppType: 'Type2',
51     podId: 'ac-ric-app-4ddfc59ffd-qc7tp',
52     k8Status: 'unkown',
53     age: '5 mins',
54
55   }, {
56     id: 5,
57     xAppName: 'Admission Control',
58     xAppType: 'Type2',
59     podId: 'ac-ric-app-3ffgc59ffd-qc5rp',
60     k8Status: 'crashLoopBackoff',
61     age: '5 mins',
62
63   }, {
64     id: 6,
65     xAppName: 'ANR',
66     xAppType: 'Type1',
67     podId: 'dc-ric-app-345f44r75f-nertt',
68     k8Status: 'completed',
69     age: '55 mins',
70   }, {
71     id: 7,
72     xAppName: 'Admission Control',
73     xAppType: 'Type2',
74     podId: 'ac-ric-app-5ddbc67ffd-qc6rp',
75     k8Status: 'completed',
76     age: '5 mins',
77
78   }, {
79     id: 8,
80     xAppName: 'ANR',
81     xAppType: 'Type1',
82     podId: 'dc-ric-app-694c23b75f-nqdtt',
83     k8Status: 'completed',
84     age: '55 mins',
85
86   }];
87
88   getData() {
89     return this.data; // @TODO implement the service to fetch the backend data
90   }
91 }