cribl-control-plane 0.0.39__py3-none-any.whl → 0.0.40a1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cribl-control-plane might be problematic. Click here for more details.

@@ -0,0 +1,589 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from cribl_control_plane.types import BaseModel
5
+ from enum import Enum
6
+ import pydantic
7
+ from typing import Any, List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class RunnableJobCollectionJobType(str, Enum):
12
+ COLLECTION = "collection"
13
+ EXECUTOR = "executor"
14
+ SCHEDULED_SEARCH = "scheduledSearch"
15
+
16
+
17
+ class RunnableJobCollectionRunType(str, Enum):
18
+ COLLECTION = "collection"
19
+
20
+
21
+ class RunnableJobCollectionScheduleLogLevel(str, Enum):
22
+ r"""Level at which to set task logging"""
23
+
24
+ ERROR = "error"
25
+ WARN = "warn"
26
+ INFO = "info"
27
+ DEBUG = "debug"
28
+ SILLY = "silly"
29
+
30
+
31
+ class RunnableJobCollectionScheduleTimeWarningTypedDict(TypedDict):
32
+ pass
33
+
34
+
35
+ class RunnableJobCollectionScheduleTimeWarning(BaseModel):
36
+ pass
37
+
38
+
39
+ class RunnableJobCollectionRunSettingsTypedDict(TypedDict):
40
+ type: NotRequired[RunnableJobCollectionRunType]
41
+ reschedule_dropped_tasks: NotRequired[bool]
42
+ r"""Reschedule tasks that failed with non-fatal errors"""
43
+ max_task_reschedule: NotRequired[float]
44
+ r"""Maximum number of times a task can be rescheduled"""
45
+ log_level: NotRequired[RunnableJobCollectionScheduleLogLevel]
46
+ r"""Level at which to set task logging"""
47
+ job_timeout: NotRequired[str]
48
+ r"""Maximum time the job is allowed to run. Time unit defaults to seconds if not specified (examples: 30, 45s, 15m). Enter 0 for unlimited time."""
49
+ mode: NotRequired[str]
50
+ r"""Job run mode. Preview will either return up to N matching results, or will run until capture time T is reached. Discovery will gather the list of files to turn into streaming tasks, without running the data collection job. Full Run will run the collection job."""
51
+ time_range_type: NotRequired[str]
52
+ earliest: NotRequired[float]
53
+ r"""Earliest time to collect data for the selected timezone"""
54
+ latest: NotRequired[float]
55
+ r"""Latest time to collect data for the selected timezone"""
56
+ timestamp_timezone: NotRequired[Any]
57
+ time_warning: NotRequired[RunnableJobCollectionScheduleTimeWarningTypedDict]
58
+ expression: NotRequired[str]
59
+ r"""A filter for tokens in the provided collect path and/or the events being collected"""
60
+ min_task_size: NotRequired[str]
61
+ r"""Limits the bundle size for small tasks. For example,
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+ if your lower bundle size is 1MB, you can bundle up to five 200KB files into one task.
73
+ """
74
+ max_task_size: NotRequired[str]
75
+ r"""Limits the bundle size for files above the lower task bundle size. For example, if your upper bundle size is 10MB,
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+ you can bundle up to five 2MB files into one task. Files greater than this size will be assigned to individual tasks.
87
+ """
88
+
89
+
90
+ class RunnableJobCollectionRunSettings(BaseModel):
91
+ type: Optional[RunnableJobCollectionRunType] = None
92
+
93
+ reschedule_dropped_tasks: Annotated[
94
+ Optional[bool], pydantic.Field(alias="rescheduleDroppedTasks")
95
+ ] = True
96
+ r"""Reschedule tasks that failed with non-fatal errors"""
97
+
98
+ max_task_reschedule: Annotated[
99
+ Optional[float], pydantic.Field(alias="maxTaskReschedule")
100
+ ] = 1
101
+ r"""Maximum number of times a task can be rescheduled"""
102
+
103
+ log_level: Annotated[
104
+ Optional[RunnableJobCollectionScheduleLogLevel],
105
+ pydantic.Field(alias="logLevel"),
106
+ ] = RunnableJobCollectionScheduleLogLevel.INFO
107
+ r"""Level at which to set task logging"""
108
+
109
+ job_timeout: Annotated[Optional[str], pydantic.Field(alias="jobTimeout")] = "0"
110
+ r"""Maximum time the job is allowed to run. Time unit defaults to seconds if not specified (examples: 30, 45s, 15m). Enter 0 for unlimited time."""
111
+
112
+ mode: Optional[str] = "list"
113
+ r"""Job run mode. Preview will either return up to N matching results, or will run until capture time T is reached. Discovery will gather the list of files to turn into streaming tasks, without running the data collection job. Full Run will run the collection job."""
114
+
115
+ time_range_type: Annotated[Optional[str], pydantic.Field(alias="timeRangeType")] = (
116
+ "relative"
117
+ )
118
+
119
+ earliest: Optional[float] = None
120
+ r"""Earliest time to collect data for the selected timezone"""
121
+
122
+ latest: Optional[float] = None
123
+ r"""Latest time to collect data for the selected timezone"""
124
+
125
+ timestamp_timezone: Annotated[
126
+ Optional[Any], pydantic.Field(alias="timestampTimezone")
127
+ ] = None
128
+
129
+ time_warning: Annotated[
130
+ Optional[RunnableJobCollectionScheduleTimeWarning],
131
+ pydantic.Field(alias="timeWarning"),
132
+ ] = None
133
+
134
+ expression: Optional[str] = "true"
135
+ r"""A filter for tokens in the provided collect path and/or the events being collected"""
136
+
137
+ min_task_size: Annotated[Optional[str], pydantic.Field(alias="minTaskSize")] = "1MB"
138
+ r"""Limits the bundle size for small tasks. For example,
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ if your lower bundle size is 1MB, you can bundle up to five 200KB files into one task.
150
+ """
151
+
152
+ max_task_size: Annotated[Optional[str], pydantic.Field(alias="maxTaskSize")] = (
153
+ "10MB"
154
+ )
155
+ r"""Limits the bundle size for files above the lower task bundle size. For example, if your upper bundle size is 10MB,
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+ you can bundle up to five 2MB files into one task. Files greater than this size will be assigned to individual tasks.
167
+ """
168
+
169
+
170
+ class RunnableJobCollectionScheduleTypedDict(TypedDict):
171
+ r"""Configuration for a scheduled job"""
172
+
173
+ enabled: NotRequired[bool]
174
+ r"""Enable to configure scheduling for this Collector"""
175
+ cron_schedule: NotRequired[str]
176
+ r"""A cron schedule on which to run this job"""
177
+ max_concurrent_runs: NotRequired[float]
178
+ r"""The maximum number of instances of this scheduled job that may be running at any time"""
179
+ skippable: NotRequired[bool]
180
+ r"""Skippable jobs can be delayed, up to their next run time, if the system is hitting concurrency limits"""
181
+ resume_missed: NotRequired[Any]
182
+ run: NotRequired[RunnableJobCollectionRunSettingsTypedDict]
183
+
184
+
185
+ class RunnableJobCollectionSchedule(BaseModel):
186
+ r"""Configuration for a scheduled job"""
187
+
188
+ enabled: Optional[bool] = None
189
+ r"""Enable to configure scheduling for this Collector"""
190
+
191
+ cron_schedule: Annotated[Optional[str], pydantic.Field(alias="cronSchedule")] = (
192
+ "*/5 * * * *"
193
+ )
194
+ r"""A cron schedule on which to run this job"""
195
+
196
+ max_concurrent_runs: Annotated[
197
+ Optional[float], pydantic.Field(alias="maxConcurrentRuns")
198
+ ] = 1
199
+ r"""The maximum number of instances of this scheduled job that may be running at any time"""
200
+
201
+ skippable: Optional[bool] = True
202
+ r"""Skippable jobs can be delayed, up to their next run time, if the system is hitting concurrency limits"""
203
+
204
+ resume_missed: Annotated[Optional[Any], pydantic.Field(alias="resumeMissed")] = None
205
+
206
+ run: Optional[RunnableJobCollectionRunSettings] = None
207
+
208
+
209
+ class CollectorSpecificSettingsTypedDict(TypedDict):
210
+ pass
211
+
212
+
213
+ class CollectorSpecificSettings(BaseModel):
214
+ pass
215
+
216
+
217
+ class CollectorTypedDict(TypedDict):
218
+ type: str
219
+ r"""The type of collector to run"""
220
+ conf: CollectorSpecificSettingsTypedDict
221
+ destructive: NotRequired[bool]
222
+ r"""Delete any files collected (where applicable)"""
223
+ encoding: NotRequired[str]
224
+ r"""Character encoding to use when parsing ingested data. When not set, @{product} will default to UTF-8 but may incorrectly interpret multi-byte characters."""
225
+
226
+
227
+ class Collector(BaseModel):
228
+ type: str
229
+ r"""The type of collector to run"""
230
+
231
+ conf: CollectorSpecificSettings
232
+
233
+ destructive: Optional[bool] = False
234
+ r"""Delete any files collected (where applicable)"""
235
+
236
+ encoding: Optional[str] = None
237
+ r"""Character encoding to use when parsing ingested data. When not set, @{product} will default to UTF-8 but may incorrectly interpret multi-byte characters."""
238
+
239
+
240
+ class RunnableJobCollectionType(str, Enum):
241
+ COLLECTION = "collection"
242
+
243
+
244
+ class RunnableJobCollectionPreprocessTypedDict(TypedDict):
245
+ disabled: NotRequired[bool]
246
+ command: NotRequired[str]
247
+ r"""Command to feed the data through (via stdin) and process its output (stdout)"""
248
+ args: NotRequired[List[str]]
249
+ r"""Arguments to be added to the custom command"""
250
+
251
+
252
+ class RunnableJobCollectionPreprocess(BaseModel):
253
+ disabled: Optional[bool] = True
254
+
255
+ command: Optional[str] = None
256
+ r"""Command to feed the data through (via stdin) and process its output (stdout)"""
257
+
258
+ args: Optional[List[str]] = None
259
+ r"""Arguments to be added to the custom command"""
260
+
261
+
262
+ class RunnableJobCollectionMetadatumTypedDict(TypedDict):
263
+ name: str
264
+ value: str
265
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
266
+
267
+
268
+ class RunnableJobCollectionMetadatum(BaseModel):
269
+ name: str
270
+
271
+ value: str
272
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
273
+
274
+
275
+ class RunnableJobCollectionInputTypedDict(TypedDict):
276
+ type: NotRequired[RunnableJobCollectionType]
277
+ breaker_rulesets: NotRequired[List[str]]
278
+ r"""A list of event-breaking rulesets that will be applied, in order, to the input data stream"""
279
+ stale_channel_flush_ms: NotRequired[float]
280
+ r"""How long (in milliseconds) the Event Breaker will wait for new data to be sent to a specific channel before flushing the data stream out, as is, to the Pipelines"""
281
+ send_to_routes: NotRequired[bool]
282
+ r"""Send events to normal routing and event processing. Disable to select a specific Pipeline/Destination combination."""
283
+ preprocess: NotRequired[RunnableJobCollectionPreprocessTypedDict]
284
+ throttle_rate_per_sec: NotRequired[str]
285
+ r"""Rate (in bytes per second) to throttle while writing to an output. Accepts values with multiple-byte units, such as KB, MB, and GB. (Example: 42 MB) Default value of 0 specifies no throttling."""
286
+ metadata: NotRequired[List[RunnableJobCollectionMetadatumTypedDict]]
287
+ r"""Fields to add to events from this input"""
288
+ pipeline: NotRequired[str]
289
+ r"""Pipeline to process results"""
290
+ output: NotRequired[str]
291
+ r"""Destination to send results to"""
292
+
293
+
294
+ class RunnableJobCollectionInput(BaseModel):
295
+ type: Optional[RunnableJobCollectionType] = RunnableJobCollectionType.COLLECTION
296
+
297
+ breaker_rulesets: Annotated[
298
+ Optional[List[str]], pydantic.Field(alias="breakerRulesets")
299
+ ] = None
300
+ r"""A list of event-breaking rulesets that will be applied, in order, to the input data stream"""
301
+
302
+ stale_channel_flush_ms: Annotated[
303
+ Optional[float], pydantic.Field(alias="staleChannelFlushMs")
304
+ ] = 10000
305
+ r"""How long (in milliseconds) the Event Breaker will wait for new data to be sent to a specific channel before flushing the data stream out, as is, to the Pipelines"""
306
+
307
+ send_to_routes: Annotated[Optional[bool], pydantic.Field(alias="sendToRoutes")] = (
308
+ True
309
+ )
310
+ r"""Send events to normal routing and event processing. Disable to select a specific Pipeline/Destination combination."""
311
+
312
+ preprocess: Optional[RunnableJobCollectionPreprocess] = None
313
+
314
+ throttle_rate_per_sec: Annotated[
315
+ Optional[str], pydantic.Field(alias="throttleRatePerSec")
316
+ ] = "0"
317
+ r"""Rate (in bytes per second) to throttle while writing to an output. Accepts values with multiple-byte units, such as KB, MB, and GB. (Example: 42 MB) Default value of 0 specifies no throttling."""
318
+
319
+ metadata: Optional[List[RunnableJobCollectionMetadatum]] = None
320
+ r"""Fields to add to events from this input"""
321
+
322
+ pipeline: Optional[str] = None
323
+ r"""Pipeline to process results"""
324
+
325
+ output: Optional[str] = None
326
+ r"""Destination to send results to"""
327
+
328
+
329
+ class RunnableJobCollectionLogLevel(str, Enum):
330
+ r"""Level at which to set task logging"""
331
+
332
+ ERROR = "error"
333
+ WARN = "warn"
334
+ INFO = "info"
335
+ DEBUG = "debug"
336
+ SILLY = "silly"
337
+
338
+
339
+ class RunnableJobCollectionMode(str, Enum):
340
+ r"""Job run mode. Preview will either return up to N matching results, or will run until capture time T is reached. Discovery will gather the list of files to turn into streaming tasks, without running the data collection job. Full Run will run the collection job."""
341
+
342
+ LIST = "list"
343
+ PREVIEW = "preview"
344
+ RUN = "run"
345
+
346
+
347
+ class TimeRange(str, Enum):
348
+ ABSOLUTE = "absolute"
349
+ RELATIVE = "relative"
350
+
351
+
352
+ class RunnableJobCollectionTimeWarningTypedDict(TypedDict):
353
+ pass
354
+
355
+
356
+ class RunnableJobCollectionTimeWarning(BaseModel):
357
+ pass
358
+
359
+
360
+ class WhereToCapture(int, Enum):
361
+ ZERO = 0
362
+ ONE = 1
363
+ TWO = 2
364
+ THREE = 3
365
+
366
+
367
+ class CaptureSettingsTypedDict(TypedDict):
368
+ duration: NotRequired[float]
369
+ r"""Amount of time to keep capture open, in seconds"""
370
+ max_events: NotRequired[float]
371
+ r"""Maximum number of events to capture"""
372
+ level: NotRequired[WhereToCapture]
373
+
374
+
375
+ class CaptureSettings(BaseModel):
376
+ duration: Optional[float] = 60
377
+ r"""Amount of time to keep capture open, in seconds"""
378
+
379
+ max_events: Annotated[Optional[float], pydantic.Field(alias="maxEvents")] = 100
380
+ r"""Maximum number of events to capture"""
381
+
382
+ level: Optional[WhereToCapture] = WhereToCapture.ZERO
383
+
384
+
385
+ class RunnableJobCollectionRunTypedDict(TypedDict):
386
+ reschedule_dropped_tasks: NotRequired[bool]
387
+ r"""Reschedule tasks that failed with non-fatal errors"""
388
+ max_task_reschedule: NotRequired[float]
389
+ r"""Maximum number of times a task can be rescheduled"""
390
+ log_level: NotRequired[RunnableJobCollectionLogLevel]
391
+ r"""Level at which to set task logging"""
392
+ job_timeout: NotRequired[str]
393
+ r"""Maximum time the job is allowed to run. Time unit defaults to seconds if not specified (examples: 30, 45s, 15m). Enter 0 for unlimited time."""
394
+ mode: NotRequired[RunnableJobCollectionMode]
395
+ r"""Job run mode. Preview will either return up to N matching results, or will run until capture time T is reached. Discovery will gather the list of files to turn into streaming tasks, without running the data collection job. Full Run will run the collection job."""
396
+ time_range_type: NotRequired[TimeRange]
397
+ earliest: NotRequired[float]
398
+ r"""Earliest time to collect data for the selected timezone"""
399
+ latest: NotRequired[float]
400
+ r"""Latest time to collect data for the selected timezone"""
401
+ timestamp_timezone: NotRequired[str]
402
+ r"""Timezone to use for Earliest and Latest times"""
403
+ time_warning: NotRequired[RunnableJobCollectionTimeWarningTypedDict]
404
+ expression: NotRequired[str]
405
+ r"""A filter for tokens in the provided collect path and/or the events being collected"""
406
+ min_task_size: NotRequired[str]
407
+ r"""Limits the bundle size for small tasks. For example,
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+ if your lower bundle size is 1MB, you can bundle up to five 200KB files into one task.
418
+ """
419
+ max_task_size: NotRequired[str]
420
+ r"""Limits the bundle size for files above the lower task bundle size. For example, if your upper bundle size is 10MB,
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+ you can bundle up to five 2MB files into one task. Files greater than this size will be assigned to individual tasks.
431
+ """
432
+ discover_to_routes: NotRequired[bool]
433
+ r"""Send discover results to Routes"""
434
+ capture: NotRequired[CaptureSettingsTypedDict]
435
+
436
+
437
+ class RunnableJobCollectionRun(BaseModel):
438
+ reschedule_dropped_tasks: Annotated[
439
+ Optional[bool], pydantic.Field(alias="rescheduleDroppedTasks")
440
+ ] = True
441
+ r"""Reschedule tasks that failed with non-fatal errors"""
442
+
443
+ max_task_reschedule: Annotated[
444
+ Optional[float], pydantic.Field(alias="maxTaskReschedule")
445
+ ] = 1
446
+ r"""Maximum number of times a task can be rescheduled"""
447
+
448
+ log_level: Annotated[
449
+ Optional[RunnableJobCollectionLogLevel], pydantic.Field(alias="logLevel")
450
+ ] = RunnableJobCollectionLogLevel.INFO
451
+ r"""Level at which to set task logging"""
452
+
453
+ job_timeout: Annotated[Optional[str], pydantic.Field(alias="jobTimeout")] = "0"
454
+ r"""Maximum time the job is allowed to run. Time unit defaults to seconds if not specified (examples: 30, 45s, 15m). Enter 0 for unlimited time."""
455
+
456
+ mode: Optional[RunnableJobCollectionMode] = RunnableJobCollectionMode.LIST
457
+ r"""Job run mode. Preview will either return up to N matching results, or will run until capture time T is reached. Discovery will gather the list of files to turn into streaming tasks, without running the data collection job. Full Run will run the collection job."""
458
+
459
+ time_range_type: Annotated[
460
+ Optional[TimeRange], pydantic.Field(alias="timeRangeType")
461
+ ] = TimeRange.RELATIVE
462
+
463
+ earliest: Optional[float] = None
464
+ r"""Earliest time to collect data for the selected timezone"""
465
+
466
+ latest: Optional[float] = None
467
+ r"""Latest time to collect data for the selected timezone"""
468
+
469
+ timestamp_timezone: Annotated[
470
+ Optional[str], pydantic.Field(alias="timestampTimezone")
471
+ ] = "UTC"
472
+ r"""Timezone to use for Earliest and Latest times"""
473
+
474
+ time_warning: Annotated[
475
+ Optional[RunnableJobCollectionTimeWarning], pydantic.Field(alias="timeWarning")
476
+ ] = None
477
+
478
+ expression: Optional[str] = "true"
479
+ r"""A filter for tokens in the provided collect path and/or the events being collected"""
480
+
481
+ min_task_size: Annotated[Optional[str], pydantic.Field(alias="minTaskSize")] = "1MB"
482
+ r"""Limits the bundle size for small tasks. For example,
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+ if your lower bundle size is 1MB, you can bundle up to five 200KB files into one task.
493
+ """
494
+
495
+ max_task_size: Annotated[Optional[str], pydantic.Field(alias="maxTaskSize")] = (
496
+ "10MB"
497
+ )
498
+ r"""Limits the bundle size for files above the lower task bundle size. For example, if your upper bundle size is 10MB,
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+ you can bundle up to five 2MB files into one task. Files greater than this size will be assigned to individual tasks.
509
+ """
510
+
511
+ discover_to_routes: Annotated[
512
+ Optional[bool], pydantic.Field(alias="discoverToRoutes")
513
+ ] = False
514
+ r"""Send discover results to Routes"""
515
+
516
+ capture: Optional[CaptureSettings] = None
517
+
518
+
519
+ class RunnableJobCollectionTypedDict(TypedDict):
520
+ collector: CollectorTypedDict
521
+ run: RunnableJobCollectionRunTypedDict
522
+ id: NotRequired[str]
523
+ r"""Unique ID for this Job"""
524
+ description: NotRequired[str]
525
+ type: NotRequired[RunnableJobCollectionJobType]
526
+ ttl: NotRequired[str]
527
+ r"""Time to keep the job's artifacts on disk after job completion. This also affects how long a job is listed in the Job Inspector."""
528
+ ignore_group_jobs_limit: NotRequired[bool]
529
+ r"""When enabled, this job's artifacts are not counted toward the Worker Group's finished job artifacts limit. Artifacts will be removed only after the Collector's configured time to live."""
530
+ remove_fields: NotRequired[List[str]]
531
+ r"""List of fields to remove from Discover results. Wildcards (for example, aws*) are allowed. This is useful when discovery returns sensitive fields that should not be exposed in the Jobs user interface."""
532
+ resume_on_boot: NotRequired[bool]
533
+ r"""Resume the ad hoc job if a failure condition causes Stream to restart during job execution"""
534
+ environment: NotRequired[str]
535
+ r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
536
+ schedule: NotRequired[RunnableJobCollectionScheduleTypedDict]
537
+ r"""Configuration for a scheduled job"""
538
+ streamtags: NotRequired[List[str]]
539
+ r"""Tags for filtering and grouping in @{product}"""
540
+ worker_affinity: NotRequired[bool]
541
+ r"""If enabled, tasks are created and run by the same Worker Node"""
542
+ input: NotRequired[RunnableJobCollectionInputTypedDict]
543
+
544
+
545
+ class RunnableJobCollection(BaseModel):
546
+ collector: Collector
547
+
548
+ run: RunnableJobCollectionRun
549
+
550
+ id: Optional[str] = None
551
+ r"""Unique ID for this Job"""
552
+
553
+ description: Optional[str] = None
554
+
555
+ type: Optional[RunnableJobCollectionJobType] = None
556
+
557
+ ttl: Optional[str] = "4h"
558
+ r"""Time to keep the job's artifacts on disk after job completion. This also affects how long a job is listed in the Job Inspector."""
559
+
560
+ ignore_group_jobs_limit: Annotated[
561
+ Optional[bool], pydantic.Field(alias="ignoreGroupJobsLimit")
562
+ ] = False
563
+ r"""When enabled, this job's artifacts are not counted toward the Worker Group's finished job artifacts limit. Artifacts will be removed only after the Collector's configured time to live."""
564
+
565
+ remove_fields: Annotated[
566
+ Optional[List[str]], pydantic.Field(alias="removeFields")
567
+ ] = None
568
+ r"""List of fields to remove from Discover results. Wildcards (for example, aws*) are allowed. This is useful when discovery returns sensitive fields that should not be exposed in the Jobs user interface."""
569
+
570
+ resume_on_boot: Annotated[Optional[bool], pydantic.Field(alias="resumeOnBoot")] = (
571
+ False
572
+ )
573
+ r"""Resume the ad hoc job if a failure condition causes Stream to restart during job execution"""
574
+
575
+ environment: Optional[str] = None
576
+ r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
577
+
578
+ schedule: Optional[RunnableJobCollectionSchedule] = None
579
+ r"""Configuration for a scheduled job"""
580
+
581
+ streamtags: Optional[List[str]] = None
582
+ r"""Tags for filtering and grouping in @{product}"""
583
+
584
+ worker_affinity: Annotated[
585
+ Optional[bool], pydantic.Field(alias="workerAffinity")
586
+ ] = False
587
+ r"""If enabled, tasks are created and run by the same Worker Node"""
588
+
589
+ input: Optional[RunnableJobCollectionInput] = None