-
Notifications
You must be signed in to change notification settings - Fork 3
/
globalConfig.json
196 lines (196 loc) · 7.65 KB
/
globalConfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
{
"meta": {
"name": "splunk_app_for_dspt_compliance",
"displayName": "DSPT Compliance",
"version": "2.1.6",
"restRoot": "splunk_app_for_dspt_compliance",
"schemaVersion": "0.0.3"
},
"pages": {
"configuration": {
"title": "Configuration",
"description": "Set up your add-on",
"tabs": [
{
"name": "logging",
"title": "Logging",
"entity": [
{
"field": "loglevel",
"label": "Log level",
"type": "singleSelect",
"options": {
"disableSearch": true,
"autoCompleteFields": [
{
"label": "DEBUG",
"value": "DEBUG"
},
{
"label": "INFO",
"value": "INFO"
},
{
"label": "WARNING",
"value": "WARNING"
},
{
"label": "ERROR",
"value": "ERROR"
},
{
"label": "CRITICAL",
"value": "CRITICAL"
}
]
},
"defaultValue": "INFO"
}
]
}
]
},
"inputs": {
"title": "Inputs",
"description": "Manage your data inputs",
"table": {
"header": [
{
"field": "name",
"label": "Input Name"
},
{
"field": "interval",
"label": "Interval"
},
{
"field": "index",
"label": "Index"
},
{
"field": "disabled",
"label": "Status"
}
],
"moreInfo": [
{
"field": "name",
"label": "Input Name"
},
{
"field": "interval",
"label": "Interval"
},
{
"field": "index",
"label": "Index"
},
{
"field": "disabled",
"label": "Status"
},
{
"field": "rest_api",
"label": "REST API"
},
{
"field": "enable_checkpoint",
"label": "Enable Checkpoint"
}
],
"actions": [
"edit",
"enable",
"delete",
"clone"
]
},
"services": [
{
"name": "nhs_cyberalerts",
"title": "nhs cyberalerts",
"entity": [
{
"field": "name",
"label": "Input Name",
"type": "text",
"help": "Enter a unique name for the data input",
"required": true,
"validators": [
{
"type": "regex",
"pattern": "^[a-zA-Z]\\w*$",
"errorMsg": "Input Name must start with a letter and followed by alphabetic letters, digits or underscores."
},
{
"type": "string",
"minLength": 1,
"maxLength": 100,
"errorMsg": "Length of input name should be between 1 and 100"
}
]
},
{
"field": "interval",
"label": "Interval",
"type": "text",
"required": true,
"help": "Time interval of input in seconds.",
"validators": [
{
"type": "regex",
"pattern": "^\\-[1-9]\\d*$|^\\d*$",
"errorMsg": "Interval must be an integer."
}
]
},
{
"field": "index",
"label": "Index",
"type": "singleSelect",
"defaultValue": "default",
"options": {
"endpointUrl": "data/indexes",
"createSearchChoice": true,
"denyList": "^_.*$"
},
"required": true,
"validators": [
{
"type": "string",
"minLength": 1,
"maxLength": 80,
"errorMsg": "Length of index name should be between 1 and 80."
}
]
},
{
"field": "rest_api",
"label": "REST API",
"help": "Endpoint to fetch NHS cyber alerts",
"required": true,
"type": "text",
"defaultValue": "https://digital.nhs.uk/restapi/CyberAlert/page",
"validators": [
{
"type": "string",
"minLength": 0,
"maxLength": 8192,
"errorMsg": "Max length of text input is 8192"
}
]
},
{
"field": "enable_checkpoint",
"label": "Enable Checkpoint",
"help": "Keep enabled to avoid indexing duplicates",
"required": false,
"type": "checkbox",
"defaultValue": true
}
]
}
]
}
}
}