cribl-control-plane 0.0.44__py3-none-any.whl → 0.0.44a2__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/_version.py +3 -3
- cribl_control_plane/errors/healthstatus_error.py +8 -2
- cribl_control_plane/models/__init__.py +3 -3
- cribl_control_plane/models/appmode.py +2 -1
- cribl_control_plane/models/cacheconnection.py +10 -2
- cribl_control_plane/models/cacheconnectionbackfillstatus.py +2 -1
- cribl_control_plane/models/cloudprovider.py +2 -1
- cribl_control_plane/models/configgroup.py +7 -2
- cribl_control_plane/models/configgroupcloud.py +6 -2
- cribl_control_plane/models/createconfiggroupbyproductop.py +8 -2
- cribl_control_plane/models/cribllakedataset.py +8 -2
- cribl_control_plane/models/datasetmetadata.py +8 -2
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +7 -2
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +4 -2
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +4 -2
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +3 -1
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +7 -2
- cribl_control_plane/models/getsummaryop.py +7 -2
- cribl_control_plane/models/hbcriblinfo.py +6 -1
- cribl_control_plane/models/healthstatus.py +7 -4
- cribl_control_plane/models/inputappscope.py +34 -14
- cribl_control_plane/models/inputazureblob.py +17 -6
- cribl_control_plane/models/inputcollection.py +11 -4
- cribl_control_plane/models/inputconfluentcloud.py +47 -20
- cribl_control_plane/models/inputcribl.py +11 -4
- cribl_control_plane/models/inputcriblhttp.py +23 -8
- cribl_control_plane/models/inputcribllakehttp.py +22 -10
- cribl_control_plane/models/inputcriblmetrics.py +12 -4
- cribl_control_plane/models/inputcribltcp.py +23 -8
- cribl_control_plane/models/inputcrowdstrike.py +26 -10
- cribl_control_plane/models/inputdatadogagent.py +24 -8
- cribl_control_plane/models/inputdatagen.py +11 -4
- cribl_control_plane/models/inputedgeprometheus.py +58 -24
- cribl_control_plane/models/inputelastic.py +40 -14
- cribl_control_plane/models/inputeventhub.py +15 -6
- cribl_control_plane/models/inputexec.py +14 -6
- cribl_control_plane/models/inputfile.py +15 -6
- cribl_control_plane/models/inputfirehose.py +23 -8
- cribl_control_plane/models/inputgooglepubsub.py +19 -6
- cribl_control_plane/models/inputgrafana.py +67 -24
- cribl_control_plane/models/inputhttp.py +23 -8
- cribl_control_plane/models/inputhttpraw.py +23 -8
- cribl_control_plane/models/inputjournalfiles.py +12 -4
- cribl_control_plane/models/inputkafka.py +46 -16
- cribl_control_plane/models/inputkinesis.py +38 -14
- cribl_control_plane/models/inputkubeevents.py +11 -4
- cribl_control_plane/models/inputkubelogs.py +16 -8
- cribl_control_plane/models/inputkubemetrics.py +16 -8
- cribl_control_plane/models/inputloki.py +29 -10
- cribl_control_plane/models/inputmetrics.py +23 -8
- cribl_control_plane/models/inputmodeldriventelemetry.py +27 -10
- cribl_control_plane/models/inputmsk.py +53 -18
- cribl_control_plane/models/inputnetflow.py +11 -4
- cribl_control_plane/models/inputoffice365mgmt.py +33 -14
- cribl_control_plane/models/inputoffice365msgtrace.py +35 -16
- cribl_control_plane/models/inputoffice365service.py +35 -16
- cribl_control_plane/models/inputopentelemetry.py +38 -16
- cribl_control_plane/models/inputprometheus.py +50 -18
- cribl_control_plane/models/inputprometheusrw.py +30 -10
- cribl_control_plane/models/inputrawudp.py +11 -4
- cribl_control_plane/models/inputs3.py +21 -8
- cribl_control_plane/models/inputs3inventory.py +26 -10
- cribl_control_plane/models/inputsecuritylake.py +27 -10
- cribl_control_plane/models/inputsnmp.py +16 -6
- cribl_control_plane/models/inputsplunk.py +33 -12
- cribl_control_plane/models/inputsplunkhec.py +29 -10
- cribl_control_plane/models/inputsplunksearch.py +33 -14
- cribl_control_plane/models/inputsqs.py +27 -10
- cribl_control_plane/models/inputsyslog.py +43 -16
- cribl_control_plane/models/inputsystemmetrics.py +48 -24
- cribl_control_plane/models/inputsystemstate.py +16 -8
- cribl_control_plane/models/inputtcp.py +29 -10
- cribl_control_plane/models/inputtcpjson.py +29 -10
- cribl_control_plane/models/inputwef.py +37 -14
- cribl_control_plane/models/inputwindowsmetrics.py +44 -24
- cribl_control_plane/models/inputwineventlogs.py +20 -10
- cribl_control_plane/models/inputwiz.py +21 -8
- cribl_control_plane/models/inputwizwebhook.py +23 -8
- cribl_control_plane/models/inputzscalerhec.py +29 -10
- cribl_control_plane/models/lakehouseconnectiontype.py +2 -1
- cribl_control_plane/models/listconfiggroupbyproductop.py +3 -1
- cribl_control_plane/models/masterworkerentry.py +7 -2
- cribl_control_plane/models/nodeactiveupgradestatus.py +2 -1
- cribl_control_plane/models/nodefailedupgradestatus.py +2 -1
- cribl_control_plane/models/nodeskippedupgradestatus.py +2 -1
- cribl_control_plane/models/nodeupgradestate.py +2 -1
- cribl_control_plane/models/nodeupgradestatus.py +13 -5
- cribl_control_plane/models/outputazureblob.py +48 -18
- cribl_control_plane/models/outputazuredataexplorer.py +74 -29
- cribl_control_plane/models/outputazureeventhub.py +40 -18
- cribl_control_plane/models/outputazurelogs.py +36 -13
- cribl_control_plane/models/outputclickhouse.py +56 -21
- cribl_control_plane/models/outputcloudwatch.py +29 -10
- cribl_control_plane/models/outputconfluentcloud.py +77 -32
- cribl_control_plane/models/outputcriblhttp.py +46 -18
- cribl_control_plane/models/outputcribllake.py +46 -16
- cribl_control_plane/models/outputcribltcp.py +45 -18
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +50 -15
- cribl_control_plane/models/outputdatadog.py +48 -20
- cribl_control_plane/models/outputdataset.py +46 -18
- cribl_control_plane/models/outputdiskspool.py +7 -2
- cribl_control_plane/models/outputdls3.py +68 -24
- cribl_control_plane/models/outputdynatracehttp.py +54 -21
- cribl_control_plane/models/outputdynatraceotlp.py +56 -23
- cribl_control_plane/models/outputelastic.py +44 -19
- cribl_control_plane/models/outputelasticcloud.py +37 -13
- cribl_control_plane/models/outputexabeam.py +29 -10
- cribl_control_plane/models/outputfilesystem.py +39 -14
- cribl_control_plane/models/outputgooglechronicle.py +50 -16
- cribl_control_plane/models/outputgooglecloudlogging.py +41 -14
- cribl_control_plane/models/outputgooglecloudstorage.py +66 -24
- cribl_control_plane/models/outputgooglepubsub.py +31 -10
- cribl_control_plane/models/outputgrafanacloud.py +99 -34
- cribl_control_plane/models/outputgraphite.py +31 -14
- cribl_control_plane/models/outputhoneycomb.py +36 -13
- cribl_control_plane/models/outputhumiohec.py +44 -17
- cribl_control_plane/models/outputinfluxdb.py +43 -17
- cribl_control_plane/models/outputkafka.py +74 -28
- cribl_control_plane/models/outputkinesis.py +40 -16
- cribl_control_plane/models/outputloki.py +41 -16
- cribl_control_plane/models/outputminio.py +65 -24
- cribl_control_plane/models/outputmsk.py +82 -30
- cribl_control_plane/models/outputnewrelic.py +43 -18
- cribl_control_plane/models/outputnewrelicevents.py +42 -15
- cribl_control_plane/models/outputopentelemetry.py +68 -27
- cribl_control_plane/models/outputprometheus.py +36 -13
- cribl_control_plane/models/outputring.py +19 -8
- cribl_control_plane/models/outputs3.py +68 -26
- cribl_control_plane/models/outputsecuritylake.py +52 -18
- cribl_control_plane/models/outputsentinel.py +45 -18
- cribl_control_plane/models/outputsentineloneaisiem.py +51 -19
- cribl_control_plane/models/outputservicenow.py +61 -25
- cribl_control_plane/models/outputsignalfx.py +38 -15
- cribl_control_plane/models/outputsns.py +36 -14
- cribl_control_plane/models/outputsplunk.py +60 -24
- cribl_control_plane/models/outputsplunkhec.py +36 -13
- cribl_control_plane/models/outputsplunklb.py +77 -30
- cribl_control_plane/models/outputsqs.py +41 -16
- cribl_control_plane/models/outputstatsd.py +30 -14
- cribl_control_plane/models/outputstatsdext.py +29 -12
- cribl_control_plane/models/outputsumologic.py +35 -12
- cribl_control_plane/models/outputsyslog.py +58 -24
- cribl_control_plane/models/outputtcpjson.py +52 -20
- cribl_control_plane/models/outputwavefront.py +36 -13
- cribl_control_plane/models/outputwebhook.py +58 -22
- cribl_control_plane/models/outputxsiam.py +36 -15
- cribl_control_plane/models/productscore.py +2 -1
- cribl_control_plane/models/rbacresource.py +2 -1
- cribl_control_plane/models/resourcepolicy.py +4 -2
- cribl_control_plane/models/runnablejobcollection.py +30 -13
- cribl_control_plane/models/runnablejobexecutor.py +13 -4
- cribl_control_plane/models/runnablejobscheduledsearch.py +7 -2
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +8 -2
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +8 -2
- cribl_control_plane/models/workertypes.py +2 -1
- {cribl_control_plane-0.0.44.dist-info → cribl_control_plane-0.0.44a2.dist-info}/METADATA +1 -1
- {cribl_control_plane-0.0.44.dist-info → cribl_control_plane-0.0.44a2.dist-info}/RECORD +158 -158
- {cribl_control_plane-0.0.44.dist-info → cribl_control_plane-0.0.44a2.dist-info}/WHEEL +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
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
|
|
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.functional_validators import PlainValidator
|
|
7
10
|
from typing import List, Optional
|
|
8
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
12
|
|
|
@@ -23,14 +26,14 @@ class InputOffice365MgmtConnection(BaseModel):
|
|
|
23
26
|
pipeline: Optional[str] = None
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
class InputOffice365MgmtMode(str, Enum):
|
|
29
|
+
class InputOffice365MgmtMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
30
|
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
31
|
|
|
29
32
|
SMART = "smart"
|
|
30
33
|
ALWAYS = "always"
|
|
31
34
|
|
|
32
35
|
|
|
33
|
-
class InputOffice365MgmtCompression(str, Enum):
|
|
36
|
+
class InputOffice365MgmtCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
34
37
|
r"""Codec to use to compress the persisted data"""
|
|
35
38
|
|
|
36
39
|
NONE = "none"
|
|
@@ -64,7 +67,9 @@ class InputOffice365MgmtPqTypedDict(TypedDict):
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
class InputOffice365MgmtPq(BaseModel):
|
|
67
|
-
mode:
|
|
70
|
+
mode: Annotated[
|
|
71
|
+
Optional[InputOffice365MgmtMode], PlainValidator(validate_open_enum(False))
|
|
72
|
+
] = InputOffice365MgmtMode.ALWAYS
|
|
68
73
|
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."""
|
|
69
74
|
|
|
70
75
|
max_buffer_size: Annotated[
|
|
@@ -88,9 +93,10 @@ class InputOffice365MgmtPq(BaseModel):
|
|
|
88
93
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
89
94
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
90
95
|
|
|
91
|
-
compress:
|
|
92
|
-
InputOffice365MgmtCompression
|
|
93
|
-
|
|
96
|
+
compress: Annotated[
|
|
97
|
+
Optional[InputOffice365MgmtCompression],
|
|
98
|
+
PlainValidator(validate_open_enum(False)),
|
|
99
|
+
] = InputOffice365MgmtCompression.NONE
|
|
94
100
|
r"""Codec to use to compress the persisted data"""
|
|
95
101
|
|
|
96
102
|
pq_controls: Annotated[
|
|
@@ -98,7 +104,7 @@ class InputOffice365MgmtPq(BaseModel):
|
|
|
98
104
|
] = None
|
|
99
105
|
|
|
100
106
|
|
|
101
|
-
class InputOffice365MgmtSubscriptionPlan(str, Enum):
|
|
107
|
+
class InputOffice365MgmtSubscriptionPlan(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
102
108
|
r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
|
|
103
109
|
|
|
104
110
|
ENTERPRISE_GCC = "enterprise_gcc"
|
|
@@ -120,7 +126,7 @@ class InputOffice365MgmtMetadatum(BaseModel):
|
|
|
120
126
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
121
127
|
|
|
122
128
|
|
|
123
|
-
class InputOffice365MgmtLogLevel(str, Enum):
|
|
129
|
+
class InputOffice365MgmtLogLevel(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
124
130
|
r"""Collector runtime Log Level"""
|
|
125
131
|
|
|
126
132
|
ERROR = "error"
|
|
@@ -150,14 +156,18 @@ class InputOffice365MgmtContentConfig(BaseModel):
|
|
|
150
156
|
interval: Optional[float] = None
|
|
151
157
|
|
|
152
158
|
log_level: Annotated[
|
|
153
|
-
|
|
159
|
+
Annotated[
|
|
160
|
+
Optional[InputOffice365MgmtLogLevel],
|
|
161
|
+
PlainValidator(validate_open_enum(False)),
|
|
162
|
+
],
|
|
163
|
+
pydantic.Field(alias="logLevel"),
|
|
154
164
|
] = None
|
|
155
165
|
r"""Collector runtime Log Level"""
|
|
156
166
|
|
|
157
167
|
enabled: Optional[bool] = None
|
|
158
168
|
|
|
159
169
|
|
|
160
|
-
class InputOffice365MgmtRetryType(str, Enum):
|
|
170
|
+
class InputOffice365MgmtRetryType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
161
171
|
r"""The algorithm to use when performing HTTP retries"""
|
|
162
172
|
|
|
163
173
|
NONE = "none"
|
|
@@ -185,7 +195,9 @@ class InputOffice365MgmtRetryRulesTypedDict(TypedDict):
|
|
|
185
195
|
|
|
186
196
|
|
|
187
197
|
class InputOffice365MgmtRetryRules(BaseModel):
|
|
188
|
-
type:
|
|
198
|
+
type: Annotated[
|
|
199
|
+
Optional[InputOffice365MgmtRetryType], PlainValidator(validate_open_enum(False))
|
|
200
|
+
] = InputOffice365MgmtRetryType.BACKOFF
|
|
189
201
|
r"""The algorithm to use when performing HTTP retries"""
|
|
190
202
|
|
|
191
203
|
interval: Optional[float] = 1000
|
|
@@ -216,7 +228,7 @@ class InputOffice365MgmtRetryRules(BaseModel):
|
|
|
216
228
|
r"""Retry request when a connection reset (ECONNRESET) error occurs"""
|
|
217
229
|
|
|
218
230
|
|
|
219
|
-
class InputOffice365MgmtAuthenticationMethod(str, Enum):
|
|
231
|
+
class InputOffice365MgmtAuthenticationMethod(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
220
232
|
r"""Enter client secret directly, or select a stored secret"""
|
|
221
233
|
|
|
222
234
|
MANUAL = "manual"
|
|
@@ -314,7 +326,11 @@ class InputOffice365Mgmt(BaseModel):
|
|
|
314
326
|
pq: Optional[InputOffice365MgmtPq] = None
|
|
315
327
|
|
|
316
328
|
plan_type: Annotated[
|
|
317
|
-
|
|
329
|
+
Annotated[
|
|
330
|
+
Optional[InputOffice365MgmtSubscriptionPlan],
|
|
331
|
+
PlainValidator(validate_open_enum(False)),
|
|
332
|
+
],
|
|
333
|
+
pydantic.Field(alias="planType"),
|
|
318
334
|
] = InputOffice365MgmtSubscriptionPlan.ENTERPRISE_GCC
|
|
319
335
|
r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
|
|
320
336
|
|
|
@@ -364,7 +380,10 @@ class InputOffice365Mgmt(BaseModel):
|
|
|
364
380
|
] = None
|
|
365
381
|
|
|
366
382
|
auth_type: Annotated[
|
|
367
|
-
|
|
383
|
+
Annotated[
|
|
384
|
+
Optional[InputOffice365MgmtAuthenticationMethod],
|
|
385
|
+
PlainValidator(validate_open_enum(False)),
|
|
386
|
+
],
|
|
368
387
|
pydantic.Field(alias="authType"),
|
|
369
388
|
] = InputOffice365MgmtAuthenticationMethod.MANUAL
|
|
370
389
|
r"""Enter client secret directly, or select a stored secret"""
|
|
@@ -1,9 +1,12 @@
|
|
|
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
|
|
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.functional_validators import PlainValidator
|
|
7
10
|
from typing import List, Optional
|
|
8
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
12
|
|
|
@@ -23,14 +26,14 @@ class InputOffice365MsgTraceConnection(BaseModel):
|
|
|
23
26
|
pipeline: Optional[str] = None
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
class InputOffice365MsgTraceMode(str, Enum):
|
|
29
|
+
class InputOffice365MsgTraceMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
30
|
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
31
|
|
|
29
32
|
SMART = "smart"
|
|
30
33
|
ALWAYS = "always"
|
|
31
34
|
|
|
32
35
|
|
|
33
|
-
class InputOffice365MsgTraceCompression(str, Enum):
|
|
36
|
+
class InputOffice365MsgTraceCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
34
37
|
r"""Codec to use to compress the persisted data"""
|
|
35
38
|
|
|
36
39
|
NONE = "none"
|
|
@@ -64,7 +67,9 @@ class InputOffice365MsgTracePqTypedDict(TypedDict):
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
class InputOffice365MsgTracePq(BaseModel):
|
|
67
|
-
mode:
|
|
70
|
+
mode: Annotated[
|
|
71
|
+
Optional[InputOffice365MsgTraceMode], PlainValidator(validate_open_enum(False))
|
|
72
|
+
] = InputOffice365MsgTraceMode.ALWAYS
|
|
68
73
|
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."""
|
|
69
74
|
|
|
70
75
|
max_buffer_size: Annotated[
|
|
@@ -88,9 +93,10 @@ class InputOffice365MsgTracePq(BaseModel):
|
|
|
88
93
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
89
94
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
90
95
|
|
|
91
|
-
compress:
|
|
92
|
-
InputOffice365MsgTraceCompression
|
|
93
|
-
|
|
96
|
+
compress: Annotated[
|
|
97
|
+
Optional[InputOffice365MsgTraceCompression],
|
|
98
|
+
PlainValidator(validate_open_enum(False)),
|
|
99
|
+
] = InputOffice365MsgTraceCompression.NONE
|
|
94
100
|
r"""Codec to use to compress the persisted data"""
|
|
95
101
|
|
|
96
102
|
pq_controls: Annotated[
|
|
@@ -98,7 +104,9 @@ class InputOffice365MsgTracePq(BaseModel):
|
|
|
98
104
|
] = None
|
|
99
105
|
|
|
100
106
|
|
|
101
|
-
class InputOffice365MsgTraceAuthenticationMethod(
|
|
107
|
+
class InputOffice365MsgTraceAuthenticationMethod(
|
|
108
|
+
str, Enum, metaclass=utils.OpenEnumMeta
|
|
109
|
+
):
|
|
102
110
|
r"""Select authentication method."""
|
|
103
111
|
|
|
104
112
|
MANUAL = "manual"
|
|
@@ -108,7 +116,7 @@ class InputOffice365MsgTraceAuthenticationMethod(str, Enum):
|
|
|
108
116
|
OAUTH_CERT = "oauthCert"
|
|
109
117
|
|
|
110
118
|
|
|
111
|
-
class InputOffice365MsgTraceLogLevel(str, Enum):
|
|
119
|
+
class InputOffice365MsgTraceLogLevel(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
112
120
|
r"""Log Level (verbosity) for collection runtime behavior."""
|
|
113
121
|
|
|
114
122
|
ERROR = "error"
|
|
@@ -131,7 +139,7 @@ class InputOffice365MsgTraceMetadatum(BaseModel):
|
|
|
131
139
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
132
140
|
|
|
133
141
|
|
|
134
|
-
class InputOffice365MsgTraceRetryType(str, Enum):
|
|
142
|
+
class InputOffice365MsgTraceRetryType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
135
143
|
r"""The algorithm to use when performing HTTP retries"""
|
|
136
144
|
|
|
137
145
|
NONE = "none"
|
|
@@ -159,9 +167,10 @@ class InputOffice365MsgTraceRetryRulesTypedDict(TypedDict):
|
|
|
159
167
|
|
|
160
168
|
|
|
161
169
|
class InputOffice365MsgTraceRetryRules(BaseModel):
|
|
162
|
-
type:
|
|
163
|
-
InputOffice365MsgTraceRetryType
|
|
164
|
-
|
|
170
|
+
type: Annotated[
|
|
171
|
+
Optional[InputOffice365MsgTraceRetryType],
|
|
172
|
+
PlainValidator(validate_open_enum(False)),
|
|
173
|
+
] = InputOffice365MsgTraceRetryType.BACKOFF
|
|
165
174
|
r"""The algorithm to use when performing HTTP retries"""
|
|
166
175
|
|
|
167
176
|
interval: Optional[float] = 1000
|
|
@@ -192,7 +201,7 @@ class InputOffice365MsgTraceRetryRules(BaseModel):
|
|
|
192
201
|
r"""Retry request when a connection reset (ECONNRESET) error occurs"""
|
|
193
202
|
|
|
194
203
|
|
|
195
|
-
class InputOffice365MsgTraceSubscriptionPlan(str, Enum):
|
|
204
|
+
class InputOffice365MsgTraceSubscriptionPlan(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
196
205
|
r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
|
|
197
206
|
|
|
198
207
|
ENTERPRISE_GCC = "enterprise_gcc"
|
|
@@ -354,7 +363,10 @@ class InputOffice365MsgTrace(BaseModel):
|
|
|
354
363
|
r"""Disables time filtering of events when a date range is specified."""
|
|
355
364
|
|
|
356
365
|
auth_type: Annotated[
|
|
357
|
-
|
|
366
|
+
Annotated[
|
|
367
|
+
Optional[InputOffice365MsgTraceAuthenticationMethod],
|
|
368
|
+
PlainValidator(validate_open_enum(False)),
|
|
369
|
+
],
|
|
358
370
|
pydantic.Field(alias="authType"),
|
|
359
371
|
] = InputOffice365MsgTraceAuthenticationMethod.OAUTH
|
|
360
372
|
r"""Select authentication method."""
|
|
@@ -370,7 +382,11 @@ class InputOffice365MsgTrace(BaseModel):
|
|
|
370
382
|
r"""Maximum number of times a task can be rescheduled"""
|
|
371
383
|
|
|
372
384
|
log_level: Annotated[
|
|
373
|
-
|
|
385
|
+
Annotated[
|
|
386
|
+
Optional[InputOffice365MsgTraceLogLevel],
|
|
387
|
+
PlainValidator(validate_open_enum(False)),
|
|
388
|
+
],
|
|
389
|
+
pydantic.Field(alias="logLevel"),
|
|
374
390
|
] = InputOffice365MsgTraceLogLevel.INFO
|
|
375
391
|
r"""Log Level (verbosity) for collection runtime behavior."""
|
|
376
392
|
|
|
@@ -428,7 +444,10 @@ class InputOffice365MsgTrace(BaseModel):
|
|
|
428
444
|
r"""Resource to pass in the OAuth request parameter."""
|
|
429
445
|
|
|
430
446
|
plan_type: Annotated[
|
|
431
|
-
|
|
447
|
+
Annotated[
|
|
448
|
+
Optional[InputOffice365MsgTraceSubscriptionPlan],
|
|
449
|
+
PlainValidator(validate_open_enum(False)),
|
|
450
|
+
],
|
|
432
451
|
pydantic.Field(alias="planType"),
|
|
433
452
|
] = InputOffice365MsgTraceSubscriptionPlan.ENTERPRISE_GCC
|
|
434
453
|
r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
|
|
@@ -1,9 +1,12 @@
|
|
|
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
|
|
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.functional_validators import PlainValidator
|
|
7
10
|
from typing import List, Optional
|
|
8
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
12
|
|
|
@@ -23,14 +26,14 @@ class InputOffice365ServiceConnection(BaseModel):
|
|
|
23
26
|
pipeline: Optional[str] = None
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
class InputOffice365ServiceMode(str, Enum):
|
|
29
|
+
class InputOffice365ServiceMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
30
|
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
31
|
|
|
29
32
|
SMART = "smart"
|
|
30
33
|
ALWAYS = "always"
|
|
31
34
|
|
|
32
35
|
|
|
33
|
-
class InputOffice365ServiceCompression(str, Enum):
|
|
36
|
+
class InputOffice365ServiceCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
34
37
|
r"""Codec to use to compress the persisted data"""
|
|
35
38
|
|
|
36
39
|
NONE = "none"
|
|
@@ -64,7 +67,9 @@ class InputOffice365ServicePqTypedDict(TypedDict):
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
class InputOffice365ServicePq(BaseModel):
|
|
67
|
-
mode:
|
|
70
|
+
mode: Annotated[
|
|
71
|
+
Optional[InputOffice365ServiceMode], PlainValidator(validate_open_enum(False))
|
|
72
|
+
] = InputOffice365ServiceMode.ALWAYS
|
|
68
73
|
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."""
|
|
69
74
|
|
|
70
75
|
max_buffer_size: Annotated[
|
|
@@ -88,9 +93,10 @@ class InputOffice365ServicePq(BaseModel):
|
|
|
88
93
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
89
94
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
90
95
|
|
|
91
|
-
compress:
|
|
92
|
-
InputOffice365ServiceCompression
|
|
93
|
-
|
|
96
|
+
compress: Annotated[
|
|
97
|
+
Optional[InputOffice365ServiceCompression],
|
|
98
|
+
PlainValidator(validate_open_enum(False)),
|
|
99
|
+
] = InputOffice365ServiceCompression.NONE
|
|
94
100
|
r"""Codec to use to compress the persisted data"""
|
|
95
101
|
|
|
96
102
|
pq_controls: Annotated[
|
|
@@ -98,7 +104,7 @@ class InputOffice365ServicePq(BaseModel):
|
|
|
98
104
|
] = None
|
|
99
105
|
|
|
100
106
|
|
|
101
|
-
class InputOffice365ServiceSubscriptionPlan(str, Enum):
|
|
107
|
+
class InputOffice365ServiceSubscriptionPlan(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
102
108
|
r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
|
|
103
109
|
|
|
104
110
|
ENTERPRISE_GCC = "enterprise_gcc"
|
|
@@ -120,7 +126,7 @@ class InputOffice365ServiceMetadatum(BaseModel):
|
|
|
120
126
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
121
127
|
|
|
122
128
|
|
|
123
|
-
class InputOffice365ServiceLogLevel(str, Enum):
|
|
129
|
+
class InputOffice365ServiceLogLevel(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
124
130
|
r"""Collector runtime Log Level"""
|
|
125
131
|
|
|
126
132
|
ERROR = "error"
|
|
@@ -150,14 +156,18 @@ class InputOffice365ServiceContentConfig(BaseModel):
|
|
|
150
156
|
interval: Optional[float] = None
|
|
151
157
|
|
|
152
158
|
log_level: Annotated[
|
|
153
|
-
|
|
159
|
+
Annotated[
|
|
160
|
+
Optional[InputOffice365ServiceLogLevel],
|
|
161
|
+
PlainValidator(validate_open_enum(False)),
|
|
162
|
+
],
|
|
163
|
+
pydantic.Field(alias="logLevel"),
|
|
154
164
|
] = None
|
|
155
165
|
r"""Collector runtime Log Level"""
|
|
156
166
|
|
|
157
167
|
enabled: Optional[bool] = None
|
|
158
168
|
|
|
159
169
|
|
|
160
|
-
class InputOffice365ServiceRetryType(str, Enum):
|
|
170
|
+
class InputOffice365ServiceRetryType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
161
171
|
r"""The algorithm to use when performing HTTP retries"""
|
|
162
172
|
|
|
163
173
|
NONE = "none"
|
|
@@ -185,9 +195,10 @@ class InputOffice365ServiceRetryRulesTypedDict(TypedDict):
|
|
|
185
195
|
|
|
186
196
|
|
|
187
197
|
class InputOffice365ServiceRetryRules(BaseModel):
|
|
188
|
-
type:
|
|
189
|
-
InputOffice365ServiceRetryType
|
|
190
|
-
|
|
198
|
+
type: Annotated[
|
|
199
|
+
Optional[InputOffice365ServiceRetryType],
|
|
200
|
+
PlainValidator(validate_open_enum(False)),
|
|
201
|
+
] = InputOffice365ServiceRetryType.BACKOFF
|
|
191
202
|
r"""The algorithm to use when performing HTTP retries"""
|
|
192
203
|
|
|
193
204
|
interval: Optional[float] = 1000
|
|
@@ -218,7 +229,9 @@ class InputOffice365ServiceRetryRules(BaseModel):
|
|
|
218
229
|
r"""Retry request when a connection reset (ECONNRESET) error occurs"""
|
|
219
230
|
|
|
220
231
|
|
|
221
|
-
class InputOffice365ServiceAuthenticationMethod(
|
|
232
|
+
class InputOffice365ServiceAuthenticationMethod(
|
|
233
|
+
str, Enum, metaclass=utils.OpenEnumMeta
|
|
234
|
+
):
|
|
222
235
|
r"""Enter client secret directly, or select a stored secret"""
|
|
223
236
|
|
|
224
237
|
MANUAL = "manual"
|
|
@@ -312,7 +325,10 @@ class InputOffice365Service(BaseModel):
|
|
|
312
325
|
pq: Optional[InputOffice365ServicePq] = None
|
|
313
326
|
|
|
314
327
|
plan_type: Annotated[
|
|
315
|
-
|
|
328
|
+
Annotated[
|
|
329
|
+
Optional[InputOffice365ServiceSubscriptionPlan],
|
|
330
|
+
PlainValidator(validate_open_enum(False)),
|
|
331
|
+
],
|
|
316
332
|
pydantic.Field(alias="planType"),
|
|
317
333
|
] = InputOffice365ServiceSubscriptionPlan.ENTERPRISE_GCC
|
|
318
334
|
r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
|
|
@@ -355,7 +371,10 @@ class InputOffice365Service(BaseModel):
|
|
|
355
371
|
] = None
|
|
356
372
|
|
|
357
373
|
auth_type: Annotated[
|
|
358
|
-
|
|
374
|
+
Annotated[
|
|
375
|
+
Optional[InputOffice365ServiceAuthenticationMethod],
|
|
376
|
+
PlainValidator(validate_open_enum(False)),
|
|
377
|
+
],
|
|
359
378
|
pydantic.Field(alias="authType"),
|
|
360
379
|
] = InputOffice365ServiceAuthenticationMethod.MANUAL
|
|
361
380
|
r"""Enter client secret directly, or select a stored secret"""
|
|
@@ -1,9 +1,12 @@
|
|
|
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
|
|
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.functional_validators import PlainValidator
|
|
7
10
|
from typing import Any, List, Optional
|
|
8
11
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
12
|
|
|
@@ -23,14 +26,14 @@ class InputOpenTelemetryConnection(BaseModel):
|
|
|
23
26
|
pipeline: Optional[str] = None
|
|
24
27
|
|
|
25
28
|
|
|
26
|
-
class InputOpenTelemetryMode(str, Enum):
|
|
29
|
+
class InputOpenTelemetryMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
30
|
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
31
|
|
|
29
32
|
SMART = "smart"
|
|
30
33
|
ALWAYS = "always"
|
|
31
34
|
|
|
32
35
|
|
|
33
|
-
class InputOpenTelemetryCompression(str, Enum):
|
|
36
|
+
class InputOpenTelemetryCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
34
37
|
r"""Codec to use to compress the persisted data"""
|
|
35
38
|
|
|
36
39
|
NONE = "none"
|
|
@@ -64,7 +67,9 @@ class InputOpenTelemetryPqTypedDict(TypedDict):
|
|
|
64
67
|
|
|
65
68
|
|
|
66
69
|
class InputOpenTelemetryPq(BaseModel):
|
|
67
|
-
mode:
|
|
70
|
+
mode: Annotated[
|
|
71
|
+
Optional[InputOpenTelemetryMode], PlainValidator(validate_open_enum(False))
|
|
72
|
+
] = InputOpenTelemetryMode.ALWAYS
|
|
68
73
|
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."""
|
|
69
74
|
|
|
70
75
|
max_buffer_size: Annotated[
|
|
@@ -88,9 +93,10 @@ class InputOpenTelemetryPq(BaseModel):
|
|
|
88
93
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
89
94
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
90
95
|
|
|
91
|
-
compress:
|
|
92
|
-
InputOpenTelemetryCompression
|
|
93
|
-
|
|
96
|
+
compress: Annotated[
|
|
97
|
+
Optional[InputOpenTelemetryCompression],
|
|
98
|
+
PlainValidator(validate_open_enum(False)),
|
|
99
|
+
] = InputOpenTelemetryCompression.NONE
|
|
94
100
|
r"""Codec to use to compress the persisted data"""
|
|
95
101
|
|
|
96
102
|
pq_controls: Annotated[
|
|
@@ -98,14 +104,14 @@ class InputOpenTelemetryPq(BaseModel):
|
|
|
98
104
|
] = None
|
|
99
105
|
|
|
100
106
|
|
|
101
|
-
class InputOpenTelemetryMinimumTLSVersion(str, Enum):
|
|
107
|
+
class InputOpenTelemetryMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
102
108
|
TL_SV1 = "TLSv1"
|
|
103
109
|
TL_SV1_1 = "TLSv1.1"
|
|
104
110
|
TL_SV1_2 = "TLSv1.2"
|
|
105
111
|
TL_SV1_3 = "TLSv1.3"
|
|
106
112
|
|
|
107
113
|
|
|
108
|
-
class InputOpenTelemetryMaximumTLSVersion(str, Enum):
|
|
114
|
+
class InputOpenTelemetryMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
109
115
|
TL_SV1 = "TLSv1"
|
|
110
116
|
TL_SV1_1 = "TLSv1.1"
|
|
111
117
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -164,31 +170,37 @@ class InputOpenTelemetryTLSSettingsServerSide(BaseModel):
|
|
|
164
170
|
] = None
|
|
165
171
|
|
|
166
172
|
min_version: Annotated[
|
|
167
|
-
|
|
173
|
+
Annotated[
|
|
174
|
+
Optional[InputOpenTelemetryMinimumTLSVersion],
|
|
175
|
+
PlainValidator(validate_open_enum(False)),
|
|
176
|
+
],
|
|
168
177
|
pydantic.Field(alias="minVersion"),
|
|
169
178
|
] = None
|
|
170
179
|
|
|
171
180
|
max_version: Annotated[
|
|
172
|
-
|
|
181
|
+
Annotated[
|
|
182
|
+
Optional[InputOpenTelemetryMaximumTLSVersion],
|
|
183
|
+
PlainValidator(validate_open_enum(False)),
|
|
184
|
+
],
|
|
173
185
|
pydantic.Field(alias="maxVersion"),
|
|
174
186
|
] = None
|
|
175
187
|
|
|
176
188
|
|
|
177
|
-
class InputOpenTelemetryProtocol(str, Enum):
|
|
189
|
+
class InputOpenTelemetryProtocol(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
178
190
|
r"""Select whether to leverage gRPC or HTTP for OpenTelemetry"""
|
|
179
191
|
|
|
180
192
|
GRPC = "grpc"
|
|
181
193
|
HTTP = "http"
|
|
182
194
|
|
|
183
195
|
|
|
184
|
-
class InputOpenTelemetryOTLPVersion(str, Enum):
|
|
196
|
+
class InputOpenTelemetryOTLPVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
185
197
|
r"""The version of OTLP Protobuf definitions to use when interpreting received data"""
|
|
186
198
|
|
|
187
199
|
ZERO_DOT_10_DOT_0 = "0.10.0"
|
|
188
200
|
ONE_DOT_3_DOT_1 = "1.3.1"
|
|
189
201
|
|
|
190
202
|
|
|
191
|
-
class InputOpenTelemetryAuthenticationType(str, Enum):
|
|
203
|
+
class InputOpenTelemetryAuthenticationType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
192
204
|
r"""OpenTelemetry authentication type"""
|
|
193
205
|
|
|
194
206
|
NONE = "none"
|
|
@@ -417,7 +429,9 @@ class InputOpenTelemetry(BaseModel):
|
|
|
417
429
|
] = "/^$/"
|
|
418
430
|
r"""Messages from matched IP addresses will be ignored. This takes precedence over the allowlist."""
|
|
419
431
|
|
|
420
|
-
protocol:
|
|
432
|
+
protocol: Annotated[
|
|
433
|
+
Optional[InputOpenTelemetryProtocol], PlainValidator(validate_open_enum(False))
|
|
434
|
+
] = InputOpenTelemetryProtocol.GRPC
|
|
421
435
|
r"""Select whether to leverage gRPC or HTTP for OpenTelemetry"""
|
|
422
436
|
|
|
423
437
|
extract_spans: Annotated[Optional[bool], pydantic.Field(alias="extractSpans")] = (
|
|
@@ -431,12 +445,20 @@ class InputOpenTelemetry(BaseModel):
|
|
|
431
445
|
r"""Enable to extract each incoming Gauge or IntGauge metric to multiple events, one per data point"""
|
|
432
446
|
|
|
433
447
|
otlp_version: Annotated[
|
|
434
|
-
|
|
448
|
+
Annotated[
|
|
449
|
+
Optional[InputOpenTelemetryOTLPVersion],
|
|
450
|
+
PlainValidator(validate_open_enum(False)),
|
|
451
|
+
],
|
|
452
|
+
pydantic.Field(alias="otlpVersion"),
|
|
435
453
|
] = InputOpenTelemetryOTLPVersion.ZERO_DOT_10_DOT_0
|
|
436
454
|
r"""The version of OTLP Protobuf definitions to use when interpreting received data"""
|
|
437
455
|
|
|
438
456
|
auth_type: Annotated[
|
|
439
|
-
|
|
457
|
+
Annotated[
|
|
458
|
+
Optional[InputOpenTelemetryAuthenticationType],
|
|
459
|
+
PlainValidator(validate_open_enum(False)),
|
|
460
|
+
],
|
|
461
|
+
pydantic.Field(alias="authType"),
|
|
440
462
|
] = InputOpenTelemetryAuthenticationType.NONE
|
|
441
463
|
r"""OpenTelemetry authentication type"""
|
|
442
464
|
|