22c27697d337cc16e1c8a78aebb7d7613684279a
[eliot.git] / blueprints / common / eliot-ui / frontend-src / src / app / datainterface.ts
1 export interface nodeDetailss {
2     nodeName: string;
3     position: number;
4     role: string;
5     nodeStatus: string;
6 }
7
8 export interface nodeDetails {
9     eliotNodes: nodinfo[];
10 }
11
12 export interface nodinfo {
13   nodeName: string;
14   nodeStatus: string;
15   nodeRole: string;
16   age: string;
17   version: string;
18   internalIp: string;
19   externalIp: string;
20   osImage: string;
21   kernel: string;
22   containerRuntime: string;
23 }
24
25 export interface podNamespace {
26   podNamespaces: string[];
27 }
28
29 export interface podDetails {
30   eliotPods: podinfo[];
31 }
32
33 export interface podinfo {
34   namespace: string;
35   name: string;
36   ready: string;
37   status: string;
38   restarts: string;
39   age: string;
40   ip: string;
41   node: string;
42   nominated: string;
43   readiness: string;
44 }
45
46 export interface uninstallinfo {
47   id: string;
48   appName: string;
49   nodeIp: string;
50   date: string;
51   runningStatus: string;
52 }
53
54 export interface currentDeployDetails {
55   currentDeployArray: currentDeployInfo[];
56 }
57
58 export interface currentDeployInfo {
59   deployId: string;
60   appName: string;
61   yamlName: string;
62   nodeIp: string;
63   runningStatus: string;
64 }
65
66
67 export interface nodesDropDownDetails {
68   nodesArray: nodesDropDown[];
69 }
70
71 export interface nodesDropDown {
72   value: string;
73   viewValue: string;
74 }
75
76 export interface serviceDetails {
77   eliotServices: serviceinfo[];
78 }
79
80 export interface serviceinfo {
81   serviceName: string;
82   serviceType: string;
83   clusterIp: string;
84   externalIp: string;
85   ports: string;
86   age: string;
87   selector: string;
88 }
89
90 export interface deploymentData {
91   deployFile: any;
92 }
93
94 export interface historyDetails {
95   eliotHistory: historyInformation[];
96 }
97
98 export interface historyinfo {
99   namespace: string;
100   name: string;
101 }
102
103 export interface historyInformation {
104   id: string;
105   date: string;
106   csarPackage: string;
107   yamlFile: string;
108   month: string;
109   status: string;
110 }
111
112 export interface historyPostInfo {
113   fileDownload: fileDownload[];
114 }
115
116 export interface fileDownload {
117   id: string;
118   fileName: string;
119 }
120
121 export interface nodeDeploy {
122   deployNodeName: string;
123   deployNodeLabel: string;
124 }
125
126
127 export interface dashboardInfo {
128   appDeployStatus: appDeployStatus;
129   stabilityStatus: stabilityStatus;
130   historyStatus: historyStatus;
131 }
132
133 export interface appDeployStatus {
134   deploySuccess: number;
135   deployFailed: number;
136   deployPending: number;
137 }
138
139 export interface stabilityStatus {
140   nodesStable: number;
141   nodesUnstable: number;
142   podsStable: number;
143   podsUnstable: number;
144   servicesRunning: number;
145 }
146
147 export interface historyStatus {
148   jan: number;
149   feb: number;
150   mar: number;
151   apr: number;
152   may: number;
153   jun: number;
154   jul: number;
155   aug: number;
156   sep: number;
157   oct: number;
158   nov: number;
159   dec: number;
160 }