-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcognite_config.schema.json
More file actions
398 lines (398 loc) · 16.8 KB
/
cognite_config.schema.json
File metadata and controls
398 lines (398 loc) · 16.8 KB
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
{
"$id": "cognite_config.schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"description": "Configure connection to Cognite Data Fusion (CDF)",
"properties": {
"project": {
"type": "string",
"description": "CDF project to connect to."
},
"idp-authentication": {
"type": "object",
"description": "The `idp-authentication` section enables the extractor to authenticate to CDF using an external identity provider (IdP), such as Microsoft Entra ID (formerly Azure Active Directory).\nSee [OAuth 2.0 client credentials flow](https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-client-creds-grant-flow)",
"properties": {
"authority": {
"type": "string",
"default": "https://login.microsoftonline.com/",
"description": "AInsert the authority together with `tenant` to authenticate against Azure tenants."
},
"client-id": {
"type": "string",
"description": "Enter the service principal client id from the IdP."
},
"tenant": {
"type": "string",
"description": "Enter the Azure tenant."
},
"token-url": {
"type": "string",
"description": "Insert the URL to fetch tokens from."
},
"secret": {
"type": "string",
"description": "Enter the service principal client secret from the IdP."
},
"resource": {
"type": "string",
"description": "Resource parameter passed along with token requests."
},
"audience": {
"type": "string",
"description": "Audience parameter passed along with token requests."
},
"scopes": {
"oneOf": [
{
"type": "array",
"description": "Enter a list of scopes requested for the token",
"items": {
"type": "string",
"description": "A scope requested for the token",
"examples": [
"https://api.cognitedata.com/.default"
]
}
},
{
"type": "string",
"description": "Enter a space separated list of scopes requested for the token",
"examples": [
"https://api.cognitedata.com/.default"
]
}
]
},
"min-ttl": {
"type": "integer",
"default": 30,
"description": "Insert the minimum time in seconds a token will be valid. If the cached token expires in less than `min-ttl` seconds, it will be refreshed even if it is still valid."
},
"certificate": {
"type": "object",
"description": "Authenticate with a client certificate",
"unevaluatedProperties": false,
"required": [
"path"
],
"properties": {
"authority-url": {
"type": "string",
"description": "Authentication authority URL"
},
"path": {
"type": "string",
"description": "Enter the path to the .pem or .pfx certificate to be used for authentication"
},
"password": {
"type": "string",
"description": "Enter the password for the key file, if it is encrypted."
}
}
}
},
"oneOf": [
{
"required": [
"tenant",
"secret"
]
},
{
"required": [
"token-url",
"secret"
]
},
{
"required": [
"certificate"
]
}
],
"unevaluatedProperties": false,
"required": [
"client-id"
]
},
"host": {
"type": "string",
"default": "https://api.cognitedata.com",
"description": "Insert the base URL of the CDF project."
},
"cdf-retries": {
"type": "object",
"description": "Configure automatic retries on requests to CDF.",
"properties": {
"timeout": {
"type": "integer",
"default": 80000,
"description": "Timeout in milliseconds for each individual request to CDF."
},
"max-retries": {
"type": "integer",
"default": 5,
"description": "Maximum number of retries on requests to CDF. If this is less than 0, retry forever."
},
"max-delay": {
"type": "integer",
"default": 5000,
"description": "Max delay in milliseconds between each retry. Base delay is calculated according to 125*2^retry milliseconds. If less than 0, there is no maximum."
}
},
"unevaluatedProperties": false
},
"cdf-chunking": {
"type": "object",
"description": "Configure chunking of data on requests to CDF. Note that increasing these may cause requests to fail due to limits in the API itself",
"properties": {
"time-series": {
"type": "integer",
"default": 1000,
"description": "Maximum number of timeseries per get/create timeseries request",
"max": 1000,
"min": 1
},
"assets": {
"type": "integer",
"default": 1000,
"description": "Maximum number of assets per get/create assets request",
"max": 1000,
"min": 1
},
"data-point-time-series": {
"type": "integer",
"default": 10000,
"description": "Maximum number of timeseries per datapoint create request",
"max": 10000,
"min": 1
},
"data-point-delete": {
"type": "integer",
"default": 10000,
"description": "Maximum number of ranges per delete datapoints request",
"max": 10000,
"min": 1
},
"data-point-list": {
"type": "integer",
"default": 100,
"description": "Maximum number of timeseries per datapoint read request. Used when getting the first point in a timeseries.",
"max": 100,
"min": 1
},
"data-points": {
"type": "integer",
"default": 100000,
"description": "Maximum number of datapoints per datapoints create request",
"max": 100000,
"min": 1
},
"data-points-gzip-limit": {
"type": "integer",
"default": 5000,
"description": "Minimum number of datapoints in request to switch to using gzip. Set to -1 to disable, and 0 to always enable (not recommended). The minimum HTTP packet size is generally 1500 bytes, so this should never be set below 100 for numeric datapoints. Even for larger packages gzip is efficient enough that packages are compressed below 1500 bytes. At 5000 it is always a performance gain. It can be set lower if bandwidth is a major issue",
"max": 100000,
"min": 1
},
"raw-rows": {
"type": "integer",
"default": 10000,
"description": "Maximum number of rows per request to cdf raw",
"max": 10000,
"min": 1
},
"raw-rows-delete": {
"type": "integer",
"default": 1000,
"description": "Maximum number of row keys per delete request to raw",
"max": 1000,
"min": 1
},
"data-point-latest": {
"type": "integer",
"default": 100,
"description": "Maximum number of timeseries per datapoint read latest request",
"max": 100,
"min": 1
},
"events": {
"type": "integer",
"default": 1000,
"description": "Maximum number of events per get/create events request",
"max": 1000,
"min": 1
},
"sequences": {
"type": "integer",
"default": 1000,
"description": "Maximum number of sequences per get/create sequences request",
"max": 1000,
"min": 1
},
"sequence-row-sequences": {
"type": "integer",
"default": 1000,
"description": "Maximum number of sequences per create sequence rows request",
"max": 1000,
"min": 1
},
"sequence-rows": {
"type": "integer",
"default": 10000,
"description": "Maximum number of sequence rows per sequence when creating rows",
"max": 10000,
"min": 1
},
"instances": {
"type": "integer",
"default": 1000,
"description": "Maximum number of data modeling instances per get/create instance request",
"max": 1000,
"min": 1
},
"stream-records": {
"type": "integer",
"default": 1000,
"description": "Maximum number of stream records per get/create stream records request",
"max": 1000,
"min": 1
}
},
"unevaluatedProperties": false
},
"cdf-throttling": {
"type": "object",
"description": "Configure the maximum number of parallel requests for different CDF resources.",
"properties": {
"time-series": {
"type": "integer",
"default": 5,
"description": "Maximum number of parallel requests per timeseries operation",
"min": 1
},
"assets": {
"type": "integer",
"default": 5,
"description": "Maximum number of parallel requests per assets operation",
"min": 1
},
"data-points": {
"type": "integer",
"default": 5,
"description": "Maximum number of parallel requests per datapoints operation",
"min": 1
},
"raw": {
"type": "integer",
"default": 5,
"description": "Maximum number of parallel requests per raw operation",
"min": 1
},
"ranges": {
"type": "integer",
"default": 5,
"description": "Maximum number of parallel requests per get first/last datapoint operation",
"min": 1
},
"events": {
"type": "integer",
"default": 5,
"description": "Maximum number of parallel requests per events operation",
"min": 1
},
"sequences": {
"type": "integer",
"default": 5,
"description": "Maximum number of parallel requests per sequences operation",
"min": 1
},
"instances": {
"type": "integer",
"default": 2,
"description": "Maximum number of parallel requests per data modeling instances operation",
"min": 1
},
"stream-records": {
"type": "integer",
"default": 4,
"description": "Maximum number of parallel requests per stream records operation",
"min": 1
}
},
"unevaluatedProperties": false
},
"sdk-logging": {
"type": "object",
"description": "Configure logging of requests from the SDK",
"properties": {
"disable": {
"type": "boolean",
"description": "True to disable logging from the SDK, it is enabled by default"
},
"level": {
"type": "string",
"enum": [
"trace",
"debug",
"information",
"warning",
"error",
"critical",
"none"
],
"default": "debug",
"description": "Log level to log messages from the SDK at"
},
"format": {
"type": "string",
"default": "CDF ({Message}): {HttpMethod} {Url} {ResponseHeader[X-Request-ID]} - {Elapsed} ms",
"description": "Format of the log message"
}
},
"unevaluatedProperties": false
},
"nan-replacement": {
"type": [
"number",
"null"
],
"description": "Replacement for NaN values when writing to CDF. If left out, NaN values are skipped."
},
"extraction-pipeline": {
"type": "object",
"description": "Configure an associated extraction pipeline",
"properties": {
"external-id": {
"type": "string",
"description": "External ID of the extraction pipeline"
},
"frequency": {
"type": "integer",
"default": 600,
"description": "Frequency to report `Seen` to the extraction pipeline in seconds. Less than or equal to zero will not report automatically"
}
},
"unevaluatedProperties": false
},
"certificates": {
"type": "object",
"description": "Configure special handling of SSL certificates. This should never be considered a permanent solution to certificate problems",
"properties": {
"accept-all": {
"type": "boolean",
"description": "Accept all remote SSL certificates. This introduces a severe risk of man-in-the-middle attacks"
},
"allow-list": {
"type": "array",
"description": "List of certificate thumbprints to automatically accept. This is a much smaller risk than accepting all certificates",
"items": {
"type": "string",
"description": "A certificate thumbprint to automatically accept, even if it is invalid or lacking a valid root certificate"
}
}
},
"unevaluatedProperties": false
}
}
}