cribl-control-plane 0.0.38__py3-none-any.whl → 0.4.0a6__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 (241) hide show
  1. cribl_control_plane/_hooks/clientcredentials.py +92 -42
  2. cribl_control_plane/_version.py +4 -4
  3. cribl_control_plane/acl.py +5 -3
  4. cribl_control_plane/auth_sdk.py +6 -3
  5. cribl_control_plane/basesdk.py +11 -1
  6. cribl_control_plane/commits.py +7 -5
  7. cribl_control_plane/destinations.py +6 -4
  8. cribl_control_plane/destinations_pq.py +2 -2
  9. cribl_control_plane/errors/__init__.py +23 -8
  10. cribl_control_plane/errors/apierror.py +2 -0
  11. cribl_control_plane/errors/criblcontrolplaneerror.py +11 -7
  12. cribl_control_plane/errors/error.py +4 -2
  13. cribl_control_plane/errors/healthserverstatus_error.py +41 -0
  14. cribl_control_plane/errors/no_response_error.py +5 -1
  15. cribl_control_plane/errors/responsevalidationerror.py +2 -0
  16. cribl_control_plane/groups_configs.py +8 -3
  17. cribl_control_plane/groups_sdk.py +64 -38
  18. cribl_control_plane/health.py +22 -12
  19. cribl_control_plane/httpclient.py +0 -1
  20. cribl_control_plane/lakedatasets.py +40 -12
  21. cribl_control_plane/models/__init__.py +1180 -54
  22. cribl_control_plane/models/authtoken.py +5 -1
  23. cribl_control_plane/models/{routecloneconf.py → branchinfo.py} +4 -4
  24. cribl_control_plane/models/cacheconnection.py +30 -2
  25. cribl_control_plane/models/cacheconnectionbackfillstatus.py +2 -1
  26. cribl_control_plane/models/cloudprovider.py +2 -1
  27. cribl_control_plane/models/configgroup.py +66 -11
  28. cribl_control_plane/models/configgroupcloud.py +17 -3
  29. cribl_control_plane/models/createconfiggroupbyproductop.py +27 -9
  30. cribl_control_plane/models/createinputhectokenbyidop.py +6 -5
  31. cribl_control_plane/models/createroutesappendbyidop.py +2 -2
  32. cribl_control_plane/models/createversionpushop.py +5 -5
  33. cribl_control_plane/models/createversionrevertop.py +2 -2
  34. cribl_control_plane/models/createversionundoop.py +3 -3
  35. cribl_control_plane/models/cribllakedataset.py +22 -2
  36. cribl_control_plane/models/cribllakedatasetupdate.py +95 -0
  37. cribl_control_plane/models/datasetmetadata.py +18 -2
  38. cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +18 -2
  39. cribl_control_plane/models/deleteoutputpqbyidop.py +5 -5
  40. cribl_control_plane/models/deletepipelinebyidop.py +2 -2
  41. cribl_control_plane/models/difffiles.py +171 -0
  42. cribl_control_plane/models/distributedsummary.py +6 -0
  43. cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +24 -2
  44. cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +24 -2
  45. cribl_control_plane/models/getconfiggroupbyproductandidop.py +14 -1
  46. cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +18 -2
  47. cribl_control_plane/models/getoutputpqbyidop.py +6 -5
  48. cribl_control_plane/models/getpipelinebyidop.py +2 -2
  49. cribl_control_plane/models/getroutesbyidop.py +2 -2
  50. cribl_control_plane/models/getsummaryop.py +18 -2
  51. cribl_control_plane/models/getversionbranchop.py +6 -5
  52. cribl_control_plane/models/getversioncountop.py +6 -5
  53. cribl_control_plane/models/getversiondiffop.py +6 -5
  54. cribl_control_plane/models/getversionshowop.py +6 -5
  55. cribl_control_plane/models/gitcountresult.py +13 -0
  56. cribl_control_plane/models/gitdiffresult.py +16 -0
  57. cribl_control_plane/models/gitinfo.py +14 -3
  58. cribl_control_plane/models/gitshowresult.py +19 -0
  59. cribl_control_plane/models/groupcreaterequest.py +171 -0
  60. cribl_control_plane/models/hbcriblinfo.py +39 -3
  61. cribl_control_plane/models/healthserverstatus.py +55 -0
  62. cribl_control_plane/models/heartbeatmetadata.py +3 -0
  63. cribl_control_plane/models/input.py +83 -78
  64. cribl_control_plane/models/inputappscope.py +126 -30
  65. cribl_control_plane/models/inputazureblob.py +62 -6
  66. cribl_control_plane/models/inputcloudflarehec.py +513 -0
  67. cribl_control_plane/models/inputcollection.py +47 -4
  68. cribl_control_plane/models/inputconfluentcloud.py +254 -30
  69. cribl_control_plane/models/inputcribl.py +47 -4
  70. cribl_control_plane/models/inputcriblhttp.py +121 -30
  71. cribl_control_plane/models/inputcribllakehttp.py +122 -30
  72. cribl_control_plane/models/inputcriblmetrics.py +48 -4
  73. cribl_control_plane/models/inputcribltcp.py +122 -24
  74. cribl_control_plane/models/inputcrowdstrike.py +92 -10
  75. cribl_control_plane/models/inputdatadogagent.py +98 -24
  76. cribl_control_plane/models/inputdatagen.py +47 -4
  77. cribl_control_plane/models/inputedgeprometheus.py +210 -50
  78. cribl_control_plane/models/inputelastic.py +167 -36
  79. cribl_control_plane/models/inputeventhub.py +209 -6
  80. cribl_control_plane/models/inputexec.py +59 -6
  81. cribl_control_plane/models/inputfile.py +78 -10
  82. cribl_control_plane/models/inputfirehose.py +97 -24
  83. cribl_control_plane/models/inputgooglepubsub.py +67 -6
  84. cribl_control_plane/models/inputgrafana.py +251 -71
  85. cribl_control_plane/models/inputhttp.py +97 -24
  86. cribl_control_plane/models/inputhttpraw.py +97 -24
  87. cribl_control_plane/models/inputjournalfiles.py +48 -4
  88. cribl_control_plane/models/inputkafka.py +248 -26
  89. cribl_control_plane/models/inputkinesis.py +130 -14
  90. cribl_control_plane/models/inputkubeevents.py +47 -4
  91. cribl_control_plane/models/inputkubelogs.py +61 -8
  92. cribl_control_plane/models/inputkubemetrics.py +61 -8
  93. cribl_control_plane/models/inputloki.py +113 -34
  94. cribl_control_plane/models/inputmetrics.py +97 -24
  95. cribl_control_plane/models/inputmodeldriventelemetry.py +107 -26
  96. cribl_control_plane/models/inputmsk.py +141 -30
  97. cribl_control_plane/models/inputnetflow.py +47 -4
  98. cribl_control_plane/models/inputoffice365mgmt.py +112 -14
  99. cribl_control_plane/models/inputoffice365msgtrace.py +114 -16
  100. cribl_control_plane/models/inputoffice365service.py +114 -16
  101. cribl_control_plane/models/inputopentelemetry.py +143 -32
  102. cribl_control_plane/models/inputprometheus.py +193 -44
  103. cribl_control_plane/models/inputprometheusrw.py +114 -27
  104. cribl_control_plane/models/inputrawudp.py +47 -4
  105. cribl_control_plane/models/inputs3.py +78 -8
  106. cribl_control_plane/models/inputs3inventory.py +92 -10
  107. cribl_control_plane/models/inputsecuritylake.py +93 -10
  108. cribl_control_plane/models/inputsnmp.py +68 -6
  109. cribl_control_plane/models/inputsplunk.py +130 -28
  110. cribl_control_plane/models/inputsplunkhec.py +111 -25
  111. cribl_control_plane/models/inputsplunksearch.py +108 -14
  112. cribl_control_plane/models/inputsqs.py +99 -16
  113. cribl_control_plane/models/inputsyslog.py +189 -47
  114. cribl_control_plane/models/inputsystemmetrics.py +202 -32
  115. cribl_control_plane/models/inputsystemstate.py +61 -8
  116. cribl_control_plane/models/inputtcp.py +122 -26
  117. cribl_control_plane/models/inputtcpjson.py +112 -26
  118. cribl_control_plane/models/inputwef.py +121 -15
  119. cribl_control_plane/models/inputwindowsmetrics.py +186 -33
  120. cribl_control_plane/models/inputwineventlogs.py +93 -11
  121. cribl_control_plane/models/inputwiz.py +78 -8
  122. cribl_control_plane/models/inputwizwebhook.py +97 -24
  123. cribl_control_plane/models/inputzscalerhec.py +111 -25
  124. cribl_control_plane/models/jobinfo.py +34 -0
  125. cribl_control_plane/models/jobstatus.py +48 -0
  126. cribl_control_plane/models/lakedatasetmetrics.py +17 -0
  127. cribl_control_plane/models/lakehouseconnectiontype.py +2 -1
  128. cribl_control_plane/models/listconfiggroupbyproductop.py +14 -1
  129. cribl_control_plane/models/logininfo.py +3 -3
  130. cribl_control_plane/models/masterworkerentry.py +17 -2
  131. cribl_control_plane/models/nodeactiveupgradestatus.py +2 -1
  132. cribl_control_plane/models/nodefailedupgradestatus.py +2 -1
  133. cribl_control_plane/models/nodeprovidedinfo.py +11 -1
  134. cribl_control_plane/models/nodeskippedupgradestatus.py +2 -1
  135. cribl_control_plane/models/nodeupgradestate.py +2 -1
  136. cribl_control_plane/models/nodeupgradestatus.py +51 -5
  137. cribl_control_plane/models/outpostnodeinfo.py +16 -0
  138. cribl_control_plane/models/output.py +104 -90
  139. cribl_control_plane/models/outputazureblob.py +171 -18
  140. cribl_control_plane/models/outputazuredataexplorer.py +514 -90
  141. cribl_control_plane/models/outputazureeventhub.py +315 -31
  142. cribl_control_plane/models/outputazurelogs.py +145 -26
  143. cribl_control_plane/models/outputchronicle.py +532 -0
  144. cribl_control_plane/models/outputclickhouse.py +205 -34
  145. cribl_control_plane/models/outputcloudflarer2.py +632 -0
  146. cribl_control_plane/models/outputcloudwatch.py +129 -23
  147. cribl_control_plane/models/outputconfluentcloud.py +384 -57
  148. cribl_control_plane/models/outputcriblhttp.py +199 -32
  149. cribl_control_plane/models/outputcribllake.py +156 -16
  150. cribl_control_plane/models/outputcribltcp.py +194 -29
  151. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +172 -28
  152. cribl_control_plane/models/outputdatabricks.py +501 -0
  153. cribl_control_plane/models/outputdatadog.py +199 -31
  154. cribl_control_plane/models/outputdataset.py +181 -29
  155. cribl_control_plane/models/outputdiskspool.py +17 -2
  156. cribl_control_plane/models/outputdls3.py +233 -24
  157. cribl_control_plane/models/outputdynatracehttp.py +208 -34
  158. cribl_control_plane/models/outputdynatraceotlp.py +210 -36
  159. cribl_control_plane/models/outputelastic.py +199 -30
  160. cribl_control_plane/models/outputelasticcloud.py +171 -26
  161. cribl_control_plane/models/outputexabeam.py +96 -10
  162. cribl_control_plane/models/outputfilesystem.py +139 -14
  163. cribl_control_plane/models/outputgooglechronicle.py +216 -35
  164. cribl_control_plane/models/outputgooglecloudlogging.py +174 -31
  165. cribl_control_plane/models/outputgooglecloudstorage.py +215 -24
  166. cribl_control_plane/models/outputgooglepubsub.py +131 -23
  167. cribl_control_plane/models/outputgrafanacloud.py +376 -74
  168. cribl_control_plane/models/outputgraphite.py +128 -25
  169. cribl_control_plane/models/outputhoneycomb.py +145 -26
  170. cribl_control_plane/models/outputhumiohec.py +162 -28
  171. cribl_control_plane/models/outputinfluxdb.py +165 -28
  172. cribl_control_plane/models/outputkafka.py +375 -52
  173. cribl_control_plane/models/outputkinesis.py +165 -27
  174. cribl_control_plane/models/outputloki.py +164 -34
  175. cribl_control_plane/models/outputmicrosoftfabric.py +540 -0
  176. cribl_control_plane/models/outputminio.py +225 -25
  177. cribl_control_plane/models/outputmsk.py +267 -54
  178. cribl_control_plane/models/outputnewrelic.py +171 -29
  179. cribl_control_plane/models/outputnewrelicevents.py +163 -28
  180. cribl_control_plane/models/outputopentelemetry.py +240 -40
  181. cribl_control_plane/models/outputprometheus.py +145 -26
  182. cribl_control_plane/models/outputring.py +49 -8
  183. cribl_control_plane/models/outputs3.py +233 -26
  184. cribl_control_plane/models/outputsecuritylake.py +179 -18
  185. cribl_control_plane/models/outputsentinel.py +172 -29
  186. cribl_control_plane/models/outputsentineloneaisiem.py +181 -35
  187. cribl_control_plane/models/outputservicenow.py +223 -38
  188. cribl_control_plane/models/outputsignalfx.py +145 -26
  189. cribl_control_plane/models/outputsns.py +143 -25
  190. cribl_control_plane/models/outputsplunk.py +206 -36
  191. cribl_control_plane/models/outputsplunkhec.py +238 -26
  192. cribl_control_plane/models/outputsplunklb.py +253 -43
  193. cribl_control_plane/models/outputsqs.py +163 -33
  194. cribl_control_plane/models/outputstatsd.py +127 -25
  195. cribl_control_plane/models/outputstatsdext.py +128 -25
  196. cribl_control_plane/models/outputsumologic.py +146 -25
  197. cribl_control_plane/models/outputsyslog.py +318 -46
  198. cribl_control_plane/models/outputtcpjson.py +186 -32
  199. cribl_control_plane/models/outputwavefront.py +145 -26
  200. cribl_control_plane/models/outputwebhook.py +211 -33
  201. cribl_control_plane/models/outputxsiam.py +143 -26
  202. cribl_control_plane/models/packinfo.py +8 -5
  203. cribl_control_plane/models/packinstallinfo.py +11 -8
  204. cribl_control_plane/models/productscore.py +2 -1
  205. cribl_control_plane/models/rbacresource.py +2 -1
  206. cribl_control_plane/models/resourcepolicy.py +15 -2
  207. cribl_control_plane/models/routeconf.py +3 -4
  208. cribl_control_plane/models/runnablejob.py +27 -0
  209. cribl_control_plane/models/runnablejobcollection.py +669 -0
  210. cribl_control_plane/models/runnablejobexecutor.py +368 -0
  211. cribl_control_plane/models/runnablejobscheduledsearch.py +286 -0
  212. cribl_control_plane/models/updateconfiggroupbyproductandidop.py +19 -2
  213. cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +19 -2
  214. cribl_control_plane/models/updatecribllakedatasetbylakeidandidop.py +9 -5
  215. cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +6 -5
  216. cribl_control_plane/models/updatepacksop.py +25 -0
  217. cribl_control_plane/models/updatepipelinebyidop.py +6 -6
  218. cribl_control_plane/models/updateroutesbyidop.py +2 -2
  219. cribl_control_plane/models/uploadpackresponse.py +13 -0
  220. cribl_control_plane/models/workertypes.py +2 -1
  221. cribl_control_plane/nodes.py +5 -3
  222. cribl_control_plane/packs.py +202 -7
  223. cribl_control_plane/pipelines.py +18 -18
  224. cribl_control_plane/routes_sdk.py +22 -22
  225. cribl_control_plane/sdk.py +19 -6
  226. cribl_control_plane/sources.py +5 -3
  227. cribl_control_plane/tokens.py +23 -15
  228. cribl_control_plane/utils/__init__.py +15 -3
  229. cribl_control_plane/utils/annotations.py +32 -8
  230. cribl_control_plane/utils/eventstreaming.py +10 -0
  231. cribl_control_plane/utils/retries.py +69 -5
  232. cribl_control_plane/utils/unmarshal_json_response.py +15 -1
  233. cribl_control_plane/versions.py +11 -6
  234. {cribl_control_plane-0.0.38.dist-info → cribl_control_plane-0.4.0a6.dist-info}/METADATA +69 -23
  235. cribl_control_plane-0.4.0a6.dist-info/RECORD +336 -0
  236. {cribl_control_plane-0.0.38.dist-info → cribl_control_plane-0.4.0a6.dist-info}/WHEEL +1 -1
  237. cribl_control_plane-0.4.0a6.dist-info/licenses/LICENSE +201 -0
  238. cribl_control_plane/errors/healthstatus_error.py +0 -32
  239. cribl_control_plane/models/appmode.py +0 -13
  240. cribl_control_plane/models/healthstatus.py +0 -33
  241. cribl_control_plane-0.0.38.dist-info/RECORD +0 -315
@@ -0,0 +1,513 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from cribl_control_plane import models, 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 import field_serializer
10
+ from pydantic.functional_validators import PlainValidator
11
+ from typing import Any, List, Optional
12
+ from typing_extensions import Annotated, NotRequired, TypedDict
13
+
14
+
15
+ class InputCloudflareHecType(str, Enum):
16
+ CLOUDFLARE_HEC = "cloudflare_hec"
17
+
18
+
19
+ class InputCloudflareHecConnectionTypedDict(TypedDict):
20
+ output: str
21
+ pipeline: NotRequired[str]
22
+
23
+
24
+ class InputCloudflareHecConnection(BaseModel):
25
+ output: str
26
+
27
+ pipeline: Optional[str] = None
28
+
29
+
30
+ class InputCloudflareHecMode(str, Enum, metaclass=utils.OpenEnumMeta):
31
+ r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
32
+
33
+ # Smart
34
+ SMART = "smart"
35
+ # Always On
36
+ ALWAYS = "always"
37
+
38
+
39
+ class InputCloudflareHecCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
+ r"""Codec to use to compress the persisted data"""
41
+
42
+ # None
43
+ NONE = "none"
44
+ # Gzip
45
+ GZIP = "gzip"
46
+
47
+
48
+ class InputCloudflareHecPqControlsTypedDict(TypedDict):
49
+ pass
50
+
51
+
52
+ class InputCloudflareHecPqControls(BaseModel):
53
+ pass
54
+
55
+
56
+ class InputCloudflareHecPqTypedDict(TypedDict):
57
+ mode: NotRequired[InputCloudflareHecMode]
58
+ r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
59
+ max_buffer_size: NotRequired[float]
60
+ r"""The maximum number of events to hold in memory before writing the events to disk"""
61
+ commit_frequency: NotRequired[float]
62
+ r"""The number of events to send downstream before committing that Stream has read them"""
63
+ max_file_size: NotRequired[str]
64
+ r"""The maximum size to store in each queue file before closing and optionally compressing. Enter a numeral with units of KB, MB, etc."""
65
+ max_size: NotRequired[str]
66
+ r"""The maximum disk space that the queue can consume (as an average per Worker Process) before queueing stops. Enter a numeral with units of KB, MB, etc."""
67
+ path: NotRequired[str]
68
+ r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
69
+ compress: NotRequired[InputCloudflareHecCompression]
70
+ r"""Codec to use to compress the persisted data"""
71
+ pq_controls: NotRequired[InputCloudflareHecPqControlsTypedDict]
72
+
73
+
74
+ class InputCloudflareHecPq(BaseModel):
75
+ mode: Annotated[
76
+ Optional[InputCloudflareHecMode], PlainValidator(validate_open_enum(False))
77
+ ] = InputCloudflareHecMode.ALWAYS
78
+ r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
79
+
80
+ max_buffer_size: Annotated[
81
+ Optional[float], pydantic.Field(alias="maxBufferSize")
82
+ ] = 1000
83
+ r"""The maximum number of events to hold in memory before writing the events to disk"""
84
+
85
+ commit_frequency: Annotated[
86
+ Optional[float], pydantic.Field(alias="commitFrequency")
87
+ ] = 42
88
+ r"""The number of events to send downstream before committing that Stream has read them"""
89
+
90
+ max_file_size: Annotated[Optional[str], pydantic.Field(alias="maxFileSize")] = (
91
+ "1 MB"
92
+ )
93
+ r"""The maximum size to store in each queue file before closing and optionally compressing. Enter a numeral with units of KB, MB, etc."""
94
+
95
+ max_size: Annotated[Optional[str], pydantic.Field(alias="maxSize")] = "5GB"
96
+ r"""The maximum disk space that the queue can consume (as an average per Worker Process) before queueing stops. Enter a numeral with units of KB, MB, etc."""
97
+
98
+ path: Optional[str] = "$CRIBL_HOME/state/queues"
99
+ r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
100
+
101
+ compress: Annotated[
102
+ Optional[InputCloudflareHecCompression],
103
+ PlainValidator(validate_open_enum(False)),
104
+ ] = InputCloudflareHecCompression.NONE
105
+ r"""Codec to use to compress the persisted data"""
106
+
107
+ pq_controls: Annotated[
108
+ Optional[InputCloudflareHecPqControls], pydantic.Field(alias="pqControls")
109
+ ] = None
110
+
111
+ @field_serializer("mode")
112
+ def serialize_mode(self, value):
113
+ if isinstance(value, str):
114
+ try:
115
+ return models.InputCloudflareHecMode(value)
116
+ except ValueError:
117
+ return value
118
+ return value
119
+
120
+ @field_serializer("compress")
121
+ def serialize_compress(self, value):
122
+ if isinstance(value, str):
123
+ try:
124
+ return models.InputCloudflareHecCompression(value)
125
+ except ValueError:
126
+ return value
127
+ return value
128
+
129
+
130
+ class InputCloudflareHecAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
131
+ r"""Select Secret to use a text secret to authenticate"""
132
+
133
+ SECRET = "secret"
134
+
135
+
136
+ class InputCloudflareHecAuthTokenMetadatumTypedDict(TypedDict):
137
+ name: str
138
+ value: str
139
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
140
+
141
+
142
+ class InputCloudflareHecAuthTokenMetadatum(BaseModel):
143
+ name: str
144
+
145
+ value: str
146
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
147
+
148
+
149
+ class InputCloudflareHecAuthTokenTypedDict(TypedDict):
150
+ auth_type: NotRequired[InputCloudflareHecAuthenticationMethod]
151
+ r"""Select Secret to use a text secret to authenticate"""
152
+ token_secret: NotRequired[Any]
153
+ token: NotRequired[Any]
154
+ enabled: NotRequired[bool]
155
+ description: NotRequired[str]
156
+ allowed_indexes_at_token: NotRequired[List[str]]
157
+ r"""Enter the values you want to allow in the HEC event index field at the token level. Supports wildcards. To skip validation, leave blank."""
158
+ metadata: NotRequired[List[InputCloudflareHecAuthTokenMetadatumTypedDict]]
159
+ r"""Fields to add to events referencing this token"""
160
+
161
+
162
+ class InputCloudflareHecAuthToken(BaseModel):
163
+ auth_type: Annotated[
164
+ Annotated[
165
+ Optional[InputCloudflareHecAuthenticationMethod],
166
+ PlainValidator(validate_open_enum(False)),
167
+ ],
168
+ pydantic.Field(alias="authType"),
169
+ ] = InputCloudflareHecAuthenticationMethod.SECRET
170
+ r"""Select Secret to use a text secret to authenticate"""
171
+
172
+ token_secret: Annotated[Optional[Any], pydantic.Field(alias="tokenSecret")] = None
173
+
174
+ token: Optional[Any] = None
175
+
176
+ enabled: Optional[bool] = True
177
+
178
+ description: Optional[str] = None
179
+
180
+ allowed_indexes_at_token: Annotated[
181
+ Optional[List[str]], pydantic.Field(alias="allowedIndexesAtToken")
182
+ ] = None
183
+ r"""Enter the values you want to allow in the HEC event index field at the token level. Supports wildcards. To skip validation, leave blank."""
184
+
185
+ metadata: Optional[List[InputCloudflareHecAuthTokenMetadatum]] = None
186
+ r"""Fields to add to events referencing this token"""
187
+
188
+ @field_serializer("auth_type")
189
+ def serialize_auth_type(self, value):
190
+ if isinstance(value, str):
191
+ try:
192
+ return models.InputCloudflareHecAuthenticationMethod(value)
193
+ except ValueError:
194
+ return value
195
+ return value
196
+
197
+
198
+ class InputCloudflareHecMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
199
+ TL_SV1 = "TLSv1"
200
+ TL_SV1_1 = "TLSv1.1"
201
+ TL_SV1_2 = "TLSv1.2"
202
+ TL_SV1_3 = "TLSv1.3"
203
+
204
+
205
+ class InputCloudflareHecMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
206
+ TL_SV1 = "TLSv1"
207
+ TL_SV1_1 = "TLSv1.1"
208
+ TL_SV1_2 = "TLSv1.2"
209
+ TL_SV1_3 = "TLSv1.3"
210
+
211
+
212
+ class InputCloudflareHecTLSSettingsServerSideTypedDict(TypedDict):
213
+ disabled: NotRequired[bool]
214
+ request_cert: NotRequired[bool]
215
+ r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
216
+ reject_unauthorized: NotRequired[bool]
217
+ r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's)"""
218
+ common_name_regex: NotRequired[str]
219
+ r"""Regex matching allowable common names in peer certificates' subject attribute"""
220
+ certificate_name: NotRequired[str]
221
+ r"""The name of the predefined certificate"""
222
+ priv_key_path: NotRequired[str]
223
+ r"""Path on server containing the private key to use. PEM format. Can reference $ENV_VARS."""
224
+ passphrase: NotRequired[str]
225
+ r"""Passphrase to use to decrypt private key"""
226
+ cert_path: NotRequired[str]
227
+ r"""Path on server containing certificates to use. PEM format. Can reference $ENV_VARS."""
228
+ ca_path: NotRequired[str]
229
+ r"""Path on server containing CA certificates to use. PEM format. Can reference $ENV_VARS."""
230
+ min_version: NotRequired[InputCloudflareHecMinimumTLSVersion]
231
+ max_version: NotRequired[InputCloudflareHecMaximumTLSVersion]
232
+
233
+
234
+ class InputCloudflareHecTLSSettingsServerSide(BaseModel):
235
+ disabled: Optional[bool] = True
236
+
237
+ request_cert: Annotated[Optional[bool], pydantic.Field(alias="requestCert")] = False
238
+ r"""Require clients to present their certificates. Used to perform client authentication using SSL certs."""
239
+
240
+ reject_unauthorized: Annotated[
241
+ Optional[bool], pydantic.Field(alias="rejectUnauthorized")
242
+ ] = True
243
+ r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's)"""
244
+
245
+ common_name_regex: Annotated[
246
+ Optional[str], pydantic.Field(alias="commonNameRegex")
247
+ ] = "/.*/"
248
+ r"""Regex matching allowable common names in peer certificates' subject attribute"""
249
+
250
+ certificate_name: Annotated[
251
+ Optional[str], pydantic.Field(alias="certificateName")
252
+ ] = None
253
+ r"""The name of the predefined certificate"""
254
+
255
+ priv_key_path: Annotated[Optional[str], pydantic.Field(alias="privKeyPath")] = None
256
+ r"""Path on server containing the private key to use. PEM format. Can reference $ENV_VARS."""
257
+
258
+ passphrase: Optional[str] = None
259
+ r"""Passphrase to use to decrypt private key"""
260
+
261
+ cert_path: Annotated[Optional[str], pydantic.Field(alias="certPath")] = None
262
+ r"""Path on server containing certificates to use. PEM format. Can reference $ENV_VARS."""
263
+
264
+ ca_path: Annotated[Optional[str], pydantic.Field(alias="caPath")] = None
265
+ r"""Path on server containing CA certificates to use. PEM format. Can reference $ENV_VARS."""
266
+
267
+ min_version: Annotated[
268
+ Annotated[
269
+ Optional[InputCloudflareHecMinimumTLSVersion],
270
+ PlainValidator(validate_open_enum(False)),
271
+ ],
272
+ pydantic.Field(alias="minVersion"),
273
+ ] = None
274
+
275
+ max_version: Annotated[
276
+ Annotated[
277
+ Optional[InputCloudflareHecMaximumTLSVersion],
278
+ PlainValidator(validate_open_enum(False)),
279
+ ],
280
+ pydantic.Field(alias="maxVersion"),
281
+ ] = None
282
+
283
+ @field_serializer("min_version")
284
+ def serialize_min_version(self, value):
285
+ if isinstance(value, str):
286
+ try:
287
+ return models.InputCloudflareHecMinimumTLSVersion(value)
288
+ except ValueError:
289
+ return value
290
+ return value
291
+
292
+ @field_serializer("max_version")
293
+ def serialize_max_version(self, value):
294
+ if isinstance(value, str):
295
+ try:
296
+ return models.InputCloudflareHecMaximumTLSVersion(value)
297
+ except ValueError:
298
+ return value
299
+ return value
300
+
301
+
302
+ class InputCloudflareHecMetadatumTypedDict(TypedDict):
303
+ name: str
304
+ value: str
305
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
306
+
307
+
308
+ class InputCloudflareHecMetadatum(BaseModel):
309
+ name: str
310
+
311
+ value: str
312
+ r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
313
+
314
+
315
+ class InputCloudflareHecTypedDict(TypedDict):
316
+ type: InputCloudflareHecType
317
+ port: float
318
+ r"""Port to listen on"""
319
+ hec_api: str
320
+ r"""Absolute path on which to listen for the Cloudflare HTTP Event Collector API requests. This input supports the /event endpoint."""
321
+ id: NotRequired[str]
322
+ r"""Unique ID for this input"""
323
+ disabled: NotRequired[bool]
324
+ pipeline: NotRequired[str]
325
+ r"""Pipeline to process data from this Source before sending it through the Routes"""
326
+ send_to_routes: NotRequired[bool]
327
+ r"""Select whether to send data to Routes, or directly to Destinations."""
328
+ environment: NotRequired[str]
329
+ r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
330
+ pq_enabled: NotRequired[bool]
331
+ r"""Use a disk queue to minimize data loss when connected services block. See [Cribl Docs](https://docs.cribl.io/stream/persistent-queues) for PQ defaults (Cribl-managed Cloud Workers) and configuration options (on-prem and hybrid Workers)."""
332
+ streamtags: NotRequired[List[str]]
333
+ r"""Tags for filtering and grouping in @{product}"""
334
+ connections: NotRequired[List[InputCloudflareHecConnectionTypedDict]]
335
+ r"""Direct connections to Destinations, and optionally via a Pipeline or a Pack"""
336
+ pq: NotRequired[InputCloudflareHecPqTypedDict]
337
+ host: NotRequired[str]
338
+ r"""Address to bind on. Defaults to 0.0.0.0 (all addresses)."""
339
+ auth_tokens: NotRequired[List[InputCloudflareHecAuthTokenTypedDict]]
340
+ r"""Shared secrets to be provided by any client (Authorization: <token>). If empty, unauthorized access is permitted."""
341
+ tls: NotRequired[InputCloudflareHecTLSSettingsServerSideTypedDict]
342
+ max_active_req: NotRequired[float]
343
+ r"""Maximum number of active requests allowed per Worker Process. Set to 0 for unlimited. Caution: Increasing the limit above the default value, or setting it to unlimited, may degrade performance and reduce throughput."""
344
+ max_requests_per_socket: NotRequired[int]
345
+ r"""Maximum number of requests per socket before @{product} instructs the client to close the connection. Default is 0 (unlimited)."""
346
+ enable_proxy_header: NotRequired[bool]
347
+ r"""Extract the client IP and port from PROXY protocol v1/v2. When enabled, the X-Forwarded-For header is ignored. Disable to use the X-Forwarded-For header for client IP extraction."""
348
+ capture_headers: NotRequired[bool]
349
+ r"""Add request headers to events, in the __headers field"""
350
+ activity_log_sample_rate: NotRequired[float]
351
+ r"""How often request activity is logged at the `info` level. A value of 1 would log every request, 10 every 10th request, etc."""
352
+ request_timeout: NotRequired[float]
353
+ r"""How long to wait for an incoming request to complete before aborting it. Use 0 to disable."""
354
+ socket_timeout: NotRequired[float]
355
+ r"""How long @{product} should wait before assuming that an inactive socket has timed out. To wait forever, set to 0."""
356
+ keep_alive_timeout: NotRequired[float]
357
+ r"""After the last response is sent, @{product} will wait this long for additional data before closing the socket connection. Minimum 1 second, maximum 600 seconds (10 minutes)."""
358
+ enable_health_check: NotRequired[Any]
359
+ ip_allowlist_regex: NotRequired[str]
360
+ r"""Messages from matched IP addresses will be processed, unless also matched by the denylist"""
361
+ ip_denylist_regex: NotRequired[str]
362
+ r"""Messages from matched IP addresses will be ignored. This takes precedence over the allowlist."""
363
+ metadata: NotRequired[List[InputCloudflareHecMetadatumTypedDict]]
364
+ r"""Fields to add to every event. May be overridden by fields added at the token or request level."""
365
+ allowed_indexes: NotRequired[List[str]]
366
+ r"""List values allowed in HEC event index field. Leave blank to skip validation. Supports wildcards. The values here can expand index validation at the token level."""
367
+ breaker_rulesets: NotRequired[List[str]]
368
+ r"""A list of event-breaking rulesets that will be applied, in order, to the input data stream"""
369
+ stale_channel_flush_ms: NotRequired[float]
370
+ 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"""
371
+ access_control_allow_origin: NotRequired[List[str]]
372
+ r"""HTTP origins to which @{product} should send CORS (cross-origin resource sharing) Access-Control-Allow-* headers. Supports wildcards."""
373
+ access_control_allow_headers: NotRequired[List[str]]
374
+ r"""HTTP headers that @{product} will send to allowed origins as \"Access-Control-Allow-Headers\" in a CORS preflight response. Use \"*\" to allow all headers."""
375
+ emit_token_metrics: NotRequired[bool]
376
+ r"""Emit per-token (<prefix>.http.perToken) and summary (<prefix>.http.summary) request metrics"""
377
+ description: NotRequired[str]
378
+
379
+
380
+ class InputCloudflareHec(BaseModel):
381
+ type: InputCloudflareHecType
382
+
383
+ port: float
384
+ r"""Port to listen on"""
385
+
386
+ hec_api: Annotated[str, pydantic.Field(alias="hecAPI")]
387
+ r"""Absolute path on which to listen for the Cloudflare HTTP Event Collector API requests. This input supports the /event endpoint."""
388
+
389
+ id: Optional[str] = None
390
+ r"""Unique ID for this input"""
391
+
392
+ disabled: Optional[bool] = False
393
+
394
+ pipeline: Optional[str] = None
395
+ r"""Pipeline to process data from this Source before sending it through the Routes"""
396
+
397
+ send_to_routes: Annotated[Optional[bool], pydantic.Field(alias="sendToRoutes")] = (
398
+ True
399
+ )
400
+ r"""Select whether to send data to Routes, or directly to Destinations."""
401
+
402
+ environment: Optional[str] = None
403
+ r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
404
+
405
+ pq_enabled: Annotated[Optional[bool], pydantic.Field(alias="pqEnabled")] = False
406
+ r"""Use a disk queue to minimize data loss when connected services block. See [Cribl Docs](https://docs.cribl.io/stream/persistent-queues) for PQ defaults (Cribl-managed Cloud Workers) and configuration options (on-prem and hybrid Workers)."""
407
+
408
+ streamtags: Optional[List[str]] = None
409
+ r"""Tags for filtering and grouping in @{product}"""
410
+
411
+ connections: Optional[List[InputCloudflareHecConnection]] = None
412
+ r"""Direct connections to Destinations, and optionally via a Pipeline or a Pack"""
413
+
414
+ pq: Optional[InputCloudflareHecPq] = None
415
+
416
+ host: Optional[str] = "0.0.0.0"
417
+ r"""Address to bind on. Defaults to 0.0.0.0 (all addresses)."""
418
+
419
+ auth_tokens: Annotated[
420
+ Optional[List[InputCloudflareHecAuthToken]], pydantic.Field(alias="authTokens")
421
+ ] = None
422
+ r"""Shared secrets to be provided by any client (Authorization: <token>). If empty, unauthorized access is permitted."""
423
+
424
+ tls: Optional[InputCloudflareHecTLSSettingsServerSide] = None
425
+
426
+ max_active_req: Annotated[Optional[float], pydantic.Field(alias="maxActiveReq")] = (
427
+ 256
428
+ )
429
+ r"""Maximum number of active requests allowed per Worker Process. Set to 0 for unlimited. Caution: Increasing the limit above the default value, or setting it to unlimited, may degrade performance and reduce throughput."""
430
+
431
+ max_requests_per_socket: Annotated[
432
+ Optional[int], pydantic.Field(alias="maxRequestsPerSocket")
433
+ ] = 0
434
+ r"""Maximum number of requests per socket before @{product} instructs the client to close the connection. Default is 0 (unlimited)."""
435
+
436
+ enable_proxy_header: Annotated[
437
+ Optional[bool], pydantic.Field(alias="enableProxyHeader")
438
+ ] = False
439
+ r"""Extract the client IP and port from PROXY protocol v1/v2. When enabled, the X-Forwarded-For header is ignored. Disable to use the X-Forwarded-For header for client IP extraction."""
440
+
441
+ capture_headers: Annotated[
442
+ Optional[bool], pydantic.Field(alias="captureHeaders")
443
+ ] = False
444
+ r"""Add request headers to events, in the __headers field"""
445
+
446
+ activity_log_sample_rate: Annotated[
447
+ Optional[float], pydantic.Field(alias="activityLogSampleRate")
448
+ ] = 100
449
+ r"""How often request activity is logged at the `info` level. A value of 1 would log every request, 10 every 10th request, etc."""
450
+
451
+ request_timeout: Annotated[
452
+ Optional[float], pydantic.Field(alias="requestTimeout")
453
+ ] = 0
454
+ r"""How long to wait for an incoming request to complete before aborting it. Use 0 to disable."""
455
+
456
+ socket_timeout: Annotated[
457
+ Optional[float], pydantic.Field(alias="socketTimeout")
458
+ ] = 0
459
+ r"""How long @{product} should wait before assuming that an inactive socket has timed out. To wait forever, set to 0."""
460
+
461
+ keep_alive_timeout: Annotated[
462
+ Optional[float], pydantic.Field(alias="keepAliveTimeout")
463
+ ] = 5
464
+ r"""After the last response is sent, @{product} will wait this long for additional data before closing the socket connection. Minimum 1 second, maximum 600 seconds (10 minutes)."""
465
+
466
+ enable_health_check: Annotated[
467
+ Optional[Any], pydantic.Field(alias="enableHealthCheck")
468
+ ] = None
469
+
470
+ ip_allowlist_regex: Annotated[
471
+ Optional[str], pydantic.Field(alias="ipAllowlistRegex")
472
+ ] = "/.*/"
473
+ r"""Messages from matched IP addresses will be processed, unless also matched by the denylist"""
474
+
475
+ ip_denylist_regex: Annotated[
476
+ Optional[str], pydantic.Field(alias="ipDenylistRegex")
477
+ ] = "/^$/"
478
+ r"""Messages from matched IP addresses will be ignored. This takes precedence over the allowlist."""
479
+
480
+ metadata: Optional[List[InputCloudflareHecMetadatum]] = None
481
+ r"""Fields to add to every event. May be overridden by fields added at the token or request level."""
482
+
483
+ allowed_indexes: Annotated[
484
+ Optional[List[str]], pydantic.Field(alias="allowedIndexes")
485
+ ] = None
486
+ r"""List values allowed in HEC event index field. Leave blank to skip validation. Supports wildcards. The values here can expand index validation at the token level."""
487
+
488
+ breaker_rulesets: Annotated[
489
+ Optional[List[str]], pydantic.Field(alias="breakerRulesets")
490
+ ] = None
491
+ r"""A list of event-breaking rulesets that will be applied, in order, to the input data stream"""
492
+
493
+ stale_channel_flush_ms: Annotated[
494
+ Optional[float], pydantic.Field(alias="staleChannelFlushMs")
495
+ ] = 10000
496
+ 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"""
497
+
498
+ access_control_allow_origin: Annotated[
499
+ Optional[List[str]], pydantic.Field(alias="accessControlAllowOrigin")
500
+ ] = None
501
+ r"""HTTP origins to which @{product} should send CORS (cross-origin resource sharing) Access-Control-Allow-* headers. Supports wildcards."""
502
+
503
+ access_control_allow_headers: Annotated[
504
+ Optional[List[str]], pydantic.Field(alias="accessControlAllowHeaders")
505
+ ] = None
506
+ r"""HTTP headers that @{product} will send to allowed origins as \"Access-Control-Allow-Headers\" in a CORS preflight response. Use \"*\" to allow all headers."""
507
+
508
+ emit_token_metrics: Annotated[
509
+ Optional[bool], pydantic.Field(alias="emitTokenMetrics")
510
+ ] = False
511
+ r"""Emit per-token (<prefix>.http.perToken) and summary (<prefix>.http.summary) request metrics"""
512
+
513
+ description: Optional[str] = None
@@ -1,9 +1,13 @@
1
1
  """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
2
 
3
3
  from __future__ import annotations
4
+ from cribl_control_plane import models, utils
4
5
  from cribl_control_plane.types import BaseModel
6
+ from cribl_control_plane.utils import validate_open_enum
5
7
  from enum import Enum
6
8
  import pydantic
9
+ from pydantic import field_serializer
10
+ from pydantic.functional_validators import PlainValidator
7
11
  from typing import List, Optional
8
12
  from typing_extensions import Annotated, NotRequired, TypedDict
9
13
 
@@ -23,20 +27,32 @@ class InputCollectionConnection(BaseModel):
23
27
  pipeline: Optional[str] = None
24
28
 
25
29
 
26
- class InputCollectionMode(str, Enum):
30
+ class InputCollectionMode(str, Enum, metaclass=utils.OpenEnumMeta):
27
31
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
28
32
 
33
+ # Smart
29
34
  SMART = "smart"
35
+ # Always On
30
36
  ALWAYS = "always"
31
37
 
32
38
 
33
- class InputCollectionCompression(str, Enum):
39
+ class InputCollectionCompression(str, Enum, metaclass=utils.OpenEnumMeta):
34
40
  r"""Codec to use to compress the persisted data"""
35
41
 
42
+ # None
36
43
  NONE = "none"
44
+ # Gzip
37
45
  GZIP = "gzip"
38
46
 
39
47
 
48
+ class InputCollectionPqControlsTypedDict(TypedDict):
49
+ pass
50
+
51
+
52
+ class InputCollectionPqControls(BaseModel):
53
+ pass
54
+
55
+
40
56
  class InputCollectionPqTypedDict(TypedDict):
41
57
  mode: NotRequired[InputCollectionMode]
42
58
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
@@ -52,10 +68,13 @@ class InputCollectionPqTypedDict(TypedDict):
52
68
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
53
69
  compress: NotRequired[InputCollectionCompression]
54
70
  r"""Codec to use to compress the persisted data"""
71
+ pq_controls: NotRequired[InputCollectionPqControlsTypedDict]
55
72
 
56
73
 
57
74
  class InputCollectionPq(BaseModel):
58
- mode: Optional[InputCollectionMode] = InputCollectionMode.ALWAYS
75
+ mode: Annotated[
76
+ Optional[InputCollectionMode], PlainValidator(validate_open_enum(False))
77
+ ] = InputCollectionMode.ALWAYS
59
78
  r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
60
79
 
61
80
  max_buffer_size: Annotated[
@@ -79,9 +98,33 @@ class InputCollectionPq(BaseModel):
79
98
  path: Optional[str] = "$CRIBL_HOME/state/queues"
80
99
  r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
81
100
 
82
- compress: Optional[InputCollectionCompression] = InputCollectionCompression.NONE
101
+ compress: Annotated[
102
+ Optional[InputCollectionCompression], PlainValidator(validate_open_enum(False))
103
+ ] = InputCollectionCompression.NONE
83
104
  r"""Codec to use to compress the persisted data"""
84
105
 
106
+ pq_controls: Annotated[
107
+ Optional[InputCollectionPqControls], pydantic.Field(alias="pqControls")
108
+ ] = None
109
+
110
+ @field_serializer("mode")
111
+ def serialize_mode(self, value):
112
+ if isinstance(value, str):
113
+ try:
114
+ return models.InputCollectionMode(value)
115
+ except ValueError:
116
+ return value
117
+ return value
118
+
119
+ @field_serializer("compress")
120
+ def serialize_compress(self, value):
121
+ if isinstance(value, str):
122
+ try:
123
+ return models.InputCollectionCompression(value)
124
+ except ValueError:
125
+ return value
126
+ return value
127
+
85
128
 
86
129
  class InputCollectionPreprocessTypedDict(TypedDict):
87
130
  disabled: NotRequired[bool]