29ccad1cd4d3ce4a8b91c191d355978e627cd643
[portal/ric-dashboard.git] / dashboard / webapp-frontend / src / app / interfaces / e2-mgr.types.ts
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 // Models of data used by the E2 Manager
22
23 export interface E2ErrorResponse {
24   errorCode: string;
25   errorMessage: string;
26 }
27
28 export interface E2NodebIdentityGlobalNbId {
29   nbId: string;
30   plmnId: string;
31 }
32
33 export interface E2NodebIdentity {
34   inventoryName: string;
35   globalNbId: E2NodebIdentityGlobalNbId;
36 }
37
38 export interface E2GetNodebResponse {
39   connectionStatus: string; // actually one-of, but model as string
40   enb: object; // don't model this until needed
41   failureType: string; // actually one-of, but model as string
42   gnb: object; // don't model this until needed
43   ip: string;
44   nodeType: string; // actually one-of, but model as string
45   port: number; // actually integer
46   ranName: string;
47   setupFailure: object; // don't model this until needed
48 }
49
50 export interface E2RanDetails {
51   nodebIdentity: E2NodebIdentity;
52   nodebStatus: E2GetNodebResponse;
53 }
54
55 export interface RanDialogFormData {
56   ranIp: string;
57   ranName: string;
58   ranPort: string;
59   ranType: string;
60 }
61
62 export interface StatsDialogFormData {
63   appName: string;
64   metricUrl: string;
65 }
66
67 export interface StatsDetails {
68   appId: number;
69   appName: string;
70   metricUrl: string;
71 }
72
73 export interface AppStats {
74   instanceKey: string;
75   statsDetails: StatsDetails;
76 }
77