cribl-control-plane 0.0.44a2__py3-none-any.whl → 0.0.46__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 +5 -3
- cribl_control_plane/errors/healthstatus_error.py +2 -8
- cribl_control_plane/models/__init__.py +3 -3
- cribl_control_plane/models/appmode.py +1 -2
- 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 +2 -7
- cribl_control_plane/models/configgroupcloud.py +2 -6
- cribl_control_plane/models/createconfiggroupbyproductop.py +2 -8
- 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/hbcriblinfo.py +6 -6
- cribl_control_plane/models/healthstatus.py +4 -7
- 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 +20 -47
- 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 +16 -46
- 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 -27
- cribl_control_plane/models/inputmsk.py +18 -53
- 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/nodeskippedupgradestatus.py +1 -2
- cribl_control_plane/models/nodeupgradestate.py +1 -2
- cribl_control_plane/models/nodeupgradestatus.py +5 -13
- 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 +32 -77
- 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 +14 -41
- 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 +28 -74
- 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 +30 -82
- 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/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/workertypes.py +1 -2
- {cribl_control_plane-0.0.44a2.dist-info → cribl_control_plane-0.0.46.dist-info}/METADATA +3 -2
- {cribl_control_plane-0.0.44a2.dist-info → cribl_control_plane-0.0.46.dist-info}/RECORD +158 -158
- {cribl_control_plane-0.0.44a2.dist-info → cribl_control_plane-0.0.46.dist-info}/WHEEL +1 -1
|
@@ -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
|
|
|
@@ -15,21 +12,21 @@ class OutputOpenTelemetryType(str, Enum):
|
|
|
15
12
|
OPEN_TELEMETRY = "open_telemetry"
|
|
16
13
|
|
|
17
14
|
|
|
18
|
-
class OutputOpenTelemetryProtocol(str, Enum
|
|
15
|
+
class OutputOpenTelemetryProtocol(str, Enum):
|
|
19
16
|
r"""Select a transport option for OpenTelemetry"""
|
|
20
17
|
|
|
21
18
|
GRPC = "grpc"
|
|
22
19
|
HTTP = "http"
|
|
23
20
|
|
|
24
21
|
|
|
25
|
-
class OutputOpenTelemetryOTLPVersion(str, Enum
|
|
22
|
+
class OutputOpenTelemetryOTLPVersion(str, Enum):
|
|
26
23
|
r"""The version of OTLP Protobuf definitions to use when structuring data to send"""
|
|
27
24
|
|
|
28
25
|
ZERO_DOT_10_DOT_0 = "0.10.0"
|
|
29
26
|
ONE_DOT_3_DOT_1 = "1.3.1"
|
|
30
27
|
|
|
31
28
|
|
|
32
|
-
class OutputOpenTelemetryCompressCompression(str, Enum
|
|
29
|
+
class OutputOpenTelemetryCompressCompression(str, Enum):
|
|
33
30
|
r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
|
|
34
31
|
|
|
35
32
|
NONE = "none"
|
|
@@ -37,16 +34,14 @@ class OutputOpenTelemetryCompressCompression(str, Enum, metaclass=utils.OpenEnum
|
|
|
37
34
|
GZIP = "gzip"
|
|
38
35
|
|
|
39
36
|
|
|
40
|
-
class OutputOpenTelemetryHTTPCompressCompression(
|
|
41
|
-
str, Enum, metaclass=utils.OpenEnumMeta
|
|
42
|
-
):
|
|
37
|
+
class OutputOpenTelemetryHTTPCompressCompression(str, Enum):
|
|
43
38
|
r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
|
|
44
39
|
|
|
45
40
|
NONE = "none"
|
|
46
41
|
GZIP = "gzip"
|
|
47
42
|
|
|
48
43
|
|
|
49
|
-
class OutputOpenTelemetryAuthenticationType(str, Enum
|
|
44
|
+
class OutputOpenTelemetryAuthenticationType(str, Enum):
|
|
50
45
|
r"""OpenTelemetry authentication type"""
|
|
51
46
|
|
|
52
47
|
NONE = "none"
|
|
@@ -68,9 +63,7 @@ class OutputOpenTelemetryMetadatum(BaseModel):
|
|
|
68
63
|
key: Optional[str] = ""
|
|
69
64
|
|
|
70
65
|
|
|
71
|
-
class OutputOpenTelemetryFailedRequestLoggingMode(
|
|
72
|
-
str, Enum, metaclass=utils.OpenEnumMeta
|
|
73
|
-
):
|
|
66
|
+
class OutputOpenTelemetryFailedRequestLoggingMode(str, Enum):
|
|
74
67
|
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
75
68
|
|
|
76
69
|
PAYLOAD = "payload"
|
|
@@ -78,7 +71,7 @@ class OutputOpenTelemetryFailedRequestLoggingMode(
|
|
|
78
71
|
NONE = "none"
|
|
79
72
|
|
|
80
73
|
|
|
81
|
-
class OutputOpenTelemetryBackpressureBehavior(str, Enum
|
|
74
|
+
class OutputOpenTelemetryBackpressureBehavior(str, Enum):
|
|
82
75
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
83
76
|
|
|
84
77
|
BLOCK = "block"
|
|
@@ -181,14 +174,14 @@ class OutputOpenTelemetryTimeoutRetrySettings(BaseModel):
|
|
|
181
174
|
r"""The maximum backoff interval, in milliseconds, Cribl Stream should apply. Default (and minimum) is 10,000 ms (10 seconds); maximum is 180,000 ms (180 seconds)."""
|
|
182
175
|
|
|
183
176
|
|
|
184
|
-
class OutputOpenTelemetryMinimumTLSVersion(str, Enum
|
|
177
|
+
class OutputOpenTelemetryMinimumTLSVersion(str, Enum):
|
|
185
178
|
TL_SV1 = "TLSv1"
|
|
186
179
|
TL_SV1_1 = "TLSv1.1"
|
|
187
180
|
TL_SV1_2 = "TLSv1.2"
|
|
188
181
|
TL_SV1_3 = "TLSv1.3"
|
|
189
182
|
|
|
190
183
|
|
|
191
|
-
class OutputOpenTelemetryMaximumTLSVersion(str, Enum
|
|
184
|
+
class OutputOpenTelemetryMaximumTLSVersion(str, Enum):
|
|
192
185
|
TL_SV1 = "TLSv1"
|
|
193
186
|
TL_SV1_1 = "TLSv1.1"
|
|
194
187
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -243,37 +236,31 @@ class OutputOpenTelemetryTLSSettingsClientSide(BaseModel):
|
|
|
243
236
|
r"""Passphrase to use to decrypt private key"""
|
|
244
237
|
|
|
245
238
|
min_version: Annotated[
|
|
246
|
-
|
|
247
|
-
Optional[OutputOpenTelemetryMinimumTLSVersion],
|
|
248
|
-
PlainValidator(validate_open_enum(False)),
|
|
249
|
-
],
|
|
239
|
+
Optional[OutputOpenTelemetryMinimumTLSVersion],
|
|
250
240
|
pydantic.Field(alias="minVersion"),
|
|
251
241
|
] = None
|
|
252
242
|
|
|
253
243
|
max_version: Annotated[
|
|
254
|
-
|
|
255
|
-
Optional[OutputOpenTelemetryMaximumTLSVersion],
|
|
256
|
-
PlainValidator(validate_open_enum(False)),
|
|
257
|
-
],
|
|
244
|
+
Optional[OutputOpenTelemetryMaximumTLSVersion],
|
|
258
245
|
pydantic.Field(alias="maxVersion"),
|
|
259
246
|
] = None
|
|
260
247
|
|
|
261
248
|
|
|
262
|
-
class OutputOpenTelemetryPqCompressCompression(str, Enum
|
|
249
|
+
class OutputOpenTelemetryPqCompressCompression(str, Enum):
|
|
263
250
|
r"""Codec to use to compress the persisted data"""
|
|
264
251
|
|
|
265
252
|
NONE = "none"
|
|
266
253
|
GZIP = "gzip"
|
|
267
254
|
|
|
268
255
|
|
|
269
|
-
class OutputOpenTelemetryQueueFullBehavior(str, Enum
|
|
256
|
+
class OutputOpenTelemetryQueueFullBehavior(str, Enum):
|
|
270
257
|
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
271
258
|
|
|
272
259
|
BLOCK = "block"
|
|
273
260
|
DROP = "drop"
|
|
274
261
|
|
|
275
262
|
|
|
276
|
-
class OutputOpenTelemetryMode(str, Enum
|
|
263
|
+
class OutputOpenTelemetryMode(str, Enum):
|
|
277
264
|
r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
|
|
278
265
|
|
|
279
266
|
ERROR = "error"
|
|
@@ -425,40 +412,27 @@ class OutputOpenTelemetry(BaseModel):
|
|
|
425
412
|
streamtags: Optional[List[str]] = None
|
|
426
413
|
r"""Tags for filtering and grouping in @{product}"""
|
|
427
414
|
|
|
428
|
-
protocol:
|
|
429
|
-
Optional[OutputOpenTelemetryProtocol], PlainValidator(validate_open_enum(False))
|
|
430
|
-
] = OutputOpenTelemetryProtocol.GRPC
|
|
415
|
+
protocol: Optional[OutputOpenTelemetryProtocol] = OutputOpenTelemetryProtocol.GRPC
|
|
431
416
|
r"""Select a transport option for OpenTelemetry"""
|
|
432
417
|
|
|
433
418
|
otlp_version: Annotated[
|
|
434
|
-
|
|
435
|
-
Optional[OutputOpenTelemetryOTLPVersion],
|
|
436
|
-
PlainValidator(validate_open_enum(False)),
|
|
437
|
-
],
|
|
438
|
-
pydantic.Field(alias="otlpVersion"),
|
|
419
|
+
Optional[OutputOpenTelemetryOTLPVersion], pydantic.Field(alias="otlpVersion")
|
|
439
420
|
] = OutputOpenTelemetryOTLPVersion.ZERO_DOT_10_DOT_0
|
|
440
421
|
r"""The version of OTLP Protobuf definitions to use when structuring data to send"""
|
|
441
422
|
|
|
442
|
-
compress:
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
] = OutputOpenTelemetryCompressCompression.GZIP
|
|
423
|
+
compress: Optional[OutputOpenTelemetryCompressCompression] = (
|
|
424
|
+
OutputOpenTelemetryCompressCompression.GZIP
|
|
425
|
+
)
|
|
446
426
|
r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
|
|
447
427
|
|
|
448
428
|
http_compress: Annotated[
|
|
449
|
-
|
|
450
|
-
Optional[OutputOpenTelemetryHTTPCompressCompression],
|
|
451
|
-
PlainValidator(validate_open_enum(False)),
|
|
452
|
-
],
|
|
429
|
+
Optional[OutputOpenTelemetryHTTPCompressCompression],
|
|
453
430
|
pydantic.Field(alias="httpCompress"),
|
|
454
431
|
] = OutputOpenTelemetryHTTPCompressCompression.GZIP
|
|
455
432
|
r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
|
|
456
433
|
|
|
457
434
|
auth_type: Annotated[
|
|
458
|
-
|
|
459
|
-
Optional[OutputOpenTelemetryAuthenticationType],
|
|
460
|
-
PlainValidator(validate_open_enum(False)),
|
|
461
|
-
],
|
|
435
|
+
Optional[OutputOpenTelemetryAuthenticationType],
|
|
462
436
|
pydantic.Field(alias="authType"),
|
|
463
437
|
] = OutputOpenTelemetryAuthenticationType.NONE
|
|
464
438
|
r"""OpenTelemetry authentication type"""
|
|
@@ -498,10 +472,7 @@ class OutputOpenTelemetry(BaseModel):
|
|
|
498
472
|
r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
|
|
499
473
|
|
|
500
474
|
failed_request_logging_mode: Annotated[
|
|
501
|
-
|
|
502
|
-
Optional[OutputOpenTelemetryFailedRequestLoggingMode],
|
|
503
|
-
PlainValidator(validate_open_enum(False)),
|
|
504
|
-
],
|
|
475
|
+
Optional[OutputOpenTelemetryFailedRequestLoggingMode],
|
|
505
476
|
pydantic.Field(alias="failedRequestLoggingMode"),
|
|
506
477
|
] = OutputOpenTelemetryFailedRequestLoggingMode.NONE
|
|
507
478
|
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
@@ -520,10 +491,7 @@ class OutputOpenTelemetry(BaseModel):
|
|
|
520
491
|
r"""Disable to close the connection immediately after sending the outgoing request"""
|
|
521
492
|
|
|
522
493
|
on_backpressure: Annotated[
|
|
523
|
-
|
|
524
|
-
Optional[OutputOpenTelemetryBackpressureBehavior],
|
|
525
|
-
PlainValidator(validate_open_enum(False)),
|
|
526
|
-
],
|
|
494
|
+
Optional[OutputOpenTelemetryBackpressureBehavior],
|
|
527
495
|
pydantic.Field(alias="onBackpressure"),
|
|
528
496
|
] = OutputOpenTelemetryBackpressureBehavior.BLOCK
|
|
529
497
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
@@ -639,28 +607,19 @@ class OutputOpenTelemetry(BaseModel):
|
|
|
639
607
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
|
|
640
608
|
|
|
641
609
|
pq_compress: Annotated[
|
|
642
|
-
|
|
643
|
-
Optional[OutputOpenTelemetryPqCompressCompression],
|
|
644
|
-
PlainValidator(validate_open_enum(False)),
|
|
645
|
-
],
|
|
610
|
+
Optional[OutputOpenTelemetryPqCompressCompression],
|
|
646
611
|
pydantic.Field(alias="pqCompress"),
|
|
647
612
|
] = OutputOpenTelemetryPqCompressCompression.NONE
|
|
648
613
|
r"""Codec to use to compress the persisted data"""
|
|
649
614
|
|
|
650
615
|
pq_on_backpressure: Annotated[
|
|
651
|
-
|
|
652
|
-
Optional[OutputOpenTelemetryQueueFullBehavior],
|
|
653
|
-
PlainValidator(validate_open_enum(False)),
|
|
654
|
-
],
|
|
616
|
+
Optional[OutputOpenTelemetryQueueFullBehavior],
|
|
655
617
|
pydantic.Field(alias="pqOnBackpressure"),
|
|
656
618
|
] = OutputOpenTelemetryQueueFullBehavior.BLOCK
|
|
657
619
|
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
658
620
|
|
|
659
621
|
pq_mode: Annotated[
|
|
660
|
-
|
|
661
|
-
Optional[OutputOpenTelemetryMode], PlainValidator(validate_open_enum(False))
|
|
662
|
-
],
|
|
663
|
-
pydantic.Field(alias="pqMode"),
|
|
622
|
+
Optional[OutputOpenTelemetryMode], pydantic.Field(alias="pqMode")
|
|
664
623
|
] = OutputOpenTelemetryMode.ERROR
|
|
665
624
|
r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
|
|
666
625
|
|
|
@@ -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,7 +23,7 @@ class OutputPrometheusExtraHTTPHeader(BaseModel):
|
|
|
26
23
|
name: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class OutputPrometheusFailedRequestLoggingMode(str, Enum
|
|
26
|
+
class OutputPrometheusFailedRequestLoggingMode(str, Enum):
|
|
30
27
|
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
31
28
|
|
|
32
29
|
PAYLOAD = "payload"
|
|
@@ -88,7 +85,7 @@ class OutputPrometheusTimeoutRetrySettings(BaseModel):
|
|
|
88
85
|
r"""The maximum backoff interval, in milliseconds, Cribl Stream should apply. Default (and minimum) is 10,000 ms (10 seconds); maximum is 180,000 ms (180 seconds)."""
|
|
89
86
|
|
|
90
87
|
|
|
91
|
-
class OutputPrometheusBackpressureBehavior(str, Enum
|
|
88
|
+
class OutputPrometheusBackpressureBehavior(str, Enum):
|
|
92
89
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
93
90
|
|
|
94
91
|
BLOCK = "block"
|
|
@@ -96,7 +93,7 @@ class OutputPrometheusBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMe
|
|
|
96
93
|
QUEUE = "queue"
|
|
97
94
|
|
|
98
95
|
|
|
99
|
-
class OutputPrometheusAuthenticationType(str, Enum
|
|
96
|
+
class OutputPrometheusAuthenticationType(str, Enum):
|
|
100
97
|
r"""Remote Write authentication type"""
|
|
101
98
|
|
|
102
99
|
NONE = "none"
|
|
@@ -107,21 +104,21 @@ class OutputPrometheusAuthenticationType(str, Enum, metaclass=utils.OpenEnumMeta
|
|
|
107
104
|
OAUTH = "oauth"
|
|
108
105
|
|
|
109
106
|
|
|
110
|
-
class OutputPrometheusCompression(str, Enum
|
|
107
|
+
class OutputPrometheusCompression(str, Enum):
|
|
111
108
|
r"""Codec to use to compress the persisted data"""
|
|
112
109
|
|
|
113
110
|
NONE = "none"
|
|
114
111
|
GZIP = "gzip"
|
|
115
112
|
|
|
116
113
|
|
|
117
|
-
class OutputPrometheusQueueFullBehavior(str, Enum
|
|
114
|
+
class OutputPrometheusQueueFullBehavior(str, Enum):
|
|
118
115
|
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
119
116
|
|
|
120
117
|
BLOCK = "block"
|
|
121
118
|
DROP = "drop"
|
|
122
119
|
|
|
123
120
|
|
|
124
|
-
class OutputPrometheusMode(str, Enum
|
|
121
|
+
class OutputPrometheusMode(str, Enum):
|
|
125
122
|
r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
|
|
126
123
|
|
|
127
124
|
ERROR = "error"
|
|
@@ -335,10 +332,7 @@ class OutputPrometheus(BaseModel):
|
|
|
335
332
|
r"""Enable round-robin DNS lookup. When a DNS server returns multiple addresses, @{product} will cycle through them in the order returned. For optimal performance, consider enabling this setting for non-load balanced destinations."""
|
|
336
333
|
|
|
337
334
|
failed_request_logging_mode: Annotated[
|
|
338
|
-
|
|
339
|
-
Optional[OutputPrometheusFailedRequestLoggingMode],
|
|
340
|
-
PlainValidator(validate_open_enum(False)),
|
|
341
|
-
],
|
|
335
|
+
Optional[OutputPrometheusFailedRequestLoggingMode],
|
|
342
336
|
pydantic.Field(alias="failedRequestLoggingMode"),
|
|
343
337
|
] = OutputPrometheusFailedRequestLoggingMode.NONE
|
|
344
338
|
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
@@ -365,20 +359,13 @@ class OutputPrometheus(BaseModel):
|
|
|
365
359
|
r"""Honor any Retry-After header that specifies a delay (in seconds) no longer than 180 seconds after the retry request. @{product} limits the delay to 180 seconds, even if the Retry-After header specifies a longer delay. When enabled, takes precedence over user-configured retry options. When disabled, all Retry-After headers are ignored."""
|
|
366
360
|
|
|
367
361
|
on_backpressure: Annotated[
|
|
368
|
-
|
|
369
|
-
Optional[OutputPrometheusBackpressureBehavior],
|
|
370
|
-
PlainValidator(validate_open_enum(False)),
|
|
371
|
-
],
|
|
362
|
+
Optional[OutputPrometheusBackpressureBehavior],
|
|
372
363
|
pydantic.Field(alias="onBackpressure"),
|
|
373
364
|
] = OutputPrometheusBackpressureBehavior.BLOCK
|
|
374
365
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
375
366
|
|
|
376
367
|
auth_type: Annotated[
|
|
377
|
-
|
|
378
|
-
Optional[OutputPrometheusAuthenticationType],
|
|
379
|
-
PlainValidator(validate_open_enum(False)),
|
|
380
|
-
],
|
|
381
|
-
pydantic.Field(alias="authType"),
|
|
368
|
+
Optional[OutputPrometheusAuthenticationType], pydantic.Field(alias="authType")
|
|
382
369
|
] = OutputPrometheusAuthenticationType.NONE
|
|
383
370
|
r"""Remote Write authentication type"""
|
|
384
371
|
|
|
@@ -403,28 +390,18 @@ class OutputPrometheus(BaseModel):
|
|
|
403
390
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
|
|
404
391
|
|
|
405
392
|
pq_compress: Annotated[
|
|
406
|
-
|
|
407
|
-
Optional[OutputPrometheusCompression],
|
|
408
|
-
PlainValidator(validate_open_enum(False)),
|
|
409
|
-
],
|
|
410
|
-
pydantic.Field(alias="pqCompress"),
|
|
393
|
+
Optional[OutputPrometheusCompression], pydantic.Field(alias="pqCompress")
|
|
411
394
|
] = OutputPrometheusCompression.NONE
|
|
412
395
|
r"""Codec to use to compress the persisted data"""
|
|
413
396
|
|
|
414
397
|
pq_on_backpressure: Annotated[
|
|
415
|
-
|
|
416
|
-
Optional[OutputPrometheusQueueFullBehavior],
|
|
417
|
-
PlainValidator(validate_open_enum(False)),
|
|
418
|
-
],
|
|
398
|
+
Optional[OutputPrometheusQueueFullBehavior],
|
|
419
399
|
pydantic.Field(alias="pqOnBackpressure"),
|
|
420
400
|
] = OutputPrometheusQueueFullBehavior.BLOCK
|
|
421
401
|
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
422
402
|
|
|
423
403
|
pq_mode: Annotated[
|
|
424
|
-
|
|
425
|
-
Optional[OutputPrometheusMode], PlainValidator(validate_open_enum(False))
|
|
426
|
-
],
|
|
427
|
-
pydantic.Field(alias="pqMode"),
|
|
404
|
+
Optional[OutputPrometheusMode], pydantic.Field(alias="pqMode")
|
|
428
405
|
] = OutputPrometheusMode.ERROR
|
|
429
406
|
r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
|
|
430
407
|
|
|
@@ -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
|
|
|
@@ -15,19 +12,19 @@ class OutputRingType(str, Enum):
|
|
|
15
12
|
RING = "ring"
|
|
16
13
|
|
|
17
14
|
|
|
18
|
-
class OutputRingDataFormat(str, Enum
|
|
15
|
+
class OutputRingDataFormat(str, Enum):
|
|
19
16
|
r"""Format of the output data."""
|
|
20
17
|
|
|
21
18
|
JSON = "json"
|
|
22
19
|
RAW = "raw"
|
|
23
20
|
|
|
24
21
|
|
|
25
|
-
class OutputRingDataCompressionFormat(str, Enum
|
|
22
|
+
class OutputRingDataCompressionFormat(str, Enum):
|
|
26
23
|
NONE = "none"
|
|
27
24
|
GZIP = "gzip"
|
|
28
25
|
|
|
29
26
|
|
|
30
|
-
class OutputRingBackpressureBehavior(str, Enum
|
|
27
|
+
class OutputRingBackpressureBehavior(str, Enum):
|
|
31
28
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
32
29
|
|
|
33
30
|
BLOCK = "block"
|
|
@@ -83,10 +80,7 @@ class OutputRing(BaseModel):
|
|
|
83
80
|
r"""Tags for filtering and grouping in @{product}"""
|
|
84
81
|
|
|
85
82
|
format_: Annotated[
|
|
86
|
-
|
|
87
|
-
Optional[OutputRingDataFormat], PlainValidator(validate_open_enum(False))
|
|
88
|
-
],
|
|
89
|
-
pydantic.Field(alias="format"),
|
|
83
|
+
Optional[OutputRingDataFormat], pydantic.Field(alias="format")
|
|
90
84
|
] = OutputRingDataFormat.JSON
|
|
91
85
|
r"""Format of the output data."""
|
|
92
86
|
|
|
@@ -101,20 +95,15 @@ class OutputRing(BaseModel):
|
|
|
101
95
|
max_data_time: Annotated[Optional[str], pydantic.Field(alias="maxDataTime")] = "24h"
|
|
102
96
|
r"""Maximum amount of time to retain data (examples: 2h, 4d). When limit is reached, older data will be deleted."""
|
|
103
97
|
|
|
104
|
-
compress:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
] = OutputRingDataCompressionFormat.GZIP
|
|
98
|
+
compress: Optional[OutputRingDataCompressionFormat] = (
|
|
99
|
+
OutputRingDataCompressionFormat.GZIP
|
|
100
|
+
)
|
|
108
101
|
|
|
109
102
|
dest_path: Annotated[Optional[str], pydantic.Field(alias="destPath")] = None
|
|
110
103
|
r"""Path to use to write metrics. Defaults to $CRIBL_HOME/state/<id>"""
|
|
111
104
|
|
|
112
105
|
on_backpressure: Annotated[
|
|
113
|
-
|
|
114
|
-
Optional[OutputRingBackpressureBehavior],
|
|
115
|
-
PlainValidator(validate_open_enum(False)),
|
|
116
|
-
],
|
|
117
|
-
pydantic.Field(alias="onBackpressure"),
|
|
106
|
+
Optional[OutputRingBackpressureBehavior], pydantic.Field(alias="onBackpressure")
|
|
118
107
|
] = OutputRingBackpressureBehavior.BLOCK
|
|
119
108
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
120
109
|
|