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