Measurement struct update
[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                     "measId": "M9001",
130                     "object": "XAPP-xApp1",
131                     "metrics": [
132                         {
133                             "description": "Example counter 1",
134                             "enabled": true,
135                             "name": "App1ExampleCounterOne",
136                             "type": "counter",
137                             "objectName": "App1ExampleCounterOneObject",
138                             "objectInstance": "App1ExampleCounterOneObjectInstance"
139                         },
140                         {
141                             "description": "Example counter 2",
142                             "enabled": true,
143                             "name": "App1ExampleCounterTwo",
144                             "type": "counter",
145                             "objectName": "App1ExampleCounterTwoObject",
146                             "objectInstance": "App1ExampleCounterTwoObjectInstance"
147                         }
148                     ]
149                 }
150             ]
151         }
152     },
153     {
154         "metadata": {
155             "name": "xApp2",
156             "configName": "xApp2-appconfig",
157             "namespace": "default"
158         },
159         "descriptor": {
160             "$id": "http://example.com/root.json",
161             "$schema": "http://json-schema.org/draft-07/schema#",
162             "definitions": {
163
164             },
165             "properties": {
166                 "local": {
167                     "$id": "#/properties/local",
168                     "properties": {
169                         "host": {
170                             "$id": "#/properties/local/properties/host",
171                             "default": "",
172                             "examples": [
173                                 ":8080"
174                             ],
175                             "pattern": "^(.*)$",
176                             "title": "The Host Schema",
177                             "type": "string"
178                         }
179                     },
180                     "required": [
181                         "host"
182                     ],
183                     "title": "The Local Schema",
184                     "type": "object"
185                 },
186                 "logger": {
187                     "$id": "#/properties/logger",
188                     "properties": {
189                         "level": {
190                             "$id": "#/properties/logger/properties/level",
191                             "default": 0,
192                             "examples": [
193                                 3
194                             ],
195                             "title": "The Level Schema",
196                             "type": "integer"
197                         }
198                     },
199                     "required": [
200                         "level"
201                     ],
202                     "title": "The Logger Schema",
203                     "type": "object"
204                 },
205                 "metrics": {
206                     "$id": "#/properties/metrics",
207                     "items": {
208                         "$id": "#/properties/metrics/items",
209                         "properties": {
210                             "description": {
211                                 "$id": "#/properties/metrics/items/properties/description",
212                                 "default": "",
213                                 "examples": [
214                                     ""
215                                 ],
216                                 "pattern": "^(.*)$",
217                                 "title": "The Description Schema",
218                                 "type": "string"
219                             },
220                             "enabled": {
221                                 "$id": "#/properties/metrics/items/properties/enabled",
222                                 "default": false,
223                                 "examples": [
224                                     true
225                                 ],
226                                 "title": "The Enabled Schema",
227                                 "type": "boolean"
228                             },
229                             "name": {
230                                 "$id": "#/properties/metrics/items/properties/name",
231                                 "default": "",
232                                 "examples": [
233                                     "UEContextCreated"
234                                 ],
235                                 "pattern": "^(.*)$",
236                                 "title": "The Name Schema",
237                                 "type": "string"
238                             },
239                             "type": {
240                                 "$id": "#/properties/metrics/items/properties/type",
241                                 "default": "",
242                                 "examples": [
243                                     "counter"
244                                 ],
245                                 "pattern": "^(.*)$",
246                                 "title": "The Type Schema",
247                                 "type": "string"
248                             }
249                         },
250                         "required": [
251                             "name",
252                             "type",
253                             "enabled",
254                             "description"
255                         ],
256                         "title": "The Items Schema",
257                         "type": "object"
258                     },
259                     "title": "The Metrics Schema",
260                     "type": "array"
261                 }
262             },
263             "required": [
264                 "local",
265                 "logger",
266                 "metrics"
267             ],
268             "title": "The Root Schema",
269             "type": "object"
270         },
271         "config": {
272             "local": {
273                 "host": ":8080"
274             },
275             "logger": {
276                 "level": 3
277             },
278             "measurements": [
279                 {
280                     "measId": "M9001",
281                     "object": "XAPP-xApp2",
282                     "metrics": [
283                         {
284                             "description": "Example counter",
285                             "enabled": true,
286                             "name": "App2ExampleCounterOne",
287                             "type": "counter",
288                             "objectName": "App2ExampleCounterOneObject",
289                             "objectInstance": "App2ExampleCounterOneObjectInstance"
290                         },
291                         {
292                             "description": "Another example counter",
293                             "enabled": true,
294                             "name": "App2ExampleCounterTwo",
295                             "type": "counter",
296                             "objectName": "App2ExampleCounterTwoObject",
297                             "objectInstance": "App2ExampleCounterTwoObjectInstance"
298                         }
299                     ]
300                 }
301             ]
302         }
303     }
304 ]