Skip to content

Commit 1ef0cf0

Browse files
committed
WIP: Data for testing
1 parent 5f6ee03 commit 1ef0cf0

File tree

1 file changed

+218
-0
lines changed

1 file changed

+218
-0
lines changed

testBasketData.json

Lines changed: 218 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,218 @@
1+
{
2+
"ServiceTemplate": {
3+
"scadvfda": {
4+
"check_command": "disk",
5+
"fields": [
6+
{
7+
"datafield_id": 1,
8+
"is_required": "n",
9+
"var_filter": null
10+
},
11+
{
12+
"datafield_id": 2,
13+
"is_required": "n",
14+
"var_filter": null
15+
}
16+
],
17+
"object_name": "scadvfda",
18+
"object_type": "template",
19+
"uuid": "e8d4e283-4741-42e0-a4c1-ea6efd740477"
20+
},
21+
"asfdsfbdg": {
22+
"fields": [
23+
{
24+
"datafield_id": 1,
25+
"is_required": "n",
26+
"var_filter": null
27+
},
28+
{
29+
"datafield_id": 2,
30+
"is_required": "n",
31+
"var_filter": null
32+
}
33+
],
34+
"object_name": "asfdsfbdg",
35+
"object_type": "template",
36+
"uuid": "53b68378-ca77-438a-824d-ce43d5261a9d"
37+
},
38+
"st1": {
39+
"check_command": "dummy",
40+
"fields": [
41+
{
42+
"datafield_id": 5,
43+
"is_required": "n",
44+
"var_filter": null
45+
},
46+
{
47+
"datafield_id": 6,
48+
"is_required": "y",
49+
"var_filter": null
50+
},
51+
{
52+
"datafield_id": 10,
53+
"is_required": "n",
54+
"var_filter": null
55+
},
56+
{
57+
"datafield_id": 9,
58+
"is_required": "n",
59+
"var_filter": null
60+
},
61+
{
62+
"datafield_id": 12,
63+
"is_required": "n",
64+
"var_filter": null
65+
},
66+
{
67+
"datafield_id": 13,
68+
"is_required": "n",
69+
"var_filter": null
70+
},
71+
{
72+
"datafield_id": 2,
73+
"is_required": "n",
74+
"var_filter": null
75+
}
76+
],
77+
"groups": [
78+
"foo"
79+
],
80+
"object_name": "st1",
81+
"object_type": "template",
82+
"uuid": "bf099d80-ee7c-4a31-84a5-6916d1543410"
83+
}
84+
},
85+
"DataList": {
86+
"cities": {
87+
"entries": [
88+
{
89+
"entry_name": "firt",
90+
"entry_value": "foo",
91+
"format": "string",
92+
"allowed_roles": [
93+
"admin"
94+
]
95+
},
96+
{
97+
"entry_name": "second",
98+
"entry_value": "Second",
99+
"format": "string",
100+
"allowed_roles": null
101+
}
102+
],
103+
"list_name": "cities",
104+
"owner": "icingaadmin",
105+
"uuid": "5795dbf7-79ae-43b9-a659-255dd2f2fcab"
106+
}
107+
},
108+
"Datafield": {
109+
"1": {
110+
"uuid": "7097ac28-8055-472f-b60b-2cd18f45ba6b",
111+
"varname": "group",
112+
"caption": "Host group",
113+
"description": null,
114+
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString",
115+
"format": null,
116+
"settings": {
117+
"visibility": "visible"
118+
},
119+
"category": null
120+
},
121+
"2": {
122+
"uuid": "6a6f90bd-c601-4e0d-8083-46af977850e4",
123+
"varname": "Test string",
124+
"caption": "String to test",
125+
"description": null,
126+
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString",
127+
"format": null,
128+
"settings": {
129+
"visibility": "visible"
130+
},
131+
"category": null
132+
},
133+
"5": {
134+
"uuid": "79ef7150-9f8c-4808-890c-b9d82c5ba2a5",
135+
"varname": "branch",
136+
"caption": "Company branch",
137+
"description": "something",
138+
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeDatalist",
139+
"format": null,
140+
"settings": {
141+
"behavior": "strict",
142+
"data_type": "string",
143+
"rename_vars": "y",
144+
"datalist": "cities"
145+
},
146+
"category": "location"
147+
},
148+
"6": {
149+
"uuid": "9ddd34fa-79ac-4e48-b468-e30c69d26a48",
150+
"varname": "dict",
151+
"caption": "Dictionary",
152+
"description": null,
153+
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeDictionary",
154+
"format": null,
155+
"settings": {
156+
"template_name": "st1",
157+
"template_object_type": "service"
158+
},
159+
"category": null
160+
},
161+
"10": {
162+
"uuid": "a9c6e74f-3fd1-403e-9813-f61614732d85",
163+
"varname": "dict2",
164+
"caption": "Child dictionary",
165+
"description": null,
166+
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeDictionary",
167+
"format": null,
168+
"settings": {
169+
"template_name": "st1",
170+
"template_object_type": "service"
171+
},
172+
"category": null
173+
},
174+
"9": {
175+
"uuid": "d030fd44-be9b-4f4f-9d4c-53fc46db7b95",
176+
"varname": "foo",
177+
"caption": "Dummy Variable",
178+
"description": null,
179+
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeString",
180+
"format": null,
181+
"settings": {
182+
"visibility": "visible"
183+
},
184+
"category": null
185+
},
186+
"12": {
187+
"uuid": "c8050590-44fe-4cb3-ae87-19e0693d9b88",
188+
"varname": "locations",
189+
"caption": "Locations",
190+
"description": "Locations belonging to domain",
191+
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeArray",
192+
"format": null,
193+
"settings": {},
194+
"category": null
195+
},
196+
"13": {
197+
"uuid": "d63601ee-2637-47bd-9cf4-6e6df5bfb3f3",
198+
"varname": "related_hosts",
199+
"caption": "Related Hosts",
200+
"description": null,
201+
"datatype": "Icinga\\Module\\Director\\DataType\\DataTypeSqlQuery",
202+
"format": null,
203+
"settings": {
204+
"data_type": "array",
205+
"query": "select name, display_name from host where name like 'dummy%' order by name limit 5;",
206+
"resource": "icingadb_postgres"
207+
},
208+
"category": null
209+
}
210+
},
211+
"DatafieldCategory": {
212+
"location": {
213+
"category_name": "location",
214+
"description": null,
215+
"originalId": "1"
216+
}
217+
}
218+
}

0 commit comments

Comments
 (0)