eb397423cff82e4cd43669e7c3d5d7fd292ab30b
[portal/ric-dashboard.git] / dashboard / webapp-frontend / src / assets / mockdata / config.json
1 [
2   {
3     "metadata": {
4       "name": "UE Event Collector",
5       "configName": "UEEC-appconfig",
6       "namespace": "ricxapp"
7     },
8     "descriptor": {
9       "definitions": {},
10       "$schema": "http://json-schema.org/draft-07/schema#",
11       "$id": "http://example.com/root.json",
12       "type": "object",
13       "title": "The Root Schema",
14       "required": [
15         "local",
16         "logger",
17         "rmr",
18         "db",
19         "controls",
20         "metrics"
21       ],
22       "properties": {
23         "local": {
24           "$id": "#/properties/local",
25           "type": "object",
26           "title": "The Local Schema",
27           "required": [
28             "host"
29           ],
30           "properties": {
31             "host": {
32               "$id": "#/properties/local/properties/host",
33               "type": "string",
34               "title": "The Host Schema",
35               "default": "",
36               "examples": [
37                 ":8080"
38               ],
39               "pattern": "^(.*)$"
40             }
41           }
42         },
43         "logger": {
44           "$id": "#/properties/logger",
45           "type": "object",
46           "title": "The Logger Schema",
47           "required": [
48             "level"
49           ],
50           "properties": {
51             "level": {
52               "$id": "#/properties/logger/properties/level",
53               "type": "integer",
54               "title": "The Level Schema",
55               "default": 0,
56               "examples": [
57                 3
58               ]
59             }
60           }
61         },
62         "rmr": {
63           "$id": "#/properties/rmr",
64           "type": "object",
65           "title": "The Rmr Schema",
66           "required": [
67             "protPort",
68             "maxSize",
69             "numWorkers",
70             "txMessages",
71             "rxMessages"
72           ],
73           "properties": {
74             "protPort": {
75               "$id": "#/properties/rmr/properties/protPort",
76               "type": "string",
77               "title": "The Protport Schema",
78               "default": "",
79               "examples": [
80                 "tcp:4560"
81               ],
82               "pattern": "^(.*)$"
83             },
84             "maxSize": {
85               "$id": "#/properties/rmr/properties/maxSize",
86               "type": "integer",
87               "title": "The Maxsize Schema",
88               "default": 0,
89               "examples": [
90                 2072
91               ]
92             },
93             "numWorkers": {
94               "$id": "#/properties/rmr/properties/numWorkers",
95               "type": "integer",
96               "title": "The Numworkers Schema",
97               "default": 0,
98               "examples": [
99                 1
100               ]
101             },
102             "txMessages": {
103               "$id": "#/properties/rmr/properties/txMessages",
104               "type": "array",
105               "title": "The Txmessages Schema",
106               "items": {
107                 "$id": "#/properties/rmr/properties/txMessages/items",
108                 "type": "string",
109                 "title": "The Items Schema",
110                 "default": "",
111                 "examples": [
112                   "RIC_SUB_REQ",
113                   "RIC_SUB_DEL_REQ"
114                 ],
115                 "pattern": "^(.*)$"
116               }
117             },
118             "rxMessages": {
119               "$id": "#/properties/rmr/properties/rxMessages",
120               "type": "array",
121               "title": "The Rxmessages Schema",
122               "items": {
123                 "$id": "#/properties/rmr/properties/rxMessages/items",
124                 "type": "string",
125                 "title": "The Items Schema",
126                 "default": "",
127                 "examples": [
128                   "RIC_SUB_RESP",
129                   "RIC_SUB_FAILURE",
130                   "RIC_SUB_DEL_RESP",
131                   "RIC_SUB_DEL_FAILURE",
132                   "RIC_INDICATION"
133                 ],
134                 "pattern": "^(.*)$"
135               }
136             }
137           }
138         },
139         "db": {
140           "$id": "#/properties/db",
141           "type": "object",
142           "title": "The Db Schema",
143           "required": [
144             "host",
145             "port",
146             "namespaces"
147           ],
148           "properties": {
149             "host": {
150               "$id": "#/properties/db/properties/host",
151               "type": "string",
152               "title": "The Host Schema",
153               "default": "",
154               "examples": [
155                 "localhost"
156               ],
157               "pattern": "^(.*)$"
158             },
159             "port": {
160               "$id": "#/properties/db/properties/port",
161               "type": "integer",
162               "title": "The Port Schema",
163               "default": 0,
164               "examples": [
165                 6379
166               ]
167             },
168             "namespaces": {
169               "$id": "#/properties/db/properties/namespaces",
170               "type": "array",
171               "title": "The Namespaces Schema",
172               "items": {
173                 "$id": "#/properties/db/properties/namespaces/items",
174                 "type": "string",
175                 "title": "The Items Schema",
176                 "default": "",
177                 "examples": [
178                   "sdl",
179                   "rnib"
180                 ],
181                 "pattern": "^(.*)$"
182               }
183             }
184           }
185         },
186         "controls": {
187           "$id": "#/properties/controls",
188           "type": "object",
189           "title": "The Controls Schema",
190           "required": [
191             "active",
192             "requestorId",
193             "ranFunctionId",
194             "ricActionId",
195             "interfaceId"
196           ],
197           "properties": {
198             "active": {
199               "$id": "#/properties/controls/properties/active",
200               "type": "boolean",
201               "title": "The Active Schema",
202               "default": false,
203               "examples": [
204                 true
205               ]
206             },
207             "requestorId": {
208               "$id": "#/properties/controls/properties/requestorId",
209               "type": "integer",
210               "title": "The Requestorid Schema",
211               "default": 0,
212               "examples": [
213                 66
214               ]
215             },
216             "ranFunctionId": {
217               "$id": "#/properties/controls/properties/ranFunctionId",
218               "type": "integer",
219               "title": "The Ranfunctionid Schema",
220               "default": 0,
221               "examples": [
222                 1
223               ]
224             },
225             "ricActionId": {
226               "$id": "#/properties/controls/properties/ricActionId",
227               "type": "integer",
228               "title": "The Ricactionid Schema",
229               "default": 0,
230               "examples": [
231                 0
232               ]
233             },
234             "interfaceId": {
235               "$id": "#/properties/controls/properties/interfaceId",
236               "type": "object",
237               "title": "The Interfaceid Schema",
238               "required": [
239                 "globalENBId"
240               ],
241               "properties": {
242                 "globalENBId": {
243                   "$id": "#/properties/controls/properties/interfaceId/properties/globalENBId",
244                   "type": "object",
245                   "title": "The Globalenbid Schema",
246                   "required": [
247                     "plmnId",
248                     "eNBId"
249                   ],
250                   "properties": {
251                     "plmnId": {
252                       "$id": "#/properties/controls/properties/interfaceId/properties/globalENBId/properties/plmnId",
253                       "type": "string",
254                       "title": "The Plmnid Schema",
255                       "default": "",
256                       "examples": [
257                         "43962"
258                       ],
259                       "pattern": "^(.*)$"
260                     },
261                     "eNBId": {
262                       "$id": "#/properties/controls/properties/interfaceId/properties/globalENBId/properties/eNBId",
263                       "type": "string",
264                       "title": "The Enbid Schema",
265                       "default": "",
266                       "examples": [
267                         "43962"
268                       ],
269                       "pattern": "^(.*)$"
270                     }
271                   }
272                 }
273               }
274             }
275           }
276         },
277         "metrics": {
278           "$id": "#/properties/metrics",
279           "type": "array",
280           "title": "The Metrics Schema",
281           "items": {
282             "$id": "#/properties/metrics/items",
283             "type": "object",
284             "title": "The Items Schema",
285             "required": [
286               "name",
287               "type",
288               "enabled",
289               "description"
290             ],
291             "properties": {
292               "name": {
293                 "$id": "#/properties/metrics/items/properties/name",
294                 "type": "string",
295                 "title": "The Name Schema",
296                 "default": "",
297                 "examples": [
298                   "UEContextCreated"
299                 ],
300                 "pattern": "^(.*)$"
301               },
302               "type": {
303                 "$id": "#/properties/metrics/items/properties/type",
304                 "type": "string",
305                 "title": "The Type Schema",
306                 "default": "",
307                 "examples": [
308                   "counter"
309                 ],
310                 "pattern": "^(.*)$"
311               },
312               "enabled": {
313                 "$id": "#/properties/metrics/items/properties/enabled",
314                 "type": "boolean",
315                 "title": "The Enabled Schema",
316                 "default": false,
317                 "examples": [
318                   true
319                 ]
320               },
321               "description": {
322                 "$id": "#/properties/metrics/items/properties/description",
323                 "type": "string",
324                 "title": "The Description Schema",
325                 "default": "",
326                 "examples": [
327                   "The total number of UE context creation events"
328                 ],
329                 "pattern": "^(.*)$"
330               }
331             }
332           }
333         }
334       }
335     },
336     "config": {
337       "local": {
338         "host": ":8080"
339       },
340       "logger": {
341         "level": 3
342       },
343       "rmr": {
344         "protPort": "tcp:4560",
345         "maxSize": 2072,
346         "numWorkers": 1,
347         "txMessages": [ "RIC_SUB_REQ", "RIC_SUB_DEL_REQ" ],
348         "rxMessages": [ "RIC_SUB_RESP", "RIC_SUB_FAILURE", "RIC_SUB_DEL_RESP", "RIC_SUB_DEL_FAILURE", "RIC_INDICATION" ]
349       },
350       "db": {
351         "host": "localhost",
352         "port": 6379,
353         "namespaces": [ "sdl", "rnib" ]
354       },
355       "controls": {
356         "active": true,
357         "requestorId": 66,
358         "ranFunctionId": 1,
359         "ricActionId": 0,
360         "interfaceId": {
361           "globalENBId": {
362             "plmnId": "43962",
363             "eNBId": "43962"
364           }
365         }
366       },
367       "metrics": [
368         {
369           "name": "UEContextCreated",
370           "type": "counter",
371           "enabled": true,
372           "description": "The total number of UE context creation events"
373         },
374         {
375           "name": "UEContextReleased",
376           "type": "counter",
377           "enabled": true,
378           "description": "The total number of UE context release events"
379         }
380       ]
381     },
382     "layout": [
383       {
384         "key": "controls.active",
385         "title": "Active"
386       },
387       {
388         "key": "controls.requestorId",
389         "title": "Requestor Id"
390       },
391       {
392         "key": "controls.ranFunctionId",
393         "title": "RAN Function Id"
394       },
395       {
396         "key": "controls.ricActionId",
397         "title": "RIC Action Id"
398       },
399       {
400         "key": "controls.interfaceId.globalENBId",
401         "title": "Global ENB Id"
402       },
403       {
404         "type": "flex",
405         "flex-flow": "row wrap",
406         "items": [
407           {
408             "key": "controls.interfaceId.globalENBId.plmnId",
409             "title": "Plmn Id"
410           },
411           {
412             "key": "controls.interfaceId.globalENBId.eNBId",
413             "title": "ENB Id"
414
415           }
416         ]
417       }
418     ]
419   }
420 ]