Additions to measurements
[ric-plt/vespamgr.git] / test / xApp_config_test_output.json
1 [
2     {
3         "metadata": {
4             "name": "xApp1",
5             "configName": "xApp1-appconfig",
6             "namespace": "default"
7         },
8         "descriptor": {
9             "$id": "http://example.com/root.json",
10             "$schema": "http://json-schema.org/draft-07/schema#",
11             "definitions": {
12
13             },
14             "properties": {
15                 "local": {
16                     "$id": "#/properties/local",
17                     "properties": {
18                         "host": {
19                             "$id": "#/properties/local/properties/host",
20                             "default": "",
21                             "examples": [
22                                 ":8080"
23                             ],
24                             "pattern": "^(.*)$",
25                             "title": "The Host Schema",
26                             "type": "string"
27                         }
28                     },
29                     "required": [
30                         "host"
31                     ],
32                     "title": "The Local Schema",
33                     "type": "object"
34                 },
35                 "logger": {
36                     "$id": "#/properties/logger",
37                     "properties": {
38                         "level": {
39                             "$id": "#/properties/logger/properties/level",
40                             "default": 0,
41                             "examples": [
42                                 3
43                             ],
44                             "title": "The Level Schema",
45                             "type": "integer"
46                         }
47                     },
48                     "required": [
49                         "level"
50                     ],
51                     "title": "The Logger Schema",
52                     "type": "object"
53                 },
54                 "metrics": {
55                     "$id": "#/properties/metrics",
56                     "items": {
57                         "$id": "#/properties/metrics/items",
58                         "properties": {
59                             "description": {
60                                 "$id": "#/properties/metrics/items/properties/description",
61                                 "default": "",
62                                 "examples": [
63                                     "Example counter 1"
64                                 ],
65                                 "pattern": "^(.*)$",
66                                 "title": "The Description Schema",
67                                 "type": "string"
68                             },
69                             "enabled": {
70                                 "$id": "#/properties/metrics/items/properties/enabled",
71                                 "default": false,
72                                 "examples": [
73                                     true
74                                 ],
75                                 "title": "The Enabled Schema",
76                                 "type": "boolean"
77                             },
78                             "name": {
79                                 "$id": "#/properties/metrics/items/properties/name",
80                                 "default": "",
81                                 "examples": [
82                                     "App1ExampleCounterOne"
83                                 ],
84                                 "pattern": "^(.*)$",
85                                 "title": "The Name Schema",
86                                 "type": "string"
87                             },
88                             "type": {
89                                 "$id": "#/properties/metrics/items/properties/type",
90                                 "default": "",
91                                 "examples": [
92                                     "counter"
93                                 ],
94                                 "pattern": "^(.*)$",
95                                 "title": "The Type Schema",
96                                 "type": "string"
97                             }
98                         },
99                         "required": [
100                             "name",
101                             "type",
102                             "enabled",
103                             "description"
104                         ],
105                         "title": "The Items Schema",
106                         "type": "object"
107                     },
108                     "title": "The Metrics Schema",
109                     "type": "array"
110                 }
111             },
112             "required": [
113                 "local",
114                 "logger",
115                 "metrics"
116             ],
117             "title": "ANR Descriptor Schema",
118             "type": "object"
119         },
120         "config": {
121             "local": {
122                 "host": ":8080"
123             },
124             "logger": {
125                 "level": 5
126             },
127             "measurements": [
128                 {
129                     "moId": "SEP-12/XAPP-1",
130                     "measType": "X2",
131                     "measId": "9001",
132                     "measInterval": "60",
133                     "metrics": [
134                         {
135                             "name": "App1ExampleCounterOne",
136                             "objectName": "App1ExampleCounterOneObject",
137                             "objectInstance": "App1ExampleCounterOneObjectInstance",
138                             "counterId": "0011",
139                             "type": "counter",
140                             "description": "Example counter 1"
141                         },
142                         {
143                             "name": "App1ExampleCounterTwo",
144                             "objectName": "App1ExampleCounterTwoObject",
145                             "objectInstance": "App1ExampleCounterTwoObjectInstance",
146                             "counterId": "0012",
147                             "type": "counter",
148                             "description": "Example counter 2"
149                         }
150                     ]
151                 }
152             ]
153         }
154     },
155     {
156         "metadata": {
157             "name": "xApp2",
158             "configName": "xApp2-appconfig",
159             "namespace": "default"
160         },
161         "descriptor": {
162             "$id": "http://example.com/root.json",
163             "$schema": "http://json-schema.org/draft-07/schema#",
164             "definitions": {
165
166             },
167             "properties": {
168                 "local": {
169                     "$id": "#/properties/local",
170                     "properties": {
171                         "host": {
172                             "$id": "#/properties/local/properties/host",
173                             "default": "",
174                             "examples": [
175                                 ":8080"
176                             ],
177                             "pattern": "^(.*)$",
178                             "title": "The Host Schema",
179                             "type": "string"
180                         }
181                     },
182                     "required": [
183                         "host"
184                     ],
185                     "title": "The Local Schema",
186                     "type": "object"
187                 },
188                 "logger": {
189                     "$id": "#/properties/logger",
190                     "properties": {
191                         "level": {
192                             "$id": "#/properties/logger/properties/level",
193                             "default": 0,
194                             "examples": [
195                                 3
196                             ],
197                             "title": "The Level Schema",
198                             "type": "integer"
199                         }
200                     },
201                     "required": [
202                         "level"
203                     ],
204                     "title": "The Logger Schema",
205                     "type": "object"
206                 },
207                 "metrics": {
208                     "$id": "#/properties/metrics",
209                     "items": {
210                         "$id": "#/properties/metrics/items",
211                         "properties": {
212                             "description": {
213                                 "$id": "#/properties/metrics/items/properties/description",
214                                 "default": "",
215                                 "examples": [
216                                     ""
217                                 ],
218                                 "pattern": "^(.*)$",
219                                 "title": "The Description Schema",
220                                 "type": "string"
221                             },
222                             "enabled": {
223                                 "$id": "#/properties/metrics/items/properties/enabled",
224                                 "default": false,
225                                 "examples": [
226                                     true
227                                 ],
228                                 "title": "The Enabled Schema",
229                                 "type": "boolean"
230                             },
231                             "name": {
232                                 "$id": "#/properties/metrics/items/properties/name",
233                                 "default": "",
234                                 "examples": [
235                                     "UEContextCreated"
236                                 ],
237                                 "pattern": "^(.*)$",
238                                 "title": "The Name Schema",
239                                 "type": "string"
240                             },
241                             "type": {
242                                 "$id": "#/properties/metrics/items/properties/type",
243                                 "default": "",
244                                 "examples": [
245                                     "counter"
246                                 ],
247                                 "pattern": "^(.*)$",
248                                 "title": "The Type Schema",
249                                 "type": "string"
250                             }
251                         },
252                         "required": [
253                             "name",
254                             "type",
255                             "enabled",
256                             "description"
257                         ],
258                         "title": "The Items Schema",
259                         "type": "object"
260                     },
261                     "title": "The Metrics Schema",
262                     "type": "array"
263                 }
264             },
265             "required": [
266                 "local",
267                 "logger",
268                 "metrics"
269             ],
270             "title": "The Root Schema",
271             "type": "object"
272         },
273         "config": {
274             "local": {
275                 "host": ":8080"
276             },
277             "logger": {
278                 "level": 3
279             },
280             "measurements": [
281                 {
282                     "moId": "SEP-12/XAPP-2",
283                     "measType": "X2",
284                     "measId": "9002",
285                     "measInterval": "60",
286                     "metrics": [
287                         {
288                             "name": "App2ExampleCounterOne",
289                             "objectName": "App2ExampleCounterOneObject",
290                             "objectInstance": "App2ExampleCounterOneObjectInstance",
291                             "counterId": "0021",
292                             "type": "counter",
293                             "description": "Example counter 1"
294                         },
295                         {
296                             "name": "App2ExampleCounterTwo",
297                             "objectName": "App2ExampleCounterTwoObject",
298                             "objectInstance": "App2ExampleCounterTwoObjectInstance",
299                             "counterId": "0022",
300                             "type": "counter",
301                             "description": "Example counter 2"
302                         }
303                     ]
304                 }
305             ]
306         }
307     }
308 ]