cribl-control-plane 0.0.50rc2__py3-none-any.whl → 0.0.52__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.
- cribl_control_plane/_hooks/clientcredentials.py +91 -41
- cribl_control_plane/_version.py +6 -4
- cribl_control_plane/errors/apierror.py +1 -1
- cribl_control_plane/errors/criblcontrolplaneerror.py +1 -1
- cribl_control_plane/errors/error.py +1 -1
- cribl_control_plane/errors/healthstatus_error.py +3 -9
- cribl_control_plane/errors/no_response_error.py +1 -1
- cribl_control_plane/errors/responsevalidationerror.py +1 -1
- cribl_control_plane/groups_sdk.py +4 -4
- cribl_control_plane/health.py +2 -6
- cribl_control_plane/models/__init__.py +31 -56
- cribl_control_plane/models/appmode.py +13 -0
- cribl_control_plane/models/cacheconnection.py +2 -10
- cribl_control_plane/models/cacheconnectionbackfillstatus.py +1 -2
- cribl_control_plane/models/cloudprovider.py +1 -2
- cribl_control_plane/models/configgroup.py +4 -24
- cribl_control_plane/models/configgroupcloud.py +2 -6
- cribl_control_plane/models/createconfiggroupbyproductop.py +2 -8
- cribl_control_plane/models/createinputhectokenbyidop.py +5 -6
- cribl_control_plane/models/createversionpushop.py +5 -5
- cribl_control_plane/models/cribllakedataset.py +2 -8
- cribl_control_plane/models/datasetmetadata.py +2 -8
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +2 -7
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +2 -4
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +2 -4
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +1 -3
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +2 -7
- cribl_control_plane/models/getsummaryop.py +2 -7
- cribl_control_plane/models/getversionshowop.py +5 -6
- cribl_control_plane/models/gitinfo.py +3 -14
- cribl_control_plane/models/hbcriblinfo.py +3 -24
- cribl_control_plane/models/healthstatus.py +4 -7
- cribl_control_plane/models/heartbeatmetadata.py +0 -3
- cribl_control_plane/models/input.py +63 -65
- cribl_control_plane/models/inputappscope.py +14 -34
- cribl_control_plane/models/inputazureblob.py +6 -17
- cribl_control_plane/models/inputcollection.py +4 -11
- cribl_control_plane/models/inputconfluentcloud.py +32 -41
- cribl_control_plane/models/inputcribl.py +4 -11
- cribl_control_plane/models/inputcriblhttp.py +8 -23
- cribl_control_plane/models/inputcribllakehttp.py +10 -22
- cribl_control_plane/models/inputcriblmetrics.py +4 -12
- cribl_control_plane/models/inputcribltcp.py +8 -23
- cribl_control_plane/models/inputcrowdstrike.py +10 -26
- cribl_control_plane/models/inputdatadogagent.py +8 -24
- cribl_control_plane/models/inputdatagen.py +4 -11
- cribl_control_plane/models/inputedgeprometheus.py +24 -58
- cribl_control_plane/models/inputelastic.py +14 -40
- cribl_control_plane/models/inputeventhub.py +6 -15
- cribl_control_plane/models/inputexec.py +6 -14
- cribl_control_plane/models/inputfile.py +6 -15
- cribl_control_plane/models/inputfirehose.py +8 -23
- cribl_control_plane/models/inputgooglepubsub.py +6 -19
- cribl_control_plane/models/inputgrafana.py +24 -67
- cribl_control_plane/models/inputhttp.py +8 -23
- cribl_control_plane/models/inputhttpraw.py +8 -23
- cribl_control_plane/models/inputjournalfiles.py +4 -12
- cribl_control_plane/models/inputkafka.py +28 -41
- cribl_control_plane/models/inputkinesis.py +14 -38
- cribl_control_plane/models/inputkubeevents.py +4 -11
- cribl_control_plane/models/inputkubelogs.py +8 -16
- cribl_control_plane/models/inputkubemetrics.py +8 -16
- cribl_control_plane/models/inputloki.py +10 -29
- cribl_control_plane/models/inputmetrics.py +8 -23
- cribl_control_plane/models/inputmodeldriventelemetry.py +10 -32
- cribl_control_plane/models/inputmsk.py +30 -48
- cribl_control_plane/models/inputnetflow.py +4 -11
- cribl_control_plane/models/inputoffice365mgmt.py +14 -33
- cribl_control_plane/models/inputoffice365msgtrace.py +16 -35
- cribl_control_plane/models/inputoffice365service.py +16 -35
- cribl_control_plane/models/inputopentelemetry.py +16 -38
- cribl_control_plane/models/inputprometheus.py +18 -50
- cribl_control_plane/models/inputprometheusrw.py +10 -30
- cribl_control_plane/models/inputrawudp.py +4 -11
- cribl_control_plane/models/inputs3.py +8 -21
- cribl_control_plane/models/inputs3inventory.py +10 -26
- cribl_control_plane/models/inputsecuritylake.py +10 -27
- cribl_control_plane/models/inputsnmp.py +6 -16
- cribl_control_plane/models/inputsplunk.py +12 -33
- cribl_control_plane/models/inputsplunkhec.py +10 -29
- cribl_control_plane/models/inputsplunksearch.py +14 -33
- cribl_control_plane/models/inputsqs.py +10 -27
- cribl_control_plane/models/inputsyslog.py +16 -43
- cribl_control_plane/models/inputsystemmetrics.py +24 -48
- cribl_control_plane/models/inputsystemstate.py +8 -16
- cribl_control_plane/models/inputtcp.py +10 -29
- cribl_control_plane/models/inputtcpjson.py +10 -29
- cribl_control_plane/models/inputwef.py +14 -37
- cribl_control_plane/models/inputwindowsmetrics.py +24 -44
- cribl_control_plane/models/inputwineventlogs.py +10 -20
- cribl_control_plane/models/inputwiz.py +8 -21
- cribl_control_plane/models/inputwizwebhook.py +8 -23
- cribl_control_plane/models/inputzscalerhec.py +10 -29
- cribl_control_plane/models/lakehouseconnectiontype.py +1 -2
- cribl_control_plane/models/listconfiggroupbyproductop.py +1 -3
- cribl_control_plane/models/masterworkerentry.py +2 -7
- cribl_control_plane/models/nodeactiveupgradestatus.py +1 -2
- cribl_control_plane/models/nodefailedupgradestatus.py +1 -2
- cribl_control_plane/models/nodeprovidedinfo.py +0 -3
- cribl_control_plane/models/nodeskippedupgradestatus.py +1 -2
- cribl_control_plane/models/nodeupgradestate.py +1 -2
- cribl_control_plane/models/nodeupgradestatus.py +5 -13
- cribl_control_plane/models/output.py +79 -84
- cribl_control_plane/models/outputazureblob.py +18 -48
- cribl_control_plane/models/outputazuredataexplorer.py +28 -73
- cribl_control_plane/models/outputazureeventhub.py +18 -40
- cribl_control_plane/models/outputazurelogs.py +12 -35
- cribl_control_plane/models/outputclickhouse.py +20 -55
- cribl_control_plane/models/outputcloudwatch.py +10 -29
- cribl_control_plane/models/outputconfluentcloud.py +44 -71
- cribl_control_plane/models/outputcriblhttp.py +16 -44
- cribl_control_plane/models/outputcribllake.py +16 -46
- cribl_control_plane/models/outputcribltcp.py +18 -45
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +14 -49
- cribl_control_plane/models/outputdatadog.py +20 -48
- cribl_control_plane/models/outputdataset.py +18 -46
- cribl_control_plane/models/outputdiskspool.py +2 -7
- cribl_control_plane/models/outputdls3.py +24 -68
- cribl_control_plane/models/outputdynatracehttp.py +20 -53
- cribl_control_plane/models/outputdynatraceotlp.py +22 -55
- cribl_control_plane/models/outputelastic.py +18 -43
- cribl_control_plane/models/outputelasticcloud.py +12 -36
- cribl_control_plane/models/outputexabeam.py +10 -29
- cribl_control_plane/models/outputfilesystem.py +14 -39
- cribl_control_plane/models/outputgooglechronicle.py +16 -50
- cribl_control_plane/models/outputgooglecloudlogging.py +18 -50
- cribl_control_plane/models/outputgooglecloudstorage.py +24 -66
- cribl_control_plane/models/outputgooglepubsub.py +10 -31
- cribl_control_plane/models/outputgrafanacloud.py +32 -97
- cribl_control_plane/models/outputgraphite.py +14 -31
- cribl_control_plane/models/outputhoneycomb.py +12 -35
- cribl_control_plane/models/outputhumiohec.py +16 -43
- cribl_control_plane/models/outputinfluxdb.py +16 -42
- cribl_control_plane/models/outputkafka.py +40 -69
- cribl_control_plane/models/outputkinesis.py +16 -40
- cribl_control_plane/models/outputloki.py +16 -41
- cribl_control_plane/models/outputminio.py +24 -65
- cribl_control_plane/models/outputmsk.py +42 -77
- cribl_control_plane/models/outputnewrelic.py +18 -43
- cribl_control_plane/models/outputnewrelicevents.py +14 -41
- cribl_control_plane/models/outputopentelemetry.py +26 -67
- cribl_control_plane/models/outputprometheus.py +12 -35
- cribl_control_plane/models/outputring.py +8 -19
- cribl_control_plane/models/outputs3.py +26 -68
- cribl_control_plane/models/outputsecuritylake.py +18 -52
- cribl_control_plane/models/outputsentinel.py +18 -45
- cribl_control_plane/models/outputsentineloneaisiem.py +18 -50
- cribl_control_plane/models/outputservicenow.py +24 -60
- cribl_control_plane/models/outputsignalfx.py +14 -37
- cribl_control_plane/models/outputsns.py +14 -36
- cribl_control_plane/models/outputsplunk.py +24 -60
- cribl_control_plane/models/outputsplunkhec.py +12 -35
- cribl_control_plane/models/outputsplunklb.py +30 -77
- cribl_control_plane/models/outputsqs.py +16 -41
- cribl_control_plane/models/outputstatsd.py +14 -30
- cribl_control_plane/models/outputstatsdext.py +12 -29
- cribl_control_plane/models/outputsumologic.py +12 -35
- cribl_control_plane/models/outputsyslog.py +24 -58
- cribl_control_plane/models/outputtcpjson.py +20 -52
- cribl_control_plane/models/outputwavefront.py +12 -35
- cribl_control_plane/models/outputwebhook.py +22 -58
- cribl_control_plane/models/outputxsiam.py +14 -35
- cribl_control_plane/models/productscore.py +1 -2
- cribl_control_plane/models/rbacresource.py +1 -2
- cribl_control_plane/models/resourcepolicy.py +2 -4
- cribl_control_plane/models/routecloneconf.py +13 -0
- cribl_control_plane/models/routeconf.py +4 -3
- cribl_control_plane/models/runnablejobcollection.py +13 -30
- cribl_control_plane/models/runnablejobexecutor.py +4 -13
- cribl_control_plane/models/runnablejobscheduledsearch.py +2 -7
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +2 -8
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +2 -8
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +5 -6
- cribl_control_plane/models/workertypes.py +1 -2
- {cribl_control_plane-0.0.50rc2.dist-info → cribl_control_plane-0.0.52.dist-info}/METADATA +14 -12
- cribl_control_plane-0.0.52.dist-info/RECORD +325 -0
- cribl_control_plane/models/error.py +0 -16
- cribl_control_plane/models/gethealthinfoop.py +0 -17
- cribl_control_plane/models/gitshowresult.py +0 -19
- cribl_control_plane/models/outputdatabricks.py +0 -282
- cribl_control_plane-0.0.50rc2.dist-info/RECORD +0 -327
- {cribl_control_plane-0.0.50rc2.dist-info → cribl_control_plane-0.0.52.dist-info}/WHEEL +0 -0
|
@@ -1,12 +1,9 @@
|
|
|
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 utils
|
|
5
4
|
from cribl_control_plane.types import BaseModel
|
|
6
|
-
from cribl_control_plane.utils import validate_open_enum
|
|
7
5
|
from enum import Enum
|
|
8
6
|
import pydantic
|
|
9
|
-
from pydantic.functional_validators import PlainValidator
|
|
10
7
|
from typing import List, Optional
|
|
11
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
9
|
|
|
@@ -26,14 +23,14 @@ class InputWindowsMetricsConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputWindowsMetricsPqMode(str, Enum
|
|
26
|
+
class InputWindowsMetricsPqMode(str, Enum):
|
|
30
27
|
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."""
|
|
31
28
|
|
|
32
29
|
SMART = "smart"
|
|
33
30
|
ALWAYS = "always"
|
|
34
31
|
|
|
35
32
|
|
|
36
|
-
class InputWindowsMetricsCompression(str, Enum
|
|
33
|
+
class InputWindowsMetricsCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -67,9 +64,7 @@ class InputWindowsMetricsPqTypedDict(TypedDict):
|
|
|
67
64
|
|
|
68
65
|
|
|
69
66
|
class InputWindowsMetricsPq(BaseModel):
|
|
70
|
-
mode:
|
|
71
|
-
Optional[InputWindowsMetricsPqMode], PlainValidator(validate_open_enum(False))
|
|
72
|
-
] = InputWindowsMetricsPqMode.ALWAYS
|
|
67
|
+
mode: Optional[InputWindowsMetricsPqMode] = InputWindowsMetricsPqMode.ALWAYS
|
|
73
68
|
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."""
|
|
74
69
|
|
|
75
70
|
max_buffer_size: Annotated[
|
|
@@ -93,10 +88,9 @@ class InputWindowsMetricsPq(BaseModel):
|
|
|
93
88
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
94
89
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
95
90
|
|
|
96
|
-
compress:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
] = InputWindowsMetricsCompression.NONE
|
|
91
|
+
compress: Optional[InputWindowsMetricsCompression] = (
|
|
92
|
+
InputWindowsMetricsCompression.NONE
|
|
93
|
+
)
|
|
100
94
|
r"""Codec to use to compress the persisted data"""
|
|
101
95
|
|
|
102
96
|
pq_controls: Annotated[
|
|
@@ -104,7 +98,7 @@ class InputWindowsMetricsPq(BaseModel):
|
|
|
104
98
|
] = None
|
|
105
99
|
|
|
106
100
|
|
|
107
|
-
class InputWindowsMetricsHostMode(str, Enum
|
|
101
|
+
class InputWindowsMetricsHostMode(str, Enum):
|
|
108
102
|
r"""Select level of detail for host metrics"""
|
|
109
103
|
|
|
110
104
|
BASIC = "basic"
|
|
@@ -113,7 +107,7 @@ class InputWindowsMetricsHostMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
|
113
107
|
DISABLED = "disabled"
|
|
114
108
|
|
|
115
109
|
|
|
116
|
-
class InputWindowsMetricsSystemMode(str, Enum
|
|
110
|
+
class InputWindowsMetricsSystemMode(str, Enum):
|
|
117
111
|
r"""Select the level of details for system metrics"""
|
|
118
112
|
|
|
119
113
|
BASIC = "basic"
|
|
@@ -130,17 +124,14 @@ class InputWindowsMetricsSystemTypedDict(TypedDict):
|
|
|
130
124
|
|
|
131
125
|
|
|
132
126
|
class InputWindowsMetricsSystem(BaseModel):
|
|
133
|
-
mode:
|
|
134
|
-
Optional[InputWindowsMetricsSystemMode],
|
|
135
|
-
PlainValidator(validate_open_enum(False)),
|
|
136
|
-
] = InputWindowsMetricsSystemMode.BASIC
|
|
127
|
+
mode: Optional[InputWindowsMetricsSystemMode] = InputWindowsMetricsSystemMode.BASIC
|
|
137
128
|
r"""Select the level of details for system metrics"""
|
|
138
129
|
|
|
139
130
|
detail: Optional[bool] = False
|
|
140
131
|
r"""Generate metrics for all system information"""
|
|
141
132
|
|
|
142
133
|
|
|
143
|
-
class InputWindowsMetricsCPUMode(str, Enum
|
|
134
|
+
class InputWindowsMetricsCPUMode(str, Enum):
|
|
144
135
|
r"""Select the level of details for CPU metrics"""
|
|
145
136
|
|
|
146
137
|
BASIC = "basic"
|
|
@@ -161,9 +152,7 @@ class InputWindowsMetricsCPUTypedDict(TypedDict):
|
|
|
161
152
|
|
|
162
153
|
|
|
163
154
|
class InputWindowsMetricsCPU(BaseModel):
|
|
164
|
-
mode:
|
|
165
|
-
Optional[InputWindowsMetricsCPUMode], PlainValidator(validate_open_enum(False))
|
|
166
|
-
] = InputWindowsMetricsCPUMode.BASIC
|
|
155
|
+
mode: Optional[InputWindowsMetricsCPUMode] = InputWindowsMetricsCPUMode.BASIC
|
|
167
156
|
r"""Select the level of details for CPU metrics"""
|
|
168
157
|
|
|
169
158
|
per_cpu: Annotated[Optional[bool], pydantic.Field(alias="perCpu")] = False
|
|
@@ -176,7 +165,7 @@ class InputWindowsMetricsCPU(BaseModel):
|
|
|
176
165
|
r"""Generate raw, monotonic CPU time counters"""
|
|
177
166
|
|
|
178
167
|
|
|
179
|
-
class InputWindowsMetricsMemoryMode(str, Enum
|
|
168
|
+
class InputWindowsMetricsMemoryMode(str, Enum):
|
|
180
169
|
r"""Select the level of details for memory metrics"""
|
|
181
170
|
|
|
182
171
|
BASIC = "basic"
|
|
@@ -193,17 +182,14 @@ class InputWindowsMetricsMemoryTypedDict(TypedDict):
|
|
|
193
182
|
|
|
194
183
|
|
|
195
184
|
class InputWindowsMetricsMemory(BaseModel):
|
|
196
|
-
mode:
|
|
197
|
-
Optional[InputWindowsMetricsMemoryMode],
|
|
198
|
-
PlainValidator(validate_open_enum(False)),
|
|
199
|
-
] = InputWindowsMetricsMemoryMode.BASIC
|
|
185
|
+
mode: Optional[InputWindowsMetricsMemoryMode] = InputWindowsMetricsMemoryMode.BASIC
|
|
200
186
|
r"""Select the level of details for memory metrics"""
|
|
201
187
|
|
|
202
188
|
detail: Optional[bool] = False
|
|
203
189
|
r"""Generate metrics for all memory states"""
|
|
204
190
|
|
|
205
191
|
|
|
206
|
-
class InputWindowsMetricsNetworkMode(str, Enum
|
|
192
|
+
class InputWindowsMetricsNetworkMode(str, Enum):
|
|
207
193
|
r"""Select the level of details for network metrics"""
|
|
208
194
|
|
|
209
195
|
BASIC = "basic"
|
|
@@ -224,10 +210,9 @@ class InputWindowsMetricsNetworkTypedDict(TypedDict):
|
|
|
224
210
|
|
|
225
211
|
|
|
226
212
|
class InputWindowsMetricsNetwork(BaseModel):
|
|
227
|
-
mode:
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
] = InputWindowsMetricsNetworkMode.BASIC
|
|
213
|
+
mode: Optional[InputWindowsMetricsNetworkMode] = (
|
|
214
|
+
InputWindowsMetricsNetworkMode.BASIC
|
|
215
|
+
)
|
|
231
216
|
r"""Select the level of details for network metrics"""
|
|
232
217
|
|
|
233
218
|
devices: Optional[List[str]] = None
|
|
@@ -242,7 +227,7 @@ class InputWindowsMetricsNetwork(BaseModel):
|
|
|
242
227
|
r"""Generate full network metrics"""
|
|
243
228
|
|
|
244
229
|
|
|
245
|
-
class InputWindowsMetricsDiskMode(str, Enum
|
|
230
|
+
class InputWindowsMetricsDiskMode(str, Enum):
|
|
246
231
|
r"""Select the level of details for disk metrics"""
|
|
247
232
|
|
|
248
233
|
BASIC = "basic"
|
|
@@ -261,9 +246,7 @@ class InputWindowsMetricsDiskTypedDict(TypedDict):
|
|
|
261
246
|
|
|
262
247
|
|
|
263
248
|
class InputWindowsMetricsDisk(BaseModel):
|
|
264
|
-
mode:
|
|
265
|
-
Optional[InputWindowsMetricsDiskMode], PlainValidator(validate_open_enum(False))
|
|
266
|
-
] = InputWindowsMetricsDiskMode.BASIC
|
|
249
|
+
mode: Optional[InputWindowsMetricsDiskMode] = InputWindowsMetricsDiskMode.BASIC
|
|
267
250
|
r"""Select the level of details for disk metrics"""
|
|
268
251
|
|
|
269
252
|
volumes: Optional[List[str]] = None
|
|
@@ -300,9 +283,7 @@ class InputWindowsMetricsHostTypedDict(TypedDict):
|
|
|
300
283
|
|
|
301
284
|
|
|
302
285
|
class InputWindowsMetricsHost(BaseModel):
|
|
303
|
-
mode:
|
|
304
|
-
Optional[InputWindowsMetricsHostMode], PlainValidator(validate_open_enum(False))
|
|
305
|
-
] = InputWindowsMetricsHostMode.BASIC
|
|
286
|
+
mode: Optional[InputWindowsMetricsHostMode] = InputWindowsMetricsHostMode.BASIC
|
|
306
287
|
r"""Select level of detail for host metrics"""
|
|
307
288
|
|
|
308
289
|
custom: Optional[InputWindowsMetricsCustom] = None
|
|
@@ -347,7 +328,7 @@ class InputWindowsMetricsMetadatum(BaseModel):
|
|
|
347
328
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
348
329
|
|
|
349
330
|
|
|
350
|
-
class InputWindowsMetricsDataCompressionFormat(str, Enum
|
|
331
|
+
class InputWindowsMetricsDataCompressionFormat(str, Enum):
|
|
351
332
|
NONE = "none"
|
|
352
333
|
GZIP = "gzip"
|
|
353
334
|
|
|
@@ -379,10 +360,9 @@ class InputWindowsMetricsPersistence(BaseModel):
|
|
|
379
360
|
max_data_time: Annotated[Optional[str], pydantic.Field(alias="maxDataTime")] = "24h"
|
|
380
361
|
r"""Maximum amount of time to retain data (examples: 2h, 4d). When limit is reached, older data will be deleted."""
|
|
381
362
|
|
|
382
|
-
compress:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
] = InputWindowsMetricsDataCompressionFormat.GZIP
|
|
363
|
+
compress: Optional[InputWindowsMetricsDataCompressionFormat] = (
|
|
364
|
+
InputWindowsMetricsDataCompressionFormat.GZIP
|
|
365
|
+
)
|
|
386
366
|
|
|
387
367
|
dest_path: Annotated[Optional[str], pydantic.Field(alias="destPath")] = (
|
|
388
368
|
"$CRIBL_HOME/state/windows_metrics"
|
|
@@ -1,12 +1,9 @@
|
|
|
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 utils
|
|
5
4
|
from cribl_control_plane.types import BaseModel
|
|
6
|
-
from cribl_control_plane.utils import validate_open_enum
|
|
7
5
|
from enum import Enum
|
|
8
6
|
import pydantic
|
|
9
|
-
from pydantic.functional_validators import PlainValidator
|
|
10
7
|
from typing import List, Optional
|
|
11
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
9
|
|
|
@@ -26,14 +23,14 @@ class InputWinEventLogsConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputWinEventLogsMode(str, Enum
|
|
26
|
+
class InputWinEventLogsMode(str, Enum):
|
|
30
27
|
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."""
|
|
31
28
|
|
|
32
29
|
SMART = "smart"
|
|
33
30
|
ALWAYS = "always"
|
|
34
31
|
|
|
35
32
|
|
|
36
|
-
class InputWinEventLogsCompression(str, Enum
|
|
33
|
+
class InputWinEventLogsCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -67,9 +64,7 @@ class InputWinEventLogsPqTypedDict(TypedDict):
|
|
|
67
64
|
|
|
68
65
|
|
|
69
66
|
class InputWinEventLogsPq(BaseModel):
|
|
70
|
-
mode:
|
|
71
|
-
Optional[InputWinEventLogsMode], PlainValidator(validate_open_enum(False))
|
|
72
|
-
] = InputWinEventLogsMode.ALWAYS
|
|
67
|
+
mode: Optional[InputWinEventLogsMode] = InputWinEventLogsMode.ALWAYS
|
|
73
68
|
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."""
|
|
74
69
|
|
|
75
70
|
max_buffer_size: Annotated[
|
|
@@ -93,10 +88,7 @@ class InputWinEventLogsPq(BaseModel):
|
|
|
93
88
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
94
89
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
95
90
|
|
|
96
|
-
compress:
|
|
97
|
-
Optional[InputWinEventLogsCompression],
|
|
98
|
-
PlainValidator(validate_open_enum(False)),
|
|
99
|
-
] = InputWinEventLogsCompression.NONE
|
|
91
|
+
compress: Optional[InputWinEventLogsCompression] = InputWinEventLogsCompression.NONE
|
|
100
92
|
r"""Codec to use to compress the persisted data"""
|
|
101
93
|
|
|
102
94
|
pq_controls: Annotated[
|
|
@@ -104,14 +96,14 @@ class InputWinEventLogsPq(BaseModel):
|
|
|
104
96
|
] = None
|
|
105
97
|
|
|
106
98
|
|
|
107
|
-
class ReadMode(str, Enum
|
|
99
|
+
class ReadMode(str, Enum):
|
|
108
100
|
r"""Read all stored and future event logs, or only future events"""
|
|
109
101
|
|
|
110
102
|
OLDEST = "oldest"
|
|
111
103
|
NEWEST = "newest"
|
|
112
104
|
|
|
113
105
|
|
|
114
|
-
class EventFormat(str, Enum
|
|
106
|
+
class EventFormat(str, Enum):
|
|
115
107
|
r"""Format of individual events"""
|
|
116
108
|
|
|
117
109
|
JSON = "json"
|
|
@@ -201,15 +193,13 @@ class InputWinEventLogs(BaseModel):
|
|
|
201
193
|
|
|
202
194
|
pq: Optional[InputWinEventLogsPq] = None
|
|
203
195
|
|
|
204
|
-
read_mode: Annotated[
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
] = ReadMode.NEWEST
|
|
196
|
+
read_mode: Annotated[Optional[ReadMode], pydantic.Field(alias="readMode")] = (
|
|
197
|
+
ReadMode.NEWEST
|
|
198
|
+
)
|
|
208
199
|
r"""Read all stored and future event logs, or only future events"""
|
|
209
200
|
|
|
210
201
|
event_format: Annotated[
|
|
211
|
-
|
|
212
|
-
pydantic.Field(alias="eventFormat"),
|
|
202
|
+
Optional[EventFormat], pydantic.Field(alias="eventFormat")
|
|
213
203
|
] = EventFormat.JSON
|
|
214
204
|
r"""Format of individual events"""
|
|
215
205
|
|
|
@@ -1,12 +1,9 @@
|
|
|
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 utils
|
|
5
4
|
from cribl_control_plane.types import BaseModel
|
|
6
|
-
from cribl_control_plane.utils import validate_open_enum
|
|
7
5
|
from enum import Enum
|
|
8
6
|
import pydantic
|
|
9
|
-
from pydantic.functional_validators import PlainValidator
|
|
10
7
|
from typing import List, Optional
|
|
11
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
9
|
|
|
@@ -26,14 +23,14 @@ class InputWizConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputWizMode(str, Enum
|
|
26
|
+
class InputWizMode(str, Enum):
|
|
30
27
|
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."""
|
|
31
28
|
|
|
32
29
|
SMART = "smart"
|
|
33
30
|
ALWAYS = "always"
|
|
34
31
|
|
|
35
32
|
|
|
36
|
-
class InputWizCompression(str, Enum
|
|
33
|
+
class InputWizCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -67,9 +64,7 @@ class InputWizPqTypedDict(TypedDict):
|
|
|
67
64
|
|
|
68
65
|
|
|
69
66
|
class InputWizPq(BaseModel):
|
|
70
|
-
mode:
|
|
71
|
-
Optional[InputWizMode], PlainValidator(validate_open_enum(False))
|
|
72
|
-
] = InputWizMode.ALWAYS
|
|
67
|
+
mode: Optional[InputWizMode] = InputWizMode.ALWAYS
|
|
73
68
|
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."""
|
|
74
69
|
|
|
75
70
|
max_buffer_size: Annotated[
|
|
@@ -93,9 +88,7 @@ class InputWizPq(BaseModel):
|
|
|
93
88
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
94
89
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
95
90
|
|
|
96
|
-
compress:
|
|
97
|
-
Optional[InputWizCompression], PlainValidator(validate_open_enum(False))
|
|
98
|
-
] = InputWizCompression.NONE
|
|
91
|
+
compress: Optional[InputWizCompression] = InputWizCompression.NONE
|
|
99
92
|
r"""Codec to use to compress the persisted data"""
|
|
100
93
|
|
|
101
94
|
pq_controls: Annotated[
|
|
@@ -134,7 +127,7 @@ class InputWizMetadatum(BaseModel):
|
|
|
134
127
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
135
128
|
|
|
136
129
|
|
|
137
|
-
class InputWizRetryType(str, Enum
|
|
130
|
+
class InputWizRetryType(str, Enum):
|
|
138
131
|
r"""The algorithm to use when performing HTTP retries"""
|
|
139
132
|
|
|
140
133
|
NONE = "none"
|
|
@@ -162,9 +155,7 @@ class InputWizRetryRulesTypedDict(TypedDict):
|
|
|
162
155
|
|
|
163
156
|
|
|
164
157
|
class InputWizRetryRules(BaseModel):
|
|
165
|
-
type:
|
|
166
|
-
Optional[InputWizRetryType], PlainValidator(validate_open_enum(False))
|
|
167
|
-
] = InputWizRetryType.BACKOFF
|
|
158
|
+
type: Optional[InputWizRetryType] = InputWizRetryType.BACKOFF
|
|
168
159
|
r"""The algorithm to use when performing HTTP retries"""
|
|
169
160
|
|
|
170
161
|
interval: Optional[float] = 1000
|
|
@@ -195,7 +186,7 @@ class InputWizRetryRules(BaseModel):
|
|
|
195
186
|
r"""Retry request when a connection reset (ECONNRESET) error occurs"""
|
|
196
187
|
|
|
197
188
|
|
|
198
|
-
class InputWizAuthenticationMethod(str, Enum
|
|
189
|
+
class InputWizAuthenticationMethod(str, Enum):
|
|
199
190
|
r"""Enter client secret directly, or select a stored secret"""
|
|
200
191
|
|
|
201
192
|
MANUAL = "manual"
|
|
@@ -330,11 +321,7 @@ class InputWiz(BaseModel):
|
|
|
330
321
|
] = None
|
|
331
322
|
|
|
332
323
|
auth_type: Annotated[
|
|
333
|
-
|
|
334
|
-
Optional[InputWizAuthenticationMethod],
|
|
335
|
-
PlainValidator(validate_open_enum(False)),
|
|
336
|
-
],
|
|
337
|
-
pydantic.Field(alias="authType"),
|
|
324
|
+
Optional[InputWizAuthenticationMethod], pydantic.Field(alias="authType")
|
|
338
325
|
] = InputWizAuthenticationMethod.MANUAL
|
|
339
326
|
r"""Enter client secret directly, or select a stored secret"""
|
|
340
327
|
|
|
@@ -1,12 +1,9 @@
|
|
|
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 utils
|
|
5
4
|
from cribl_control_plane.types import BaseModel
|
|
6
|
-
from cribl_control_plane.utils import validate_open_enum
|
|
7
5
|
from enum import Enum
|
|
8
6
|
import pydantic
|
|
9
|
-
from pydantic.functional_validators import PlainValidator
|
|
10
7
|
from typing import Any, List, Optional
|
|
11
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
9
|
|
|
@@ -26,14 +23,14 @@ class InputWizWebhookConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputWizWebhookMode(str, Enum
|
|
26
|
+
class InputWizWebhookMode(str, Enum):
|
|
30
27
|
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."""
|
|
31
28
|
|
|
32
29
|
SMART = "smart"
|
|
33
30
|
ALWAYS = "always"
|
|
34
31
|
|
|
35
32
|
|
|
36
|
-
class InputWizWebhookCompression(str, Enum
|
|
33
|
+
class InputWizWebhookCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -67,9 +64,7 @@ class InputWizWebhookPqTypedDict(TypedDict):
|
|
|
67
64
|
|
|
68
65
|
|
|
69
66
|
class InputWizWebhookPq(BaseModel):
|
|
70
|
-
mode:
|
|
71
|
-
Optional[InputWizWebhookMode], PlainValidator(validate_open_enum(False))
|
|
72
|
-
] = InputWizWebhookMode.ALWAYS
|
|
67
|
+
mode: Optional[InputWizWebhookMode] = InputWizWebhookMode.ALWAYS
|
|
73
68
|
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."""
|
|
74
69
|
|
|
75
70
|
max_buffer_size: Annotated[
|
|
@@ -93,9 +88,7 @@ class InputWizWebhookPq(BaseModel):
|
|
|
93
88
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
94
89
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
95
90
|
|
|
96
|
-
compress:
|
|
97
|
-
Optional[InputWizWebhookCompression], PlainValidator(validate_open_enum(False))
|
|
98
|
-
] = InputWizWebhookCompression.NONE
|
|
91
|
+
compress: Optional[InputWizWebhookCompression] = InputWizWebhookCompression.NONE
|
|
99
92
|
r"""Codec to use to compress the persisted data"""
|
|
100
93
|
|
|
101
94
|
pq_controls: Annotated[
|
|
@@ -103,14 +96,14 @@ class InputWizWebhookPq(BaseModel):
|
|
|
103
96
|
] = None
|
|
104
97
|
|
|
105
98
|
|
|
106
|
-
class InputWizWebhookMinimumTLSVersion(str, Enum
|
|
99
|
+
class InputWizWebhookMinimumTLSVersion(str, Enum):
|
|
107
100
|
TL_SV1 = "TLSv1"
|
|
108
101
|
TL_SV1_1 = "TLSv1.1"
|
|
109
102
|
TL_SV1_2 = "TLSv1.2"
|
|
110
103
|
TL_SV1_3 = "TLSv1.3"
|
|
111
104
|
|
|
112
105
|
|
|
113
|
-
class InputWizWebhookMaximumTLSVersion(str, Enum
|
|
106
|
+
class InputWizWebhookMaximumTLSVersion(str, Enum):
|
|
114
107
|
TL_SV1 = "TLSv1"
|
|
115
108
|
TL_SV1_1 = "TLSv1.1"
|
|
116
109
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -169,19 +162,11 @@ class InputWizWebhookTLSSettingsServerSide(BaseModel):
|
|
|
169
162
|
] = None
|
|
170
163
|
|
|
171
164
|
min_version: Annotated[
|
|
172
|
-
|
|
173
|
-
Optional[InputWizWebhookMinimumTLSVersion],
|
|
174
|
-
PlainValidator(validate_open_enum(False)),
|
|
175
|
-
],
|
|
176
|
-
pydantic.Field(alias="minVersion"),
|
|
165
|
+
Optional[InputWizWebhookMinimumTLSVersion], pydantic.Field(alias="minVersion")
|
|
177
166
|
] = None
|
|
178
167
|
|
|
179
168
|
max_version: Annotated[
|
|
180
|
-
|
|
181
|
-
Optional[InputWizWebhookMaximumTLSVersion],
|
|
182
|
-
PlainValidator(validate_open_enum(False)),
|
|
183
|
-
],
|
|
184
|
-
pydantic.Field(alias="maxVersion"),
|
|
169
|
+
Optional[InputWizWebhookMaximumTLSVersion], pydantic.Field(alias="maxVersion")
|
|
185
170
|
] = None
|
|
186
171
|
|
|
187
172
|
|
|
@@ -1,12 +1,9 @@
|
|
|
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 utils
|
|
5
4
|
from cribl_control_plane.types import BaseModel
|
|
6
|
-
from cribl_control_plane.utils import validate_open_enum
|
|
7
5
|
from enum import Enum
|
|
8
6
|
import pydantic
|
|
9
|
-
from pydantic.functional_validators import PlainValidator
|
|
10
7
|
from typing import Any, List, Optional
|
|
11
8
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
9
|
|
|
@@ -26,14 +23,14 @@ class InputZscalerHecConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputZscalerHecMode(str, Enum
|
|
26
|
+
class InputZscalerHecMode(str, Enum):
|
|
30
27
|
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."""
|
|
31
28
|
|
|
32
29
|
SMART = "smart"
|
|
33
30
|
ALWAYS = "always"
|
|
34
31
|
|
|
35
32
|
|
|
36
|
-
class InputZscalerHecCompression(str, Enum
|
|
33
|
+
class InputZscalerHecCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -67,9 +64,7 @@ class InputZscalerHecPqTypedDict(TypedDict):
|
|
|
67
64
|
|
|
68
65
|
|
|
69
66
|
class InputZscalerHecPq(BaseModel):
|
|
70
|
-
mode:
|
|
71
|
-
Optional[InputZscalerHecMode], PlainValidator(validate_open_enum(False))
|
|
72
|
-
] = InputZscalerHecMode.ALWAYS
|
|
67
|
+
mode: Optional[InputZscalerHecMode] = InputZscalerHecMode.ALWAYS
|
|
73
68
|
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."""
|
|
74
69
|
|
|
75
70
|
max_buffer_size: Annotated[
|
|
@@ -93,9 +88,7 @@ class InputZscalerHecPq(BaseModel):
|
|
|
93
88
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
94
89
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
95
90
|
|
|
96
|
-
compress:
|
|
97
|
-
Optional[InputZscalerHecCompression], PlainValidator(validate_open_enum(False))
|
|
98
|
-
] = InputZscalerHecCompression.NONE
|
|
91
|
+
compress: Optional[InputZscalerHecCompression] = InputZscalerHecCompression.NONE
|
|
99
92
|
r"""Codec to use to compress the persisted data"""
|
|
100
93
|
|
|
101
94
|
pq_controls: Annotated[
|
|
@@ -103,7 +96,7 @@ class InputZscalerHecPq(BaseModel):
|
|
|
103
96
|
] = None
|
|
104
97
|
|
|
105
98
|
|
|
106
|
-
class InputZscalerHecAuthenticationMethod(str, Enum
|
|
99
|
+
class InputZscalerHecAuthenticationMethod(str, Enum):
|
|
107
100
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
108
101
|
|
|
109
102
|
MANUAL = "manual"
|
|
@@ -140,11 +133,7 @@ class InputZscalerHecAuthToken(BaseModel):
|
|
|
140
133
|
token: Any
|
|
141
134
|
|
|
142
135
|
auth_type: Annotated[
|
|
143
|
-
|
|
144
|
-
Optional[InputZscalerHecAuthenticationMethod],
|
|
145
|
-
PlainValidator(validate_open_enum(False)),
|
|
146
|
-
],
|
|
147
|
-
pydantic.Field(alias="authType"),
|
|
136
|
+
Optional[InputZscalerHecAuthenticationMethod], pydantic.Field(alias="authType")
|
|
148
137
|
] = InputZscalerHecAuthenticationMethod.MANUAL
|
|
149
138
|
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
150
139
|
|
|
@@ -163,14 +152,14 @@ class InputZscalerHecAuthToken(BaseModel):
|
|
|
163
152
|
r"""Fields to add to events referencing this token"""
|
|
164
153
|
|
|
165
154
|
|
|
166
|
-
class InputZscalerHecMinimumTLSVersion(str, Enum
|
|
155
|
+
class InputZscalerHecMinimumTLSVersion(str, Enum):
|
|
167
156
|
TL_SV1 = "TLSv1"
|
|
168
157
|
TL_SV1_1 = "TLSv1.1"
|
|
169
158
|
TL_SV1_2 = "TLSv1.2"
|
|
170
159
|
TL_SV1_3 = "TLSv1.3"
|
|
171
160
|
|
|
172
161
|
|
|
173
|
-
class InputZscalerHecMaximumTLSVersion(str, Enum
|
|
162
|
+
class InputZscalerHecMaximumTLSVersion(str, Enum):
|
|
174
163
|
TL_SV1 = "TLSv1"
|
|
175
164
|
TL_SV1_1 = "TLSv1.1"
|
|
176
165
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -229,19 +218,11 @@ class InputZscalerHecTLSSettingsServerSide(BaseModel):
|
|
|
229
218
|
] = None
|
|
230
219
|
|
|
231
220
|
min_version: Annotated[
|
|
232
|
-
|
|
233
|
-
Optional[InputZscalerHecMinimumTLSVersion],
|
|
234
|
-
PlainValidator(validate_open_enum(False)),
|
|
235
|
-
],
|
|
236
|
-
pydantic.Field(alias="minVersion"),
|
|
221
|
+
Optional[InputZscalerHecMinimumTLSVersion], pydantic.Field(alias="minVersion")
|
|
237
222
|
] = None
|
|
238
223
|
|
|
239
224
|
max_version: Annotated[
|
|
240
|
-
|
|
241
|
-
Optional[InputZscalerHecMaximumTLSVersion],
|
|
242
|
-
PlainValidator(validate_open_enum(False)),
|
|
243
|
-
],
|
|
244
|
-
pydantic.Field(alias="maxVersion"),
|
|
225
|
+
Optional[InputZscalerHecMaximumTLSVersion], pydantic.Field(alias="maxVersion")
|
|
245
226
|
] = None
|
|
246
227
|
|
|
247
228
|
|
|
@@ -1,10 +1,9 @@
|
|
|
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 utils
|
|
5
4
|
from enum import Enum
|
|
6
5
|
|
|
7
6
|
|
|
8
|
-
class LakehouseConnectionType(str, Enum
|
|
7
|
+
class LakehouseConnectionType(str, Enum):
|
|
9
8
|
CACHE = "cache"
|
|
10
9
|
ZERO_POINT = "zeroPoint"
|
|
@@ -8,9 +8,7 @@ from cribl_control_plane.utils import (
|
|
|
8
8
|
FieldMetadata,
|
|
9
9
|
PathParamMetadata,
|
|
10
10
|
QueryParamMetadata,
|
|
11
|
-
validate_open_enum,
|
|
12
11
|
)
|
|
13
|
-
from pydantic.functional_validators import PlainValidator
|
|
14
12
|
from typing import List, Optional
|
|
15
13
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
16
14
|
|
|
@@ -24,7 +22,7 @@ class ListConfigGroupByProductRequestTypedDict(TypedDict):
|
|
|
24
22
|
|
|
25
23
|
class ListConfigGroupByProductRequest(BaseModel):
|
|
26
24
|
product: Annotated[
|
|
27
|
-
|
|
25
|
+
ProductsCore,
|
|
28
26
|
FieldMetadata(path=PathParamMetadata(style="simple", explode=False)),
|
|
29
27
|
]
|
|
30
28
|
r"""Name of the Cribl product to get the Worker Groups or Edge Fleets for."""
|
|
@@ -4,12 +4,9 @@ from __future__ import annotations
|
|
|
4
4
|
from .heartbeatmetadata import HeartbeatMetadata, HeartbeatMetadataTypedDict
|
|
5
5
|
from .nodeprovidedinfo import NodeProvidedInfo, NodeProvidedInfoTypedDict
|
|
6
6
|
from .nodeupgradestatus import NodeUpgradeStatus, NodeUpgradeStatusTypedDict
|
|
7
|
-
from cribl_control_plane import utils
|
|
8
7
|
from cribl_control_plane.types import BaseModel
|
|
9
|
-
from cribl_control_plane.utils import validate_open_enum
|
|
10
8
|
from enum import Enum
|
|
11
9
|
import pydantic
|
|
12
|
-
from pydantic.functional_validators import PlainValidator
|
|
13
10
|
from typing import Optional
|
|
14
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
15
12
|
|
|
@@ -22,7 +19,7 @@ class LastMetrics(BaseModel):
|
|
|
22
19
|
pass
|
|
23
20
|
|
|
24
21
|
|
|
25
|
-
class MasterWorkerEntryType(str, Enum
|
|
22
|
+
class MasterWorkerEntryType(str, Enum):
|
|
26
23
|
INFO = "info"
|
|
27
24
|
REQ = "req"
|
|
28
25
|
RESP = "resp"
|
|
@@ -82,8 +79,6 @@ class MasterWorkerEntry(BaseModel):
|
|
|
82
79
|
|
|
83
80
|
status: Optional[str] = None
|
|
84
81
|
|
|
85
|
-
type:
|
|
86
|
-
Optional[MasterWorkerEntryType], PlainValidator(validate_open_enum(False))
|
|
87
|
-
] = None
|
|
82
|
+
type: Optional[MasterWorkerEntryType] = None
|
|
88
83
|
|
|
89
84
|
workers: Optional[MasterWorkerEntryWorkers] = None
|
|
@@ -1,11 +1,10 @@
|
|
|
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 utils
|
|
5
4
|
from enum import Enum
|
|
6
5
|
|
|
7
6
|
|
|
8
|
-
class NodeActiveUpgradeStatus(int, Enum
|
|
7
|
+
class NodeActiveUpgradeStatus(int, Enum):
|
|
9
8
|
ZERO = 0
|
|
10
9
|
ONE = 1
|
|
11
10
|
TWO = 2
|
|
@@ -1,10 +1,9 @@
|
|
|
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 utils
|
|
5
4
|
from enum import Enum
|
|
6
5
|
|
|
7
6
|
|
|
8
|
-
class NodeFailedUpgradeStatus(int, Enum
|
|
7
|
+
class NodeFailedUpgradeStatus(int, Enum):
|
|
9
8
|
ZERO = 0
|
|
10
9
|
ONE = 1
|