cribl-control-plane 0.2.1rc6__py3-none-any.whl → 0.3.0a1__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.

Files changed (157) hide show
  1. cribl_control_plane/_version.py +4 -4
  2. cribl_control_plane/errors/__init__.py +5 -8
  3. cribl_control_plane/errors/{healthserverstatus_error.py → healthstatus_error.py} +9 -10
  4. cribl_control_plane/groups_sdk.py +30 -54
  5. cribl_control_plane/health.py +16 -22
  6. cribl_control_plane/models/__init__.py +50 -103
  7. cribl_control_plane/models/appmode.py +14 -0
  8. cribl_control_plane/models/authtoken.py +1 -5
  9. cribl_control_plane/models/configgroup.py +6 -35
  10. cribl_control_plane/models/createconfiggroupbyproductop.py +7 -8
  11. cribl_control_plane/models/createroutesappendbyidop.py +2 -2
  12. cribl_control_plane/models/createversionundoop.py +3 -3
  13. cribl_control_plane/models/deleteoutputpqbyidop.py +2 -2
  14. cribl_control_plane/models/distributedsummary.py +0 -6
  15. cribl_control_plane/models/error.py +16 -0
  16. cribl_control_plane/models/gethealthinfoop.py +17 -0
  17. cribl_control_plane/models/hbcriblinfo.py +3 -14
  18. cribl_control_plane/models/{healthserverstatus.py → healthstatus.py} +7 -7
  19. cribl_control_plane/models/heartbeatmetadata.py +0 -3
  20. cribl_control_plane/models/input.py +63 -65
  21. cribl_control_plane/models/inputappscope.py +0 -4
  22. cribl_control_plane/models/inputazureblob.py +0 -4
  23. cribl_control_plane/models/inputcollection.py +0 -4
  24. cribl_control_plane/models/inputconfluentcloud.py +18 -8
  25. cribl_control_plane/models/inputcribl.py +0 -4
  26. cribl_control_plane/models/inputcriblhttp.py +0 -4
  27. cribl_control_plane/models/inputcribllakehttp.py +0 -4
  28. cribl_control_plane/models/inputcriblmetrics.py +0 -4
  29. cribl_control_plane/models/inputcribltcp.py +0 -4
  30. cribl_control_plane/models/inputcrowdstrike.py +0 -7
  31. cribl_control_plane/models/inputdatadogagent.py +0 -4
  32. cribl_control_plane/models/inputdatagen.py +0 -4
  33. cribl_control_plane/models/inputedgeprometheus.py +0 -12
  34. cribl_control_plane/models/inputelastic.py +0 -11
  35. cribl_control_plane/models/inputeventhub.py +0 -6
  36. cribl_control_plane/models/inputexec.py +0 -4
  37. cribl_control_plane/models/inputfile.py +0 -6
  38. cribl_control_plane/models/inputfirehose.py +0 -4
  39. cribl_control_plane/models/inputgooglepubsub.py +0 -7
  40. cribl_control_plane/models/inputgrafana.py +0 -8
  41. cribl_control_plane/models/inputhttp.py +0 -4
  42. cribl_control_plane/models/inputhttpraw.py +0 -4
  43. cribl_control_plane/models/inputjournalfiles.py +0 -4
  44. cribl_control_plane/models/inputkafka.py +17 -8
  45. cribl_control_plane/models/inputkinesis.py +0 -15
  46. cribl_control_plane/models/inputkubeevents.py +0 -4
  47. cribl_control_plane/models/inputkubelogs.py +0 -4
  48. cribl_control_plane/models/inputkubemetrics.py +0 -4
  49. cribl_control_plane/models/inputloki.py +0 -4
  50. cribl_control_plane/models/inputmetrics.py +0 -4
  51. cribl_control_plane/models/inputmodeldriventelemetry.py +0 -4
  52. cribl_control_plane/models/inputmsk.py +17 -7
  53. cribl_control_plane/models/inputnetflow.py +0 -4
  54. cribl_control_plane/models/inputoffice365mgmt.py +0 -11
  55. cribl_control_plane/models/inputoffice365msgtrace.py +0 -11
  56. cribl_control_plane/models/inputoffice365service.py +0 -11
  57. cribl_control_plane/models/inputopentelemetry.py +0 -8
  58. cribl_control_plane/models/inputprometheus.py +0 -10
  59. cribl_control_plane/models/inputprometheusrw.py +0 -4
  60. cribl_control_plane/models/inputrawudp.py +0 -4
  61. cribl_control_plane/models/inputs3.py +0 -7
  62. cribl_control_plane/models/inputs3inventory.py +0 -7
  63. cribl_control_plane/models/inputsecuritylake.py +0 -7
  64. cribl_control_plane/models/inputsnmp.py +0 -11
  65. cribl_control_plane/models/inputsplunk.py +0 -9
  66. cribl_control_plane/models/inputsplunkhec.py +0 -4
  67. cribl_control_plane/models/inputsplunksearch.py +0 -7
  68. cribl_control_plane/models/inputsqs.py +0 -9
  69. cribl_control_plane/models/inputsyslog.py +0 -8
  70. cribl_control_plane/models/inputsystemmetrics.py +0 -32
  71. cribl_control_plane/models/inputsystemstate.py +0 -4
  72. cribl_control_plane/models/inputtcp.py +0 -4
  73. cribl_control_plane/models/inputtcpjson.py +0 -4
  74. cribl_control_plane/models/inputwef.py +0 -6
  75. cribl_control_plane/models/inputwindowsmetrics.py +0 -28
  76. cribl_control_plane/models/inputwineventlogs.py +0 -8
  77. cribl_control_plane/models/inputwiz.py +0 -7
  78. cribl_control_plane/models/inputwizwebhook.py +0 -4
  79. cribl_control_plane/models/inputzscalerhec.py +0 -4
  80. cribl_control_plane/models/jobinfo.py +1 -4
  81. cribl_control_plane/models/logininfo.py +3 -3
  82. cribl_control_plane/models/nodeprovidedinfo.py +1 -11
  83. cribl_control_plane/models/output.py +72 -77
  84. cribl_control_plane/models/outputazureblob.py +0 -20
  85. cribl_control_plane/models/outputazuredataexplorer.py +0 -28
  86. cribl_control_plane/models/outputazureeventhub.py +0 -17
  87. cribl_control_plane/models/outputazurelogs.py +0 -13
  88. cribl_control_plane/models/outputchronicle.py +0 -13
  89. cribl_control_plane/models/outputclickhouse.py +0 -17
  90. cribl_control_plane/models/outputcloudwatch.py +0 -13
  91. cribl_control_plane/models/outputconfluentcloud.py +18 -24
  92. cribl_control_plane/models/outputcriblhttp.py +0 -15
  93. cribl_control_plane/models/outputcribllake.py +0 -21
  94. cribl_control_plane/models/outputcribltcp.py +0 -12
  95. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +0 -15
  96. cribl_control_plane/models/outputdatadog.py +0 -30
  97. cribl_control_plane/models/outputdataset.py +0 -23
  98. cribl_control_plane/models/outputdls3.py +0 -35
  99. cribl_control_plane/models/outputdynatracehttp.py +0 -22
  100. cribl_control_plane/models/outputdynatraceotlp.py +0 -22
  101. cribl_control_plane/models/outputelastic.py +0 -18
  102. cribl_control_plane/models/outputelasticcloud.py +0 -13
  103. cribl_control_plane/models/outputexabeam.py +0 -14
  104. cribl_control_plane/models/outputfilesystem.py +0 -15
  105. cribl_control_plane/models/outputgooglechronicle.py +0 -21
  106. cribl_control_plane/models/outputgooglecloudlogging.py +0 -19
  107. cribl_control_plane/models/outputgooglecloudstorage.py +0 -28
  108. cribl_control_plane/models/outputgooglepubsub.py +0 -13
  109. cribl_control_plane/models/outputgrafanacloud.py +0 -50
  110. cribl_control_plane/models/outputgraphite.py +0 -12
  111. cribl_control_plane/models/outputhoneycomb.py +0 -13
  112. cribl_control_plane/models/outputhumiohec.py +0 -15
  113. cribl_control_plane/models/outputinfluxdb.py +0 -19
  114. cribl_control_plane/models/outputkafka.py +17 -24
  115. cribl_control_plane/models/outputkinesis.py +0 -15
  116. cribl_control_plane/models/outputloki.py +0 -20
  117. cribl_control_plane/models/outputminio.py +0 -28
  118. cribl_control_plane/models/outputmsk.py +17 -23
  119. cribl_control_plane/models/outputnewrelic.py +0 -16
  120. cribl_control_plane/models/outputnewrelicevents.py +0 -16
  121. cribl_control_plane/models/outputopentelemetry.py +0 -22
  122. cribl_control_plane/models/outputprometheus.py +0 -13
  123. cribl_control_plane/models/outputring.py +0 -2
  124. cribl_control_plane/models/outputs3.py +0 -35
  125. cribl_control_plane/models/outputsecuritylake.py +0 -29
  126. cribl_control_plane/models/outputsentinel.py +0 -15
  127. cribl_control_plane/models/outputsentineloneaisiem.py +0 -13
  128. cribl_control_plane/models/outputservicenow.py +0 -21
  129. cribl_control_plane/models/outputsignalfx.py +0 -13
  130. cribl_control_plane/models/outputsns.py +0 -13
  131. cribl_control_plane/models/outputsplunk.py +0 -15
  132. cribl_control_plane/models/outputsplunkhec.py +0 -13
  133. cribl_control_plane/models/outputsplunklb.py +0 -15
  134. cribl_control_plane/models/outputsqs.py +0 -15
  135. cribl_control_plane/models/outputstatsd.py +0 -12
  136. cribl_control_plane/models/outputstatsdext.py +0 -12
  137. cribl_control_plane/models/outputsumologic.py +0 -15
  138. cribl_control_plane/models/outputsyslog.py +0 -24
  139. cribl_control_plane/models/outputtcpjson.py +0 -12
  140. cribl_control_plane/models/outputwavefront.py +0 -13
  141. cribl_control_plane/models/outputwebhook.py +0 -23
  142. cribl_control_plane/models/outputxsiam.py +0 -13
  143. cribl_control_plane/models/packinfo.py +5 -8
  144. cribl_control_plane/models/packinstallinfo.py +5 -8
  145. cribl_control_plane/models/{uploadpackresponse.py → routecloneconf.py} +4 -4
  146. cribl_control_plane/models/routeconf.py +4 -3
  147. cribl_control_plane/models/runnablejobcollection.py +0 -4
  148. cribl_control_plane/packs.py +7 -202
  149. cribl_control_plane/routes_sdk.py +6 -6
  150. cribl_control_plane/tokens.py +15 -23
  151. {cribl_control_plane-0.2.1rc6.dist-info → cribl_control_plane-0.3.0a1.dist-info}/METADATA +9 -50
  152. {cribl_control_plane-0.2.1rc6.dist-info → cribl_control_plane-0.3.0a1.dist-info}/RECORD +153 -154
  153. cribl_control_plane/models/groupcreaterequest.py +0 -152
  154. cribl_control_plane/models/outpostnodeinfo.py +0 -16
  155. cribl_control_plane/models/outputdatabricks.py +0 -411
  156. cribl_control_plane/models/updatepacksop.py +0 -25
  157. {cribl_control_plane-0.2.1rc6.dist-info → cribl_control_plane-0.3.0a1.dist-info}/WHEEL +0 -0
@@ -1,16 +0,0 @@
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 typing_extensions import TypedDict
6
-
7
-
8
- class OutpostNodeInfoTypedDict(TypedDict):
9
- guid: str
10
- host: str
11
-
12
-
13
- class OutpostNodeInfo(BaseModel):
14
- guid: str
15
-
16
- host: str
@@ -1,411 +0,0 @@
1
- """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
-
3
- from __future__ import annotations
4
- from cribl_control_plane import utils
5
- from cribl_control_plane.types import BaseModel
6
- from cribl_control_plane.utils import validate_open_enum
7
- from enum import Enum
8
- import pydantic
9
- from pydantic.functional_validators import PlainValidator
10
- from typing import List, Optional
11
- from typing_extensions import Annotated, NotRequired, TypedDict
12
-
13
-
14
- class OutputDatabricksType(str, Enum):
15
- DATABRICKS = "databricks"
16
-
17
-
18
- class OutputDatabricksDataFormat(str, Enum, metaclass=utils.OpenEnumMeta):
19
- r"""Format of the output data"""
20
-
21
- # JSON
22
- JSON = "json"
23
- # Raw
24
- RAW = "raw"
25
- # Parquet
26
- PARQUET = "parquet"
27
-
28
-
29
- class OutputDatabricksBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
30
- r"""How to handle events when all receivers are exerting backpressure"""
31
-
32
- # Block
33
- BLOCK = "block"
34
- # Drop
35
- DROP = "drop"
36
-
37
-
38
- class OutputDatabricksDiskSpaceProtection(str, Enum, metaclass=utils.OpenEnumMeta):
39
- r"""How to handle events when disk space is below the global 'Min free disk space' limit"""
40
-
41
- # Block
42
- BLOCK = "block"
43
- # Drop
44
- DROP = "drop"
45
-
46
-
47
- class OutputDatabricksCompression(str, Enum, metaclass=utils.OpenEnumMeta):
48
- r"""Data compression format to apply to HTTP content before it is delivered"""
49
-
50
- NONE = "none"
51
- GZIP = "gzip"
52
-
53
-
54
- class OutputDatabricksCompressionLevel(str, Enum, metaclass=utils.OpenEnumMeta):
55
- r"""Compression level to apply before moving files to final destination"""
56
-
57
- # Best Speed
58
- BEST_SPEED = "best_speed"
59
- # Normal
60
- NORMAL = "normal"
61
- # Best Compression
62
- BEST_COMPRESSION = "best_compression"
63
-
64
-
65
- class OutputDatabricksParquetVersion(str, Enum, metaclass=utils.OpenEnumMeta):
66
- r"""Determines which data types are supported and how they are represented"""
67
-
68
- # 1.0
69
- PARQUET_1_0 = "PARQUET_1_0"
70
- # 2.4
71
- PARQUET_2_4 = "PARQUET_2_4"
72
- # 2.6
73
- PARQUET_2_6 = "PARQUET_2_6"
74
-
75
-
76
- class OutputDatabricksDataPageVersion(str, Enum, metaclass=utils.OpenEnumMeta):
77
- r"""Serialization format of data pages. Note that some reader implementations use Data page V2's attributes to work more efficiently, while others ignore it."""
78
-
79
- # V1
80
- DATA_PAGE_V1 = "DATA_PAGE_V1"
81
- # V2
82
- DATA_PAGE_V2 = "DATA_PAGE_V2"
83
-
84
-
85
- class OutputDatabricksKeyValueMetadatumTypedDict(TypedDict):
86
- value: str
87
- key: NotRequired[str]
88
-
89
-
90
- class OutputDatabricksKeyValueMetadatum(BaseModel):
91
- value: str
92
-
93
- key: Optional[str] = ""
94
-
95
-
96
- class OutputDatabricksTypedDict(TypedDict):
97
- type: OutputDatabricksType
98
- workspace_id: str
99
- r"""Databricks workspace ID"""
100
- client_id: str
101
- r"""OAuth client ID for Unity Catalog authentication"""
102
- client_secret: str
103
- r"""OAuth client secret for Unity Catalog authentication"""
104
- id: NotRequired[str]
105
- r"""Unique ID for this output"""
106
- pipeline: NotRequired[str]
107
- r"""Pipeline to process data before sending out to this output"""
108
- system_fields: NotRequired[List[str]]
109
- r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
110
- environment: NotRequired[str]
111
- r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
112
- streamtags: NotRequired[List[str]]
113
- r"""Tags for filtering and grouping in @{product}"""
114
- dest_path: NotRequired[str]
115
- r"""Optional path to prepend to files before uploading. Must be a JavaScript expression (which can evaluate to a constant value), enclosed in quotes or backticks. Can be evaluated only at init time. Example referencing a Global Variable: `myEventsVolumePath-${C.vars.myVar}`"""
116
- stage_path: NotRequired[str]
117
- r"""Filesystem location in which to buffer files before compressing and moving to final destination. Use performant, stable storage."""
118
- add_id_to_stage_path: NotRequired[bool]
119
- r"""Add the Output ID value to staging location"""
120
- remove_empty_dirs: NotRequired[bool]
121
- r"""Remove empty staging directories after moving files"""
122
- partition_expr: NotRequired[str]
123
- r"""JavaScript expression defining how files are partitioned and organized. Default is date-based. If blank, Stream will fall back to the event's __partition field value – if present – otherwise to each location's root directory."""
124
- format_: NotRequired[OutputDatabricksDataFormat]
125
- r"""Format of the output data"""
126
- base_file_name: NotRequired[str]
127
- r"""JavaScript expression to define the output filename prefix (can be constant)"""
128
- file_name_suffix: NotRequired[str]
129
- r"""JavaScript expression to define the output filename suffix (can be constant). The `__format` variable refers to the value of the `Data format` field (`json` or `raw`). The `__compression` field refers to the kind of compression being used (`none` or `gzip`)."""
130
- max_file_size_mb: NotRequired[float]
131
- r"""Maximum uncompressed output file size. Files of this size will be closed and moved to final output location."""
132
- max_file_open_time_sec: NotRequired[float]
133
- r"""Maximum amount of time to write to a file. Files open for longer than this will be closed and moved to final output location."""
134
- max_file_idle_time_sec: NotRequired[float]
135
- r"""Maximum amount of time to keep inactive files open. Files open for longer than this will be closed and moved to final output location."""
136
- max_open_files: NotRequired[float]
137
- r"""Maximum number of files to keep open concurrently. When exceeded, @{product} will close the oldest open files and move them to the final output location."""
138
- header_line: NotRequired[str]
139
- r"""If set, this line will be written to the beginning of each output file"""
140
- write_high_water_mark: NotRequired[float]
141
- r"""Buffer size used to write to a file"""
142
- on_backpressure: NotRequired[OutputDatabricksBackpressureBehavior]
143
- r"""How to handle events when all receivers are exerting backpressure"""
144
- deadletter_enabled: NotRequired[bool]
145
- r"""If a file fails to move to its final destination after the maximum number of retries, move it to a designated directory to prevent further errors"""
146
- on_disk_full_backpressure: NotRequired[OutputDatabricksDiskSpaceProtection]
147
- r"""How to handle events when disk space is below the global 'Min free disk space' limit"""
148
- scope: NotRequired[str]
149
- r"""OAuth scope for Unity Catalog authentication"""
150
- catalog: NotRequired[str]
151
- r"""Name of the catalog to use for the output"""
152
- schema_: NotRequired[str]
153
- r"""Name of the catalog schema to use for the output"""
154
- events_volume_name: NotRequired[str]
155
- r"""Name of the events volume in Databricks"""
156
- description: NotRequired[str]
157
- compress: NotRequired[OutputDatabricksCompression]
158
- r"""Data compression format to apply to HTTP content before it is delivered"""
159
- compression_level: NotRequired[OutputDatabricksCompressionLevel]
160
- r"""Compression level to apply before moving files to final destination"""
161
- automatic_schema: NotRequired[bool]
162
- r"""Automatically calculate the schema based on the events of each Parquet file generated"""
163
- parquet_version: NotRequired[OutputDatabricksParquetVersion]
164
- r"""Determines which data types are supported and how they are represented"""
165
- parquet_data_page_version: NotRequired[OutputDatabricksDataPageVersion]
166
- r"""Serialization format of data pages. Note that some reader implementations use Data page V2's attributes to work more efficiently, while others ignore it."""
167
- parquet_row_group_length: NotRequired[float]
168
- r"""The number of rows that every group will contain. The final group can contain a smaller number of rows."""
169
- parquet_page_size: NotRequired[str]
170
- r"""Target memory size for page segments, such as 1MB or 128MB. Generally, lower values improve reading speed, while higher values improve compression."""
171
- should_log_invalid_rows: NotRequired[bool]
172
- r"""Log up to 3 rows that @{product} skips due to data mismatch"""
173
- key_value_metadata: NotRequired[List[OutputDatabricksKeyValueMetadatumTypedDict]]
174
- r"""The metadata of files the Destination writes will include the properties you add here as key-value pairs. Useful for tagging. Examples: \"key\":\"OCSF Event Class\", \"value\":\"9001\" """
175
- enable_statistics: NotRequired[bool]
176
- r"""Statistics profile an entire file in terms of minimum/maximum values within data, numbers of nulls, etc. You can use Parquet tools to view statistics."""
177
- enable_write_page_index: NotRequired[bool]
178
- r"""One page index contains statistics for one data page. Parquet readers use statistics to enable page skipping."""
179
- enable_page_checksum: NotRequired[bool]
180
- r"""Parquet tools can use the checksum of a Parquet page to verify data integrity"""
181
- empty_dir_cleanup_sec: NotRequired[float]
182
- r"""How frequently, in seconds, to clean up empty directories"""
183
- deadletter_path: NotRequired[str]
184
- r"""Storage location for files that fail to reach their final destination after maximum retries are exceeded"""
185
- max_retry_num: NotRequired[float]
186
- r"""The maximum number of times a file will attempt to move to its final destination before being dead-lettered"""
187
-
188
-
189
- class OutputDatabricks(BaseModel):
190
- type: OutputDatabricksType
191
-
192
- workspace_id: Annotated[str, pydantic.Field(alias="workspaceId")]
193
- r"""Databricks workspace ID"""
194
-
195
- client_id: Annotated[str, pydantic.Field(alias="clientId")]
196
- r"""OAuth client ID for Unity Catalog authentication"""
197
-
198
- client_secret: Annotated[str, pydantic.Field(alias="clientSecret")]
199
- r"""OAuth client secret for Unity Catalog authentication"""
200
-
201
- id: Optional[str] = None
202
- r"""Unique ID for this output"""
203
-
204
- pipeline: Optional[str] = None
205
- r"""Pipeline to process data before sending out to this output"""
206
-
207
- system_fields: Annotated[
208
- Optional[List[str]], pydantic.Field(alias="systemFields")
209
- ] = None
210
- r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
211
-
212
- environment: Optional[str] = None
213
- r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
214
-
215
- streamtags: Optional[List[str]] = None
216
- r"""Tags for filtering and grouping in @{product}"""
217
-
218
- dest_path: Annotated[Optional[str], pydantic.Field(alias="destPath")] = ""
219
- r"""Optional path to prepend to files before uploading. Must be a JavaScript expression (which can evaluate to a constant value), enclosed in quotes or backticks. Can be evaluated only at init time. Example referencing a Global Variable: `myEventsVolumePath-${C.vars.myVar}`"""
220
-
221
- stage_path: Annotated[Optional[str], pydantic.Field(alias="stagePath")] = (
222
- "$CRIBL_HOME/state/outputs/staging"
223
- )
224
- r"""Filesystem location in which to buffer files before compressing and moving to final destination. Use performant, stable storage."""
225
-
226
- add_id_to_stage_path: Annotated[
227
- Optional[bool], pydantic.Field(alias="addIdToStagePath")
228
- ] = True
229
- r"""Add the Output ID value to staging location"""
230
-
231
- remove_empty_dirs: Annotated[
232
- Optional[bool], pydantic.Field(alias="removeEmptyDirs")
233
- ] = True
234
- r"""Remove empty staging directories after moving files"""
235
-
236
- partition_expr: Annotated[Optional[str], pydantic.Field(alias="partitionExpr")] = (
237
- "C.Time.strftime(_time ? _time : Date.now()/1000, '%Y/%m/%d')"
238
- )
239
- r"""JavaScript expression defining how files are partitioned and organized. Default is date-based. If blank, Stream will fall back to the event's __partition field value – if present – otherwise to each location's root directory."""
240
-
241
- format_: Annotated[
242
- Annotated[
243
- Optional[OutputDatabricksDataFormat],
244
- PlainValidator(validate_open_enum(False)),
245
- ],
246
- pydantic.Field(alias="format"),
247
- ] = OutputDatabricksDataFormat.JSON
248
- r"""Format of the output data"""
249
-
250
- base_file_name: Annotated[Optional[str], pydantic.Field(alias="baseFileName")] = (
251
- "`CriblOut`"
252
- )
253
- r"""JavaScript expression to define the output filename prefix (can be constant)"""
254
-
255
- file_name_suffix: Annotated[
256
- Optional[str], pydantic.Field(alias="fileNameSuffix")
257
- ] = '`.${C.env["CRIBL_WORKER_ID"]}.${__format}${__compression === "gzip" ? ".gz" : ""}`'
258
- r"""JavaScript expression to define the output filename suffix (can be constant). The `__format` variable refers to the value of the `Data format` field (`json` or `raw`). The `__compression` field refers to the kind of compression being used (`none` or `gzip`)."""
259
-
260
- max_file_size_mb: Annotated[
261
- Optional[float], pydantic.Field(alias="maxFileSizeMB")
262
- ] = 32
263
- r"""Maximum uncompressed output file size. Files of this size will be closed and moved to final output location."""
264
-
265
- max_file_open_time_sec: Annotated[
266
- Optional[float], pydantic.Field(alias="maxFileOpenTimeSec")
267
- ] = 300
268
- r"""Maximum amount of time to write to a file. Files open for longer than this will be closed and moved to final output location."""
269
-
270
- max_file_idle_time_sec: Annotated[
271
- Optional[float], pydantic.Field(alias="maxFileIdleTimeSec")
272
- ] = 30
273
- r"""Maximum amount of time to keep inactive files open. Files open for longer than this will be closed and moved to final output location."""
274
-
275
- max_open_files: Annotated[Optional[float], pydantic.Field(alias="maxOpenFiles")] = (
276
- 100
277
- )
278
- r"""Maximum number of files to keep open concurrently. When exceeded, @{product} will close the oldest open files and move them to the final output location."""
279
-
280
- header_line: Annotated[Optional[str], pydantic.Field(alias="headerLine")] = ""
281
- r"""If set, this line will be written to the beginning of each output file"""
282
-
283
- write_high_water_mark: Annotated[
284
- Optional[float], pydantic.Field(alias="writeHighWaterMark")
285
- ] = 64
286
- r"""Buffer size used to write to a file"""
287
-
288
- on_backpressure: Annotated[
289
- Annotated[
290
- Optional[OutputDatabricksBackpressureBehavior],
291
- PlainValidator(validate_open_enum(False)),
292
- ],
293
- pydantic.Field(alias="onBackpressure"),
294
- ] = OutputDatabricksBackpressureBehavior.BLOCK
295
- r"""How to handle events when all receivers are exerting backpressure"""
296
-
297
- deadletter_enabled: Annotated[
298
- Optional[bool], pydantic.Field(alias="deadletterEnabled")
299
- ] = False
300
- r"""If a file fails to move to its final destination after the maximum number of retries, move it to a designated directory to prevent further errors"""
301
-
302
- on_disk_full_backpressure: Annotated[
303
- Annotated[
304
- Optional[OutputDatabricksDiskSpaceProtection],
305
- PlainValidator(validate_open_enum(False)),
306
- ],
307
- pydantic.Field(alias="onDiskFullBackpressure"),
308
- ] = OutputDatabricksDiskSpaceProtection.BLOCK
309
- r"""How to handle events when disk space is below the global 'Min free disk space' limit"""
310
-
311
- scope: Optional[str] = "all-apis"
312
- r"""OAuth scope for Unity Catalog authentication"""
313
-
314
- catalog: Optional[str] = "main"
315
- r"""Name of the catalog to use for the output"""
316
-
317
- schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = "external"
318
- r"""Name of the catalog schema to use for the output"""
319
-
320
- events_volume_name: Annotated[
321
- Optional[str], pydantic.Field(alias="eventsVolumeName")
322
- ] = "events"
323
- r"""Name of the events volume in Databricks"""
324
-
325
- description: Optional[str] = None
326
-
327
- compress: Annotated[
328
- Optional[OutputDatabricksCompression], PlainValidator(validate_open_enum(False))
329
- ] = OutputDatabricksCompression.GZIP
330
- r"""Data compression format to apply to HTTP content before it is delivered"""
331
-
332
- compression_level: Annotated[
333
- Annotated[
334
- Optional[OutputDatabricksCompressionLevel],
335
- PlainValidator(validate_open_enum(False)),
336
- ],
337
- pydantic.Field(alias="compressionLevel"),
338
- ] = OutputDatabricksCompressionLevel.BEST_SPEED
339
- r"""Compression level to apply before moving files to final destination"""
340
-
341
- automatic_schema: Annotated[
342
- Optional[bool], pydantic.Field(alias="automaticSchema")
343
- ] = False
344
- r"""Automatically calculate the schema based on the events of each Parquet file generated"""
345
-
346
- parquet_version: Annotated[
347
- Annotated[
348
- Optional[OutputDatabricksParquetVersion],
349
- PlainValidator(validate_open_enum(False)),
350
- ],
351
- pydantic.Field(alias="parquetVersion"),
352
- ] = OutputDatabricksParquetVersion.PARQUET_2_6
353
- r"""Determines which data types are supported and how they are represented"""
354
-
355
- parquet_data_page_version: Annotated[
356
- Annotated[
357
- Optional[OutputDatabricksDataPageVersion],
358
- PlainValidator(validate_open_enum(False)),
359
- ],
360
- pydantic.Field(alias="parquetDataPageVersion"),
361
- ] = OutputDatabricksDataPageVersion.DATA_PAGE_V2
362
- r"""Serialization format of data pages. Note that some reader implementations use Data page V2's attributes to work more efficiently, while others ignore it."""
363
-
364
- parquet_row_group_length: Annotated[
365
- Optional[float], pydantic.Field(alias="parquetRowGroupLength")
366
- ] = 10000
367
- r"""The number of rows that every group will contain. The final group can contain a smaller number of rows."""
368
-
369
- parquet_page_size: Annotated[
370
- Optional[str], pydantic.Field(alias="parquetPageSize")
371
- ] = "1MB"
372
- r"""Target memory size for page segments, such as 1MB or 128MB. Generally, lower values improve reading speed, while higher values improve compression."""
373
-
374
- should_log_invalid_rows: Annotated[
375
- Optional[bool], pydantic.Field(alias="shouldLogInvalidRows")
376
- ] = None
377
- r"""Log up to 3 rows that @{product} skips due to data mismatch"""
378
-
379
- key_value_metadata: Annotated[
380
- Optional[List[OutputDatabricksKeyValueMetadatum]],
381
- pydantic.Field(alias="keyValueMetadata"),
382
- ] = None
383
- r"""The metadata of files the Destination writes will include the properties you add here as key-value pairs. Useful for tagging. Examples: \"key\":\"OCSF Event Class\", \"value\":\"9001\" """
384
-
385
- enable_statistics: Annotated[
386
- Optional[bool], pydantic.Field(alias="enableStatistics")
387
- ] = True
388
- r"""Statistics profile an entire file in terms of minimum/maximum values within data, numbers of nulls, etc. You can use Parquet tools to view statistics."""
389
-
390
- enable_write_page_index: Annotated[
391
- Optional[bool], pydantic.Field(alias="enableWritePageIndex")
392
- ] = True
393
- r"""One page index contains statistics for one data page. Parquet readers use statistics to enable page skipping."""
394
-
395
- enable_page_checksum: Annotated[
396
- Optional[bool], pydantic.Field(alias="enablePageChecksum")
397
- ] = False
398
- r"""Parquet tools can use the checksum of a Parquet page to verify data integrity"""
399
-
400
- empty_dir_cleanup_sec: Annotated[
401
- Optional[float], pydantic.Field(alias="emptyDirCleanupSec")
402
- ] = 300
403
- r"""How frequently, in seconds, to clean up empty directories"""
404
-
405
- deadletter_path: Annotated[
406
- Optional[str], pydantic.Field(alias="deadletterPath")
407
- ] = "$CRIBL_HOME/state/outputs/dead-letter"
408
- r"""Storage location for files that fail to reach their final destination after maximum retries are exceeded"""
409
-
410
- max_retry_num: Annotated[Optional[float], pydantic.Field(alias="maxRetryNum")] = 20
411
- r"""The maximum number of times a file will attempt to move to its final destination before being dead-lettered"""
@@ -1,25 +0,0 @@
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 cribl_control_plane.utils import FieldMetadata, QueryParamMetadata
6
- import io
7
- from typing import IO, Union
8
- from typing_extensions import Annotated, TypedDict
9
-
10
-
11
- class UpdatePacksRequestTypedDict(TypedDict):
12
- filename: str
13
- r"""Filename of the Pack file to upload."""
14
- request_body: Union[bytes, IO[bytes], io.BufferedReader]
15
-
16
-
17
- class UpdatePacksRequest(BaseModel):
18
- filename: Annotated[
19
- str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True))
20
- ]
21
- r"""Filename of the Pack file to upload."""
22
-
23
- request_body: Annotated[
24
- Union[bytes, IO[bytes], io.BufferedReader], FieldMetadata(request=True)
25
- ]