cribl-control-plane 0.0.16__py3-none-any.whl → 0.0.18__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 +2 -8
- cribl_control_plane/models/__init__.py +4365 -4124
- cribl_control_plane/models/createinputop.py +1734 -2771
- cribl_control_plane/models/createoutputop.py +2153 -4314
- cribl_control_plane/models/createversioncommitop.py +24 -0
- cribl_control_plane/models/createversionpushop.py +23 -0
- cribl_control_plane/models/createversionrevertop.py +47 -0
- cribl_control_plane/models/createversionsyncop.py +23 -0
- cribl_control_plane/models/createversionundoop.py +37 -0
- cribl_control_plane/models/getversionbranchop.py +23 -0
- cribl_control_plane/models/getversioncountop.py +47 -0
- cribl_control_plane/models/getversioncurrentbranchop.py +23 -0
- cribl_control_plane/models/getversiondiffop.py +63 -0
- cribl_control_plane/models/getversionfilesop.py +48 -0
- cribl_control_plane/models/getversioninfoop.py +24 -0
- cribl_control_plane/models/getversionshowop.py +63 -0
- cribl_control_plane/models/getversionstatusop.py +38 -0
- cribl_control_plane/models/gitcommitparams.py +23 -0
- cribl_control_plane/models/gitcommitsummary.py +68 -0
- cribl_control_plane/models/gitfile.py +20 -0
- cribl_control_plane/models/gitfilesresponse.py +22 -0
- cribl_control_plane/models/gitinfo.py +23 -0
- cribl_control_plane/models/gitrevertparams.py +20 -0
- cribl_control_plane/models/gitrevertresult.py +48 -0
- cribl_control_plane/models/gitstatusresult.py +73 -0
- cribl_control_plane/models/healthstatus.py +4 -7
- cribl_control_plane/models/inputappscope.py +16 -36
- cribl_control_plane/models/inputazureblob.py +8 -19
- cribl_control_plane/models/inputcollection.py +6 -15
- cribl_control_plane/models/inputconfluentcloud.py +20 -45
- cribl_control_plane/models/inputcribl.py +6 -13
- cribl_control_plane/models/inputcriblhttp.py +10 -27
- cribl_control_plane/models/inputcribllakehttp.py +12 -26
- cribl_control_plane/models/inputcriblmetrics.py +6 -14
- cribl_control_plane/models/inputcribltcp.py +10 -27
- cribl_control_plane/models/inputcrowdstrike.py +12 -28
- cribl_control_plane/models/inputdatadogagent.py +10 -28
- cribl_control_plane/models/inputdatagen.py +6 -13
- cribl_control_plane/models/inputedgeprometheus.py +31 -64
- cribl_control_plane/models/inputelastic.py +16 -44
- cribl_control_plane/models/inputeventhub.py +8 -19
- cribl_control_plane/models/inputexec.py +8 -16
- cribl_control_plane/models/inputfile.py +8 -17
- cribl_control_plane/models/inputfirehose.py +10 -27
- cribl_control_plane/models/inputgooglepubsub.py +8 -23
- cribl_control_plane/models/inputgrafana_union.py +35 -81
- cribl_control_plane/models/inputhttp.py +10 -27
- cribl_control_plane/models/inputhttpraw.py +10 -27
- cribl_control_plane/models/inputjournalfiles.py +6 -16
- cribl_control_plane/models/inputkafka.py +16 -45
- cribl_control_plane/models/inputkinesis.py +16 -42
- cribl_control_plane/models/inputkubeevents.py +6 -13
- cribl_control_plane/models/inputkubelogs.py +10 -18
- cribl_control_plane/models/inputkubemetrics.py +10 -18
- cribl_control_plane/models/inputloki.py +12 -33
- cribl_control_plane/models/inputmetrics.py +10 -25
- cribl_control_plane/models/inputmodeldriventelemetry.py +12 -32
- cribl_control_plane/models/inputmsk.py +18 -52
- cribl_control_plane/models/inputnetflow.py +6 -15
- cribl_control_plane/models/inputoffice365mgmt.py +16 -37
- cribl_control_plane/models/inputoffice365msgtrace.py +18 -39
- cribl_control_plane/models/inputoffice365service.py +18 -39
- cribl_control_plane/models/inputopentelemetry.py +18 -42
- cribl_control_plane/models/inputprometheus.py +20 -54
- cribl_control_plane/models/inputprometheusrw.py +12 -34
- cribl_control_plane/models/inputrawudp.py +6 -15
- cribl_control_plane/models/inputs3.py +10 -23
- cribl_control_plane/models/inputs3inventory.py +12 -28
- cribl_control_plane/models/inputsecuritylake.py +12 -29
- cribl_control_plane/models/inputsnmp.py +8 -20
- cribl_control_plane/models/inputsplunk.py +14 -37
- cribl_control_plane/models/inputsplunkhec.py +12 -33
- cribl_control_plane/models/inputsplunksearch.py +16 -37
- cribl_control_plane/models/inputsqs.py +12 -31
- cribl_control_plane/models/inputsyslog_union.py +29 -53
- cribl_control_plane/models/inputsystemmetrics.py +26 -50
- cribl_control_plane/models/inputsystemstate.py +10 -18
- cribl_control_plane/models/inputtcp.py +12 -33
- cribl_control_plane/models/inputtcpjson.py +12 -33
- cribl_control_plane/models/inputwef.py +20 -45
- cribl_control_plane/models/inputwindowsmetrics.py +26 -46
- cribl_control_plane/models/inputwineventlogs.py +12 -22
- cribl_control_plane/models/inputwiz.py +10 -25
- cribl_control_plane/models/inputzscalerhec.py +12 -33
- cribl_control_plane/models/output.py +3 -6
- cribl_control_plane/models/outputazureblob.py +20 -52
- cribl_control_plane/models/outputazuredataexplorer.py +30 -77
- cribl_control_plane/models/outputazureeventhub.py +20 -44
- cribl_control_plane/models/outputazurelogs.py +14 -37
- cribl_control_plane/models/outputclickhouse.py +22 -59
- cribl_control_plane/models/outputcloudwatch.py +12 -33
- cribl_control_plane/models/outputconfluentcloud.py +32 -75
- cribl_control_plane/models/outputcriblhttp.py +18 -46
- cribl_control_plane/models/outputcribllake.py +18 -48
- cribl_control_plane/models/outputcribltcp.py +20 -47
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +16 -54
- cribl_control_plane/models/outputdatadog.py +22 -50
- cribl_control_plane/models/outputdataset.py +20 -48
- cribl_control_plane/models/outputdefault.py +2 -5
- cribl_control_plane/models/outputdevnull.py +2 -5
- cribl_control_plane/models/outputdiskspool.py +4 -9
- cribl_control_plane/models/outputdls3.py +26 -72
- cribl_control_plane/models/outputdynatracehttp.py +22 -57
- cribl_control_plane/models/outputdynatraceotlp.py +24 -59
- cribl_control_plane/models/outputelastic.py +20 -45
- cribl_control_plane/models/outputelasticcloud.py +14 -40
- cribl_control_plane/models/outputexabeam.py +12 -33
- cribl_control_plane/models/outputfilesystem.py +16 -41
- cribl_control_plane/models/outputgooglechronicle.py +18 -54
- cribl_control_plane/models/outputgooglecloudlogging.py +16 -46
- cribl_control_plane/models/outputgooglecloudstorage.py +26 -71
- cribl_control_plane/models/outputgooglepubsub.py +16 -39
- cribl_control_plane/models/{outputgrafanacloud_union.py → outputgrafanacloud.py} +49 -110
- cribl_control_plane/models/outputgraphite.py +16 -35
- cribl_control_plane/models/outputhoneycomb.py +14 -37
- cribl_control_plane/models/outputhumiohec.py +18 -47
- cribl_control_plane/models/outputinfluxdb.py +18 -44
- cribl_control_plane/models/outputkafka.py +28 -73
- cribl_control_plane/models/outputkinesis.py +18 -44
- cribl_control_plane/models/outputloki.py +18 -43
- cribl_control_plane/models/outputminio.py +26 -69
- cribl_control_plane/models/outputmsk.py +30 -81
- cribl_control_plane/models/outputnetflow.py +2 -5
- cribl_control_plane/models/outputnewrelic.py +20 -45
- cribl_control_plane/models/outputnewrelicevents.py +16 -45
- cribl_control_plane/models/outputopentelemetry.py +28 -69
- cribl_control_plane/models/outputprometheus.py +14 -37
- cribl_control_plane/models/outputring.py +10 -21
- cribl_control_plane/models/outputrouter.py +2 -5
- cribl_control_plane/models/outputs3.py +28 -72
- cribl_control_plane/models/outputsecuritylake.py +20 -56
- cribl_control_plane/models/outputsentinel.py +20 -49
- cribl_control_plane/models/outputsentineloneaisiem.py +20 -54
- cribl_control_plane/models/outputservicenow.py +26 -64
- cribl_control_plane/models/outputsignalfx.py +16 -39
- cribl_control_plane/models/outputsnmp.py +2 -5
- cribl_control_plane/models/outputsns.py +16 -40
- cribl_control_plane/models/outputsplunk.py +26 -64
- cribl_control_plane/models/outputsplunkhec.py +14 -37
- cribl_control_plane/models/outputsplunklb.py +36 -83
- cribl_control_plane/models/outputsqs.py +18 -45
- cribl_control_plane/models/outputstatsd.py +16 -34
- cribl_control_plane/models/outputstatsdext.py +14 -33
- cribl_control_plane/models/outputsumologic.py +14 -37
- cribl_control_plane/models/outputsyslog.py +26 -60
- cribl_control_plane/models/outputtcpjson.py +22 -54
- cribl_control_plane/models/outputwavefront.py +14 -37
- cribl_control_plane/models/outputwebhook.py +24 -60
- cribl_control_plane/models/outputxsiam.py +16 -37
- cribl_control_plane/sdk.py +4 -0
- cribl_control_plane/versioning.py +2309 -0
- {cribl_control_plane-0.0.16.dist-info → cribl_control_plane-0.0.18.dist-info}/METADATA +18 -2
- cribl_control_plane-0.0.18.dist-info/RECORD +237 -0
- cribl_control_plane-0.0.16.dist-info/RECORD +0 -215
- {cribl_control_plane-0.0.16.dist-info → cribl_control_plane-0.0.18.dist-info}/WHEEL +0 -0
|
@@ -1,17 +1,14 @@
|
|
|
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
|
|
|
13
10
|
|
|
14
|
-
class InputKubeLogsType(str, Enum
|
|
11
|
+
class InputKubeLogsType(str, Enum):
|
|
15
12
|
KUBE_LOGS = "kube_logs"
|
|
16
13
|
|
|
17
14
|
|
|
@@ -26,14 +23,14 @@ class InputKubeLogsConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputKubeLogsMode(str, Enum
|
|
26
|
+
class InputKubeLogsMode(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 InputKubeLogsPqCompression(str, Enum
|
|
33
|
+
class InputKubeLogsPqCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -58,9 +55,7 @@ class InputKubeLogsPqTypedDict(TypedDict):
|
|
|
58
55
|
|
|
59
56
|
|
|
60
57
|
class InputKubeLogsPq(BaseModel):
|
|
61
|
-
mode:
|
|
62
|
-
Optional[InputKubeLogsMode], PlainValidator(validate_open_enum(False))
|
|
63
|
-
] = InputKubeLogsMode.ALWAYS
|
|
58
|
+
mode: Optional[InputKubeLogsMode] = InputKubeLogsMode.ALWAYS
|
|
64
59
|
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."""
|
|
65
60
|
|
|
66
61
|
max_buffer_size: Annotated[
|
|
@@ -84,9 +79,7 @@ class InputKubeLogsPq(BaseModel):
|
|
|
84
79
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
85
80
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
86
81
|
|
|
87
|
-
compress:
|
|
88
|
-
Optional[InputKubeLogsPqCompression], PlainValidator(validate_open_enum(False))
|
|
89
|
-
] = InputKubeLogsPqCompression.NONE
|
|
82
|
+
compress: Optional[InputKubeLogsPqCompression] = InputKubeLogsPqCompression.NONE
|
|
90
83
|
r"""Codec to use to compress the persisted data"""
|
|
91
84
|
|
|
92
85
|
|
|
@@ -118,7 +111,7 @@ class InputKubeLogsMetadatum(BaseModel):
|
|
|
118
111
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
119
112
|
|
|
120
113
|
|
|
121
|
-
class InputKubeLogsPersistenceCompression(str, Enum
|
|
114
|
+
class InputKubeLogsPersistenceCompression(str, Enum):
|
|
122
115
|
r"""Data compression format. Default is gzip."""
|
|
123
116
|
|
|
124
117
|
NONE = "none"
|
|
@@ -151,10 +144,9 @@ class InputKubeLogsDiskSpooling(BaseModel):
|
|
|
151
144
|
max_data_time: Annotated[Optional[str], pydantic.Field(alias="maxDataTime")] = "24h"
|
|
152
145
|
r"""Maximum amount of time to retain data before older buckets are deleted. Examples: 2h, 4d. Default is 24h."""
|
|
153
146
|
|
|
154
|
-
compress:
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
] = InputKubeLogsPersistenceCompression.GZIP
|
|
147
|
+
compress: Optional[InputKubeLogsPersistenceCompression] = (
|
|
148
|
+
InputKubeLogsPersistenceCompression.GZIP
|
|
149
|
+
)
|
|
158
150
|
r"""Data compression format. Default is gzip."""
|
|
159
151
|
|
|
160
152
|
|
|
@@ -198,7 +190,7 @@ class InputKubeLogs(BaseModel):
|
|
|
198
190
|
id: str
|
|
199
191
|
r"""Unique ID for this input"""
|
|
200
192
|
|
|
201
|
-
type:
|
|
193
|
+
type: InputKubeLogsType
|
|
202
194
|
|
|
203
195
|
disabled: Optional[bool] = False
|
|
204
196
|
|
|
@@ -1,17 +1,14 @@
|
|
|
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
|
|
|
13
10
|
|
|
14
|
-
class InputKubeMetricsType(str, Enum
|
|
11
|
+
class InputKubeMetricsType(str, Enum):
|
|
15
12
|
KUBE_METRICS = "kube_metrics"
|
|
16
13
|
|
|
17
14
|
|
|
@@ -26,14 +23,14 @@ class InputKubeMetricsConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputKubeMetricsMode(str, Enum
|
|
26
|
+
class InputKubeMetricsMode(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 InputKubeMetricsCompression(str, Enum
|
|
33
|
+
class InputKubeMetricsCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -58,9 +55,7 @@ class InputKubeMetricsPqTypedDict(TypedDict):
|
|
|
58
55
|
|
|
59
56
|
|
|
60
57
|
class InputKubeMetricsPq(BaseModel):
|
|
61
|
-
mode:
|
|
62
|
-
Optional[InputKubeMetricsMode], PlainValidator(validate_open_enum(False))
|
|
63
|
-
] = InputKubeMetricsMode.ALWAYS
|
|
58
|
+
mode: Optional[InputKubeMetricsMode] = InputKubeMetricsMode.ALWAYS
|
|
64
59
|
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."""
|
|
65
60
|
|
|
66
61
|
max_buffer_size: Annotated[
|
|
@@ -84,9 +79,7 @@ class InputKubeMetricsPq(BaseModel):
|
|
|
84
79
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
85
80
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
86
81
|
|
|
87
|
-
compress:
|
|
88
|
-
Optional[InputKubeMetricsCompression], PlainValidator(validate_open_enum(False))
|
|
89
|
-
] = InputKubeMetricsCompression.NONE
|
|
82
|
+
compress: Optional[InputKubeMetricsCompression] = InputKubeMetricsCompression.NONE
|
|
90
83
|
r"""Codec to use to compress the persisted data"""
|
|
91
84
|
|
|
92
85
|
|
|
@@ -118,7 +111,7 @@ class InputKubeMetricsMetadatum(BaseModel):
|
|
|
118
111
|
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
119
112
|
|
|
120
113
|
|
|
121
|
-
class InputKubeMetricsDataCompressionFormat(str, Enum
|
|
114
|
+
class InputKubeMetricsDataCompressionFormat(str, Enum):
|
|
122
115
|
NONE = "none"
|
|
123
116
|
GZIP = "gzip"
|
|
124
117
|
|
|
@@ -150,10 +143,9 @@ class InputKubeMetricsPersistence(BaseModel):
|
|
|
150
143
|
max_data_time: Annotated[Optional[str], pydantic.Field(alias="maxDataTime")] = "24h"
|
|
151
144
|
r"""Maximum amount of time to retain data (examples: 2h, 4d). When limit is reached, older data will be deleted."""
|
|
152
145
|
|
|
153
|
-
compress:
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
] = InputKubeMetricsDataCompressionFormat.GZIP
|
|
146
|
+
compress: Optional[InputKubeMetricsDataCompressionFormat] = (
|
|
147
|
+
InputKubeMetricsDataCompressionFormat.GZIP
|
|
148
|
+
)
|
|
157
149
|
|
|
158
150
|
dest_path: Annotated[Optional[str], pydantic.Field(alias="destPath")] = (
|
|
159
151
|
"$CRIBL_HOME/state/kube_metrics"
|
|
@@ -193,7 +185,7 @@ class InputKubeMetrics(BaseModel):
|
|
|
193
185
|
id: str
|
|
194
186
|
r"""Unique ID for this input"""
|
|
195
187
|
|
|
196
|
-
type:
|
|
188
|
+
type: InputKubeMetricsType
|
|
197
189
|
|
|
198
190
|
disabled: Optional[bool] = False
|
|
199
191
|
|
|
@@ -1,17 +1,14 @@
|
|
|
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
|
|
|
13
10
|
|
|
14
|
-
class InputLokiType(str, Enum
|
|
11
|
+
class InputLokiType(str, Enum):
|
|
15
12
|
LOKI = "loki"
|
|
16
13
|
|
|
17
14
|
|
|
@@ -26,14 +23,14 @@ class InputLokiConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputLokiMode(str, Enum
|
|
26
|
+
class InputLokiMode(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 InputLokiCompression(str, Enum
|
|
33
|
+
class InputLokiCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -58,9 +55,7 @@ class InputLokiPqTypedDict(TypedDict):
|
|
|
58
55
|
|
|
59
56
|
|
|
60
57
|
class InputLokiPq(BaseModel):
|
|
61
|
-
mode:
|
|
62
|
-
Optional[InputLokiMode], PlainValidator(validate_open_enum(False))
|
|
63
|
-
] = InputLokiMode.ALWAYS
|
|
58
|
+
mode: Optional[InputLokiMode] = InputLokiMode.ALWAYS
|
|
64
59
|
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."""
|
|
65
60
|
|
|
66
61
|
max_buffer_size: Annotated[
|
|
@@ -84,20 +79,18 @@ class InputLokiPq(BaseModel):
|
|
|
84
79
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
85
80
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
86
81
|
|
|
87
|
-
compress:
|
|
88
|
-
Optional[InputLokiCompression], PlainValidator(validate_open_enum(False))
|
|
89
|
-
] = InputLokiCompression.NONE
|
|
82
|
+
compress: Optional[InputLokiCompression] = InputLokiCompression.NONE
|
|
90
83
|
r"""Codec to use to compress the persisted data"""
|
|
91
84
|
|
|
92
85
|
|
|
93
|
-
class InputLokiMinimumTLSVersion(str, Enum
|
|
86
|
+
class InputLokiMinimumTLSVersion(str, Enum):
|
|
94
87
|
TL_SV1 = "TLSv1"
|
|
95
88
|
TL_SV1_1 = "TLSv1.1"
|
|
96
89
|
TL_SV1_2 = "TLSv1.2"
|
|
97
90
|
TL_SV1_3 = "TLSv1.3"
|
|
98
91
|
|
|
99
92
|
|
|
100
|
-
class InputLokiMaximumTLSVersion(str, Enum
|
|
93
|
+
class InputLokiMaximumTLSVersion(str, Enum):
|
|
101
94
|
TL_SV1 = "TLSv1"
|
|
102
95
|
TL_SV1_1 = "TLSv1.1"
|
|
103
96
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -156,23 +149,15 @@ class InputLokiTLSSettingsServerSide(BaseModel):
|
|
|
156
149
|
] = None
|
|
157
150
|
|
|
158
151
|
min_version: Annotated[
|
|
159
|
-
|
|
160
|
-
Optional[InputLokiMinimumTLSVersion],
|
|
161
|
-
PlainValidator(validate_open_enum(False)),
|
|
162
|
-
],
|
|
163
|
-
pydantic.Field(alias="minVersion"),
|
|
152
|
+
Optional[InputLokiMinimumTLSVersion], pydantic.Field(alias="minVersion")
|
|
164
153
|
] = None
|
|
165
154
|
|
|
166
155
|
max_version: Annotated[
|
|
167
|
-
|
|
168
|
-
Optional[InputLokiMaximumTLSVersion],
|
|
169
|
-
PlainValidator(validate_open_enum(False)),
|
|
170
|
-
],
|
|
171
|
-
pydantic.Field(alias="maxVersion"),
|
|
156
|
+
Optional[InputLokiMaximumTLSVersion], pydantic.Field(alias="maxVersion")
|
|
172
157
|
] = None
|
|
173
158
|
|
|
174
159
|
|
|
175
|
-
class InputLokiAuthenticationType(str, Enum
|
|
160
|
+
class InputLokiAuthenticationType(str, Enum):
|
|
176
161
|
r"""Loki logs authentication type"""
|
|
177
162
|
|
|
178
163
|
NONE = "none"
|
|
@@ -311,9 +296,7 @@ class InputLoki(BaseModel):
|
|
|
311
296
|
id: Optional[str] = None
|
|
312
297
|
r"""Unique ID for this input"""
|
|
313
298
|
|
|
314
|
-
type:
|
|
315
|
-
Optional[InputLokiType], PlainValidator(validate_open_enum(False))
|
|
316
|
-
] = None
|
|
299
|
+
type: Optional[InputLokiType] = None
|
|
317
300
|
|
|
318
301
|
disabled: Optional[bool] = False
|
|
319
302
|
|
|
@@ -405,11 +388,7 @@ class InputLoki(BaseModel):
|
|
|
405
388
|
r"""Absolute path on which to listen for Loki logs requests. Defaults to /loki/api/v1/push, which will (in this example) expand as: 'http://<your‑upstream‑URL>:<your‑port>/loki/api/v1/push'."""
|
|
406
389
|
|
|
407
390
|
auth_type: Annotated[
|
|
408
|
-
|
|
409
|
-
Optional[InputLokiAuthenticationType],
|
|
410
|
-
PlainValidator(validate_open_enum(False)),
|
|
411
|
-
],
|
|
412
|
-
pydantic.Field(alias="authType"),
|
|
391
|
+
Optional[InputLokiAuthenticationType], pydantic.Field(alias="authType")
|
|
413
392
|
] = InputLokiAuthenticationType.NONE
|
|
414
393
|
r"""Loki logs authentication type"""
|
|
415
394
|
|
|
@@ -1,17 +1,14 @@
|
|
|
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
|
|
|
13
10
|
|
|
14
|
-
class InputMetricsType(str, Enum
|
|
11
|
+
class InputMetricsType(str, Enum):
|
|
15
12
|
METRICS = "metrics"
|
|
16
13
|
|
|
17
14
|
|
|
@@ -26,14 +23,14 @@ class InputMetricsConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputMetricsMode(str, Enum
|
|
26
|
+
class InputMetricsMode(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 InputMetricsCompression(str, Enum
|
|
33
|
+
class InputMetricsCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -58,9 +55,7 @@ class InputMetricsPqTypedDict(TypedDict):
|
|
|
58
55
|
|
|
59
56
|
|
|
60
57
|
class InputMetricsPq(BaseModel):
|
|
61
|
-
mode:
|
|
62
|
-
Optional[InputMetricsMode], PlainValidator(validate_open_enum(False))
|
|
63
|
-
] = InputMetricsMode.ALWAYS
|
|
58
|
+
mode: Optional[InputMetricsMode] = InputMetricsMode.ALWAYS
|
|
64
59
|
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."""
|
|
65
60
|
|
|
66
61
|
max_buffer_size: Annotated[
|
|
@@ -84,20 +79,18 @@ class InputMetricsPq(BaseModel):
|
|
|
84
79
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
85
80
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
86
81
|
|
|
87
|
-
compress:
|
|
88
|
-
Optional[InputMetricsCompression], PlainValidator(validate_open_enum(False))
|
|
89
|
-
] = InputMetricsCompression.NONE
|
|
82
|
+
compress: Optional[InputMetricsCompression] = InputMetricsCompression.NONE
|
|
90
83
|
r"""Codec to use to compress the persisted data"""
|
|
91
84
|
|
|
92
85
|
|
|
93
|
-
class InputMetricsMinimumTLSVersion(str, Enum
|
|
86
|
+
class InputMetricsMinimumTLSVersion(str, Enum):
|
|
94
87
|
TL_SV1 = "TLSv1"
|
|
95
88
|
TL_SV1_1 = "TLSv1.1"
|
|
96
89
|
TL_SV1_2 = "TLSv1.2"
|
|
97
90
|
TL_SV1_3 = "TLSv1.3"
|
|
98
91
|
|
|
99
92
|
|
|
100
|
-
class InputMetricsMaximumTLSVersion(str, Enum
|
|
93
|
+
class InputMetricsMaximumTLSVersion(str, Enum):
|
|
101
94
|
TL_SV1 = "TLSv1"
|
|
102
95
|
TL_SV1_1 = "TLSv1.1"
|
|
103
96
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -156,19 +149,11 @@ class InputMetricsTLSSettingsServerSide(BaseModel):
|
|
|
156
149
|
] = None
|
|
157
150
|
|
|
158
151
|
min_version: Annotated[
|
|
159
|
-
|
|
160
|
-
Optional[InputMetricsMinimumTLSVersion],
|
|
161
|
-
PlainValidator(validate_open_enum(False)),
|
|
162
|
-
],
|
|
163
|
-
pydantic.Field(alias="minVersion"),
|
|
152
|
+
Optional[InputMetricsMinimumTLSVersion], pydantic.Field(alias="minVersion")
|
|
164
153
|
] = None
|
|
165
154
|
|
|
166
155
|
max_version: Annotated[
|
|
167
|
-
|
|
168
|
-
Optional[InputMetricsMaximumTLSVersion],
|
|
169
|
-
PlainValidator(validate_open_enum(False)),
|
|
170
|
-
],
|
|
171
|
-
pydantic.Field(alias="maxVersion"),
|
|
156
|
+
Optional[InputMetricsMaximumTLSVersion], pydantic.Field(alias="maxVersion")
|
|
172
157
|
] = None
|
|
173
158
|
|
|
174
159
|
|
|
@@ -224,7 +209,7 @@ class InputMetricsTypedDict(TypedDict):
|
|
|
224
209
|
|
|
225
210
|
|
|
226
211
|
class InputMetrics(BaseModel):
|
|
227
|
-
type:
|
|
212
|
+
type: InputMetricsType
|
|
228
213
|
|
|
229
214
|
id: Optional[str] = None
|
|
230
215
|
r"""Unique ID for this input"""
|
|
@@ -1,17 +1,14 @@
|
|
|
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
|
|
|
13
10
|
|
|
14
|
-
class InputModelDrivenTelemetryType(str, Enum
|
|
11
|
+
class InputModelDrivenTelemetryType(str, Enum):
|
|
15
12
|
MODEL_DRIVEN_TELEMETRY = "model_driven_telemetry"
|
|
16
13
|
|
|
17
14
|
|
|
@@ -26,14 +23,14 @@ class InputModelDrivenTelemetryConnection(BaseModel):
|
|
|
26
23
|
pipeline: Optional[str] = None
|
|
27
24
|
|
|
28
25
|
|
|
29
|
-
class InputModelDrivenTelemetryMode(str, Enum
|
|
26
|
+
class InputModelDrivenTelemetryMode(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 InputModelDrivenTelemetryCompression(str, Enum
|
|
33
|
+
class InputModelDrivenTelemetryCompression(str, Enum):
|
|
37
34
|
r"""Codec to use to compress the persisted data"""
|
|
38
35
|
|
|
39
36
|
NONE = "none"
|
|
@@ -58,10 +55,7 @@ class InputModelDrivenTelemetryPqTypedDict(TypedDict):
|
|
|
58
55
|
|
|
59
56
|
|
|
60
57
|
class InputModelDrivenTelemetryPq(BaseModel):
|
|
61
|
-
mode:
|
|
62
|
-
Optional[InputModelDrivenTelemetryMode],
|
|
63
|
-
PlainValidator(validate_open_enum(False)),
|
|
64
|
-
] = InputModelDrivenTelemetryMode.ALWAYS
|
|
58
|
+
mode: Optional[InputModelDrivenTelemetryMode] = InputModelDrivenTelemetryMode.ALWAYS
|
|
65
59
|
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."""
|
|
66
60
|
|
|
67
61
|
max_buffer_size: Annotated[
|
|
@@ -85,25 +79,20 @@ class InputModelDrivenTelemetryPq(BaseModel):
|
|
|
85
79
|
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
86
80
|
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
87
81
|
|
|
88
|
-
compress:
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
] = InputModelDrivenTelemetryCompression.NONE
|
|
82
|
+
compress: Optional[InputModelDrivenTelemetryCompression] = (
|
|
83
|
+
InputModelDrivenTelemetryCompression.NONE
|
|
84
|
+
)
|
|
92
85
|
r"""Codec to use to compress the persisted data"""
|
|
93
86
|
|
|
94
87
|
|
|
95
|
-
class InputModelDrivenTelemetryMinimumTLSVersion(
|
|
96
|
-
str, Enum, metaclass=utils.OpenEnumMeta
|
|
97
|
-
):
|
|
88
|
+
class InputModelDrivenTelemetryMinimumTLSVersion(str, Enum):
|
|
98
89
|
TL_SV1 = "TLSv1"
|
|
99
90
|
TL_SV1_1 = "TLSv1.1"
|
|
100
91
|
TL_SV1_2 = "TLSv1.2"
|
|
101
92
|
TL_SV1_3 = "TLSv1.3"
|
|
102
93
|
|
|
103
94
|
|
|
104
|
-
class InputModelDrivenTelemetryMaximumTLSVersion(
|
|
105
|
-
str, Enum, metaclass=utils.OpenEnumMeta
|
|
106
|
-
):
|
|
95
|
+
class InputModelDrivenTelemetryMaximumTLSVersion(str, Enum):
|
|
107
96
|
TL_SV1 = "TLSv1"
|
|
108
97
|
TL_SV1_1 = "TLSv1.1"
|
|
109
98
|
TL_SV1_2 = "TLSv1.2"
|
|
@@ -157,18 +146,12 @@ class InputModelDrivenTelemetryTLSSettingsServerSide(BaseModel):
|
|
|
157
146
|
] = None
|
|
158
147
|
|
|
159
148
|
min_version: Annotated[
|
|
160
|
-
|
|
161
|
-
Optional[InputModelDrivenTelemetryMinimumTLSVersion],
|
|
162
|
-
PlainValidator(validate_open_enum(False)),
|
|
163
|
-
],
|
|
149
|
+
Optional[InputModelDrivenTelemetryMinimumTLSVersion],
|
|
164
150
|
pydantic.Field(alias="minVersion"),
|
|
165
151
|
] = None
|
|
166
152
|
|
|
167
153
|
max_version: Annotated[
|
|
168
|
-
|
|
169
|
-
Optional[InputModelDrivenTelemetryMaximumTLSVersion],
|
|
170
|
-
PlainValidator(validate_open_enum(False)),
|
|
171
|
-
],
|
|
154
|
+
Optional[InputModelDrivenTelemetryMaximumTLSVersion],
|
|
172
155
|
pydantic.Field(alias="maxVersion"),
|
|
173
156
|
] = None
|
|
174
157
|
|
|
@@ -222,10 +205,7 @@ class InputModelDrivenTelemetry(BaseModel):
|
|
|
222
205
|
id: Optional[str] = None
|
|
223
206
|
r"""Unique ID for this input"""
|
|
224
207
|
|
|
225
|
-
type:
|
|
226
|
-
Optional[InputModelDrivenTelemetryType],
|
|
227
|
-
PlainValidator(validate_open_enum(False)),
|
|
228
|
-
] = None
|
|
208
|
+
type: Optional[InputModelDrivenTelemetryType] = None
|
|
229
209
|
|
|
230
210
|
disabled: Optional[bool] = False
|
|
231
211
|
|