Merge "Add O2 IMS compliance automation test scripts."
[it/test.git] / ric_benchmarking / Bouncer / init / schema.json
1 {
2   "definitions": {},
3   "$schema": "http://json-schema.org/draft-07/schema#",
4   "$id": "http://example.com/root.json",
5   "type": "object",
6   "title": "The Root Schema",
7   "required": [
8     "service_ports",
9     "rmr",
10     "envs"
11   ],
12   "properties": {
13     "service_ports": {
14       "$id": "#/properties/service_ports",
15       "type": "object",
16       "title": "The Service_ports Schema",
17       "required": [
18         "xapp_port",
19         "rmr_port"
20       ],
21       "properties": {
22         "xapp_port": {
23           "$id": "#/properties/service_ports/properties/xapp_port",
24           "type": "integer",
25           "title": "The Xapp_port Schema",
26           "default": 0,
27           "examples": [
28             4560
29           ]
30         },
31         "rmr_port": {
32           "$id": "#/properties/service_ports/properties/rmr_port",
33           "type": "integer",
34           "title": "The Rmr_port Schema",
35           "default": 0,
36           "examples": [
37             4561
38           ]
39         }
40       }
41     },
42     "rmr": {
43       "$id": "#/properties/rmr",
44       "type": "object",
45       "title": "The Rmr Schema",
46       "required": [
47         "protPort",
48         "maxSize",
49         "numWorkers",
50         "txMessages",
51         "rxMessages",
52         "file_path",
53         "contents"
54       ],
55       "properties": {
56         "protPort": {
57           "$id": "#/properties/rmr/properties/protPort",
58           "type": "string",
59           "title": "The Protport Schema",
60           "default": "",
61           "examples": [
62             "tcp:4560"
63           ],
64           "pattern": "^(.*)$"
65         },
66         "maxSize": {
67           "$id": "#/properties/rmr/properties/maxSize",
68           "type": "integer",
69           "title": "The Maxsize Schema",
70           "default": 0,
71           "examples": [
72             2072
73           ]
74         },
75         "numWorkers": {
76           "$id": "#/properties/rmr/properties/numWorkers",
77           "type": "integer",
78           "title": "The Numworkers Schema",
79           "default": 0,
80           "examples": [
81             1
82           ]
83         },
84         "txMessages": {
85           "$id": "#/properties/rmr/properties/txMessages",
86           "type": "array",
87           "title": "The Txmessages Schema",
88           "items": {
89             "$id": "#/properties/rmr/properties/txMessages/items",
90             "type": "string",
91             "title": "The Items Schema",
92             "default": "",
93             "examples": [
94               "RIC_SUB_REQ",
95               "RIC_SUB_DEL_REQ"
96             ],
97             "pattern": "^(.*)$"
98           }
99         },
100         "rxMessages": {
101           "$id": "#/properties/rmr/properties/rxMessages",
102           "type": "array",
103           "title": "The Rxmessages Schema",
104           "items": {
105             "$id": "#/properties/rmr/properties/rxMessages/items",
106             "type": "string",
107             "title": "The Items Schema",
108             "default": "",
109             "examples": [
110               "RIC_SUB_RESP",
111               "RIC_SUB_FAILURE",
112               "RIC_SUB_DEL_RESP",
113               "RIC_SUB_DEL_FAILURE",
114               "RIC_INDICATION"
115             ],
116             "pattern": "^(.*)$"
117           }
118         },
119         "file_path": {
120           "$id": "#/properties/rmr/properties/file_path",
121           "type": "string",
122           "title": "The File_path Schema",
123           "default": "",
124           "examples": [
125             "/tmp/routeinfo/routes.txt"
126           ],
127           "pattern": "^(.*)$"
128         },
129         "contents": {
130           "$id": "#/properties/rmr/properties/contents",
131           "type": "string",
132           "title": "The Contents Schema",
133           "default": "",
134           "examples": [
135             "newrt|start\nrte|0|localhost:4560\nrte|2|localhost:4591\nrte|10002|localhost:4560\nrte|10005|localhost:4560\nrte|10003|localhost:4591\nrte|12010|localhost:4591\nrte|12020|localhost:4591\nrte|12011|localhost:4560\nrte|12012|localhost:4560\nrte|12021|localhost:4560\nrte|12022|localhost:4560\nrte|20000|localhost:4560\nrte|20001|localhost:4566\nnewrt|end "
136           ],
137           "pattern": "^(.*)$"
138         }
139       }
140     },
141     "envs": {
142       "$id": "#/properties/envs",
143       "type": "object",
144       "title": "The Envs Schema",
145       "required": [
146         "gNodeB",
147         "THREADS",
148         "VES_SCHEMA_FILE",
149         "SAMPLE_FILE",
150         "VES_COLLECTOR_URL",
151         "VES_MEAUSUREMENT_INTERVAL"
152       ],
153       "properties": {
154         "gNodeB": {
155           "$id": "#/properties/envs/properties/gNodeB",
156           "type": "string",
157           "title": "The Gnodeb Schema",
158           "default": "",
159           "examples": [
160             "NYC123"
161           ],
162           "pattern": "^(.*)$"
163         },
164         "THREADS": {
165           "$id": "#/properties/envs/properties/THREADS",
166           "type": "string",
167           "title": "The Threads Schema",
168           "default": "",
169           "examples": [
170             "1"
171           ],
172           "pattern": "^(.*)$"
173         },
174         "VES_SCHEMA_FILE": {
175           "$id": "#/properties/envs/properties/VES_SCHEMA_FILE",
176           "type": "string",
177           "title": "The Ves_schema_file Schema",
178           "default": "",
179           "examples": [
180             "/etc/xapp/ves_schema.json"
181           ],
182           "pattern": "^(.*)$"
183         },
184         "SAMPLE_FILE": {
185           "$id": "#/properties/envs/properties/SAMPLE_FILE",
186           "type": "string",
187           "title": "The Sample_file Schema",
188           "default": "",
189           "examples": [
190             "/etc/xapp/samples.json"
191           ],
192           "pattern": "^(.*)$"
193         },
194         "VES_COLLECTOR_URL": {
195           "$id": "#/properties/envs/properties/VES_COLLECTOR_URL",
196           "type": "string",
197           "title": "The Ves_collector_url Schema",
198           "default": "",
199           "examples": [
200             "127.0.0.1:6350"
201           ],
202           "pattern": "^(.*)$"
203         },
204         "VES_MEAUSUREMENT_INTERVAL": {
205           "$id": "#/properties/envs/properties/VES_MEAUSUREMENT_INTERVAL",
206           "type": "string",
207           "title": "The Ves_meausurement_interval Schema",
208           "default": "",
209           "examples": [
210             "10"
211           ],
212           "pattern": "^(.*)$"
213         }
214       }
215     }
216   }
217 }
218