cribl-control-plane 0.4.0b23__py3-none-any.whl → 0.5.0b3__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.
- cribl_control_plane/_version.py +3 -3
- cribl_control_plane/collectors_sdk.py +993 -0
- cribl_control_plane/models/__init__.py +2161 -734
- cribl_control_plane/models/configgroup.py +3 -0
- cribl_control_plane/models/countedsavedjob.py +20 -0
- cribl_control_plane/models/createsavedjobop.py +30 -0
- cribl_control_plane/models/deletesavedjobbyidop.py +42 -0
- cribl_control_plane/models/functionaggregatemetrics.py +7 -144
- cribl_control_plane/models/functionaggregation.py +7 -110
- cribl_control_plane/models/functionautotimestamp.py +7 -111
- cribl_control_plane/models/functioncef.py +6 -51
- cribl_control_plane/models/functionchain.py +6 -12
- cribl_control_plane/models/functionclone.py +7 -13
- cribl_control_plane/models/functioncode.py +8 -35
- cribl_control_plane/models/functioncomment.py +6 -12
- cribl_control_plane/models/functionconfschemaaggregatemetrics.py +153 -0
- cribl_control_plane/models/functionconfschemaaggregation.py +114 -0
- cribl_control_plane/models/functionconfschemaautotimestamp.py +116 -0
- cribl_control_plane/models/functionconfschemacef.py +83 -0
- cribl_control_plane/models/functionconfschemachain.py +16 -0
- cribl_control_plane/models/functionconfschemaclone.py +16 -0
- cribl_control_plane/models/functionconfschemacode.py +38 -0
- cribl_control_plane/models/functionconfschemacomment.py +16 -0
- cribl_control_plane/models/functionconfschemadistinct.py +41 -0
- cribl_control_plane/models/functionconfschemadnslookup.py +193 -0
- cribl_control_plane/models/functionconfschemadrop.py +13 -0
- cribl_control_plane/models/functionconfschemadropdimensions.py +31 -0
- cribl_control_plane/models/functionconfschemadynamicsampling.py +67 -0
- cribl_control_plane/models/functionconfschemaeval.py +44 -0
- cribl_control_plane/models/functionconfschemaeventbreaker.py +51 -0
- cribl_control_plane/models/functionconfschemaeventstats.py +34 -0
- cribl_control_plane/models/functionconfschemaexternaldata.py +13 -0
- cribl_control_plane/models/functionconfschemaflatten.py +31 -0
- cribl_control_plane/models/functionconfschemafoldkeys.py +31 -0
- cribl_control_plane/models/functionconfschemagenstats.py +14 -0
- cribl_control_plane/models/functionconfschemageoip.py +66 -0
- cribl_control_plane/models/functionconfschemagrok.py +38 -0
- cribl_control_plane/models/functionconfschemahandlebar.py +56 -0
- cribl_control_plane/models/functionconfschemajoin.py +55 -0
- cribl_control_plane/models/functionconfschemajsonunroll.py +21 -0
- cribl_control_plane/models/functionconfschemalakeexport.py +44 -0
- cribl_control_plane/models/functionconfschemalimit.py +16 -0
- cribl_control_plane/models/functionconfschemalocalsearchdatatypeparser.py +17 -0
- cribl_control_plane/models/functionconfschemalocalsearchrulesetrunner.py +40 -0
- cribl_control_plane/models/functionconfschemalookup.py +92 -0
- cribl_control_plane/models/functionconfschemamask.py +63 -0
- cribl_control_plane/models/functionconfschemamvexpand.py +76 -0
- cribl_control_plane/models/functionconfschemamvpull.py +45 -0
- cribl_control_plane/models/functionconfschemanotificationpolicies.py +129 -0
- cribl_control_plane/models/functionconfschemanotifications.py +26 -0
- cribl_control_plane/models/functionconfschemanotify.py +149 -0
- cribl_control_plane/models/functionconfschemanumerify.py +63 -0
- cribl_control_plane/models/functionconfschemaotlplogs.py +24 -0
- cribl_control_plane/models/functionconfschemaotlpmetrics.py +61 -0
- cribl_control_plane/models/functionconfschemaotlptraces.py +54 -0
- cribl_control_plane/models/functionconfschemapack.py +24 -0
- cribl_control_plane/models/functionconfschemapivot.py +31 -0
- cribl_control_plane/models/functionconfschemapublishmetrics.py +98 -0
- cribl_control_plane/models/functionconfschemaredis.py +121 -0
- cribl_control_plane/models/functionconfschemaregexextract.py +55 -0
- cribl_control_plane/models/functionconfschemaregexfilter.py +38 -0
- cribl_control_plane/models/functionconfschemarename.py +49 -0
- cribl_control_plane/models/functionconfschemarollupmetrics.py +57 -0
- cribl_control_plane/models/functionconfschemasampling.py +32 -0
- cribl_control_plane/models/functionconfschemasend.py +84 -0
- cribl_control_plane/models/functionconfschemasensitivedatascanner.py +75 -0
- cribl_control_plane/models/functionconfschemaserde.py +105 -0
- cribl_control_plane/models/functionconfschemaserialize.py +78 -0
- cribl_control_plane/models/functionconfschemasidlookup.py +34 -0
- cribl_control_plane/models/functionconfschemasnmptrapserialize.py +92 -0
- cribl_control_plane/models/functionconfschemasort.py +41 -0
- cribl_control_plane/models/functionconfschemastore.py +75 -0
- cribl_control_plane/models/functionconfschemasuppress.py +57 -0
- cribl_control_plane/models/functionconfschematee.py +32 -0
- cribl_control_plane/models/functionconfschematrimtimestamp.py +16 -0
- cribl_control_plane/models/functionconfschemaunion.py +22 -0
- cribl_control_plane/models/functionconfschemaunroll.py +22 -0
- cribl_control_plane/models/functionconfschemawindow.py +40 -0
- cribl_control_plane/models/functionconfschemaxmlunroll.py +34 -0
- cribl_control_plane/models/functiondistinct.py +7 -37
- cribl_control_plane/models/functiondnslookup.py +7 -188
- cribl_control_plane/models/functiondrop.py +8 -12
- cribl_control_plane/models/functiondropdimensions.py +7 -25
- cribl_control_plane/models/functiondynamicsampling.py +6 -58
- cribl_control_plane/models/functioneval.py +9 -43
- cribl_control_plane/models/functioneventbreaker.py +6 -40
- cribl_control_plane/models/functioneventstats.py +7 -30
- cribl_control_plane/models/functionexternaldata.py +6 -10
- cribl_control_plane/models/functionflatten.py +7 -28
- cribl_control_plane/models/functionfoldkeys.py +6 -26
- cribl_control_plane/models/functiongenstats.py +7 -11
- cribl_control_plane/models/functiongeoip.py +7 -58
- cribl_control_plane/models/functiongrok.py +9 -35
- cribl_control_plane/models/functionhandlebar.py +6 -49
- cribl_control_plane/models/functionjoin.py +9 -52
- cribl_control_plane/models/functionjsonunroll.py +6 -17
- cribl_control_plane/models/functionlakeexport.py +6 -39
- cribl_control_plane/models/functionlimit.py +6 -12
- cribl_control_plane/models/functionlocalsearchdatatypeparser.py +6 -12
- cribl_control_plane/models/functionlocalsearchrulesetrunner.py +7 -34
- cribl_control_plane/models/functionlookup.py +7 -86
- cribl_control_plane/models/functionmask.py +9 -61
- cribl_control_plane/models/functionmvexpand.py +7 -66
- cribl_control_plane/models/functionmvpull.py +6 -36
- cribl_control_plane/models/functionnotificationpolicies.py +8 -125
- cribl_control_plane/models/functionnotifications.py +6 -22
- cribl_control_plane/models/functionnotify.py +6 -133
- cribl_control_plane/models/functionnumerify.py +7 -57
- cribl_control_plane/models/functionotlplogs.py +6 -19
- cribl_control_plane/models/functionotlpmetrics.py +7 -56
- cribl_control_plane/models/functionotlptraces.py +6 -48
- cribl_control_plane/models/functionpack.py +9 -20
- cribl_control_plane/models/functionpivot.py +7 -23
- cribl_control_plane/models/functionpublishmetrics.py +7 -91
- cribl_control_plane/models/functionredis.py +7 -111
- cribl_control_plane/models/functionregexextract.py +7 -50
- cribl_control_plane/models/functionregexfilter.py +7 -33
- cribl_control_plane/models/functionrename.py +7 -45
- cribl_control_plane/models/functionrollupmetrics.py +7 -52
- cribl_control_plane/models/functionsampling.py +7 -28
- cribl_control_plane/models/functionsend.py +8 -80
- cribl_control_plane/models/functionsensitivedatascanner.py +7 -66
- cribl_control_plane/models/functionserde.py +6 -98
- cribl_control_plane/models/functionserialize.py +7 -72
- cribl_control_plane/models/functionsidlookup.py +7 -31
- cribl_control_plane/models/functionsnmptrapserialize.py +6 -81
- cribl_control_plane/models/functionsort.py +8 -36
- cribl_control_plane/models/functionstore.py +6 -69
- cribl_control_plane/models/functionsuppress.py +6 -52
- cribl_control_plane/models/functiontee.py +6 -30
- cribl_control_plane/models/functiontrimtimestamp.py +6 -12
- cribl_control_plane/models/functionunion.py +9 -20
- cribl_control_plane/models/functionunroll.py +6 -17
- cribl_control_plane/models/functionwindow.py +7 -34
- cribl_control_plane/models/functionxmlunroll.py +6 -29
- cribl_control_plane/models/getsavedjobbyidop.py +33 -0
- cribl_control_plane/models/getsavedjobop.py +40 -0
- cribl_control_plane/models/groupcreaterequest.py +3 -0
- cribl_control_plane/models/heartbeatmetadata.py +42 -0
- cribl_control_plane/models/input.py +1 -1
- cribl_control_plane/models/inputedgeprometheus.py +11 -11
- cribl_control_plane/models/inputprometheus.py +23 -18
- cribl_control_plane/models/nodeprovidedinfo.py +42 -0
- cribl_control_plane/models/output.py +15 -9
- cribl_control_plane/models/outputclickhouse.py +31 -0
- cribl_control_plane/models/outputcriblhttp.py +7 -0
- cribl_control_plane/models/outputcriblsearchengine.py +655 -0
- cribl_control_plane/models/outputnetflow.py +16 -2
- cribl_control_plane/models/pipeline.py +52 -4
- cribl_control_plane/models/pipelinefunctionaggregatemetrics.py +195 -0
- cribl_control_plane/models/pipelinefunctionaggregation.py +159 -0
- cribl_control_plane/models/pipelinefunctionautotimestamp.py +56 -0
- cribl_control_plane/models/pipelinefunctioncef.py +96 -0
- cribl_control_plane/models/pipelinefunctionchain.py +62 -0
- cribl_control_plane/models/pipelinefunctionclone.py +56 -0
- cribl_control_plane/models/pipelinefunctioncode.py +56 -0
- cribl_control_plane/models/pipelinefunctioncomment.py +56 -0
- cribl_control_plane/models/pipelinefunctionconf.py +343 -46
- cribl_control_plane/models/pipelinefunctionconf_input.py +353 -0
- cribl_control_plane/models/pipelinefunctiondistinct.py +86 -0
- cribl_control_plane/models/pipelinefunctiondnslookup.py +56 -0
- cribl_control_plane/models/pipelinefunctiondrop.py +56 -0
- cribl_control_plane/models/pipelinefunctiondropdimensions.py +74 -0
- cribl_control_plane/models/pipelinefunctiondynamicsampling.py +111 -0
- cribl_control_plane/models/pipelinefunctioneval.py +56 -0
- cribl_control_plane/models/pipelinefunctioneventbreaker.py +95 -0
- cribl_control_plane/models/pipelinefunctioneventstats.py +79 -0
- cribl_control_plane/models/pipelinefunctionexternaldata.py +56 -0
- cribl_control_plane/models/pipelinefunctionflatten.py +56 -0
- cribl_control_plane/models/pipelinefunctionfoldkeys.py +56 -0
- cribl_control_plane/models/pipelinefunctiongenstats.py +56 -0
- cribl_control_plane/models/pipelinefunctiongeoip.py +109 -0
- cribl_control_plane/models/pipelinefunctiongrok.py +83 -0
- cribl_control_plane/models/pipelinefunctionhandlebar.py +99 -0
- cribl_control_plane/models/pipelinefunctionjoin.py +100 -0
- cribl_control_plane/models/pipelinefunctionjsonunroll.py +67 -0
- cribl_control_plane/models/pipelinefunctionlakeexport.py +89 -0
- cribl_control_plane/models/pipelinefunctionlimit.py +56 -0
- cribl_control_plane/models/pipelinefunctionlocalsearchdatatypeparser.py +62 -0
- cribl_control_plane/models/pipelinefunctionlocalsearchrulesetrunner.py +56 -0
- cribl_control_plane/models/pipelinefunctionlookup.py +136 -0
- cribl_control_plane/models/pipelinefunctionmask.py +108 -0
- cribl_control_plane/models/pipelinefunctionmvexpand.py +116 -0
- cribl_control_plane/models/pipelinefunctionmvpull.py +86 -0
- cribl_control_plane/models/pipelinefunctionnotificationpolicies.py +56 -0
- cribl_control_plane/models/pipelinefunctionnotifications.py +72 -0
- cribl_control_plane/models/pipelinefunctionnotify.py +189 -0
- cribl_control_plane/models/pipelinefunctionnumerify.py +56 -0
- cribl_control_plane/models/pipelinefunctionotlplogs.py +56 -0
- cribl_control_plane/models/pipelinefunctionotlpmetrics.py +56 -0
- cribl_control_plane/models/pipelinefunctionotlptraces.py +56 -0
- cribl_control_plane/models/pipelinefunctionpack.py +67 -0
- cribl_control_plane/models/pipelinefunctionpivot.py +72 -0
- cribl_control_plane/models/pipelinefunctionpublishmetrics.py +56 -0
- cribl_control_plane/models/pipelinefunctionredis.py +165 -0
- cribl_control_plane/models/pipelinefunctionregexextract.py +100 -0
- cribl_control_plane/models/pipelinefunctionregexfilter.py +56 -0
- cribl_control_plane/models/pipelinefunctionrename.py +56 -0
- cribl_control_plane/models/pipelinefunctionrollupmetrics.py +56 -0
- cribl_control_plane/models/pipelinefunctionsampling.py +56 -0
- cribl_control_plane/models/pipelinefunctionsend.py +128 -0
- cribl_control_plane/models/pipelinefunctionsensitivedatascanner.py +120 -0
- cribl_control_plane/models/pipelinefunctionserde.py +149 -0
- cribl_control_plane/models/pipelinefunctionserialize.py +122 -0
- cribl_control_plane/models/pipelinefunctionsidlookup.py +56 -0
- cribl_control_plane/models/pipelinefunctionsnmptrapserialize.py +56 -0
- cribl_control_plane/models/pipelinefunctionsort.py +84 -0
- cribl_control_plane/models/pipelinefunctionstore.py +120 -0
- cribl_control_plane/models/pipelinefunctionsuppress.py +102 -0
- cribl_control_plane/models/pipelinefunctiontee.py +77 -0
- cribl_control_plane/models/pipelinefunctiontrimtimestamp.py +56 -0
- cribl_control_plane/models/pipelinefunctionunion.py +67 -0
- cribl_control_plane/models/pipelinefunctionunroll.py +67 -0
- cribl_control_plane/models/pipelinefunctionwindow.py +83 -0
- cribl_control_plane/models/pipelinefunctionxmlunroll.py +79 -0
- cribl_control_plane/models/runnablejobcollection.py +11 -10
- cribl_control_plane/models/runnablejobexecutor.py +8 -8
- cribl_control_plane/models/savedjob.py +26 -0
- cribl_control_plane/models/savedjobcollection.py +411 -0
- cribl_control_plane/models/savedjobexecutor.py +301 -0
- cribl_control_plane/models/savedjobscheduledsearch.py +278 -0
- cribl_control_plane/models/updatepipelinebyidop.py +4 -3
- cribl_control_plane/models/updatesavedjobbyidop.py +42 -0
- cribl_control_plane/pipelines.py +16 -16
- cribl_control_plane/sdk.py +4 -0
- {cribl_control_plane-0.4.0b23.dist-info → cribl_control_plane-0.5.0b3.dist-info}/METADATA +10 -2
- {cribl_control_plane-0.4.0b23.dist-info → cribl_control_plane-0.5.0b3.dist-info}/RECORD +229 -88
- {cribl_control_plane-0.4.0b23.dist-info → cribl_control_plane-0.5.0b3.dist-info}/WHEEL +0 -0
- {cribl_control_plane-0.4.0b23.dist-info → cribl_control_plane-0.5.0b3.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemaflatten import (
|
|
5
|
+
FunctionConfSchemaFlatten,
|
|
6
|
+
FunctionConfSchemaFlattenTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
7
|
-
from typing import Any, Dict,
|
|
11
|
+
from typing import Any, Dict, Optional
|
|
8
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
13
|
|
|
10
14
|
|
|
@@ -12,31 +16,6 @@ class FunctionFlattenID(str, Enum):
|
|
|
12
16
|
FLATTEN = "flatten"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class FunctionFlattenSchemaTypedDict(TypedDict):
|
|
16
|
-
fields: NotRequired[List[str]]
|
|
17
|
-
r"""List of top-level fields to include for flattening. Supports * wildcards, except when used on internal fields. Defaults to empty array, which means all fields."""
|
|
18
|
-
prefix: NotRequired[str]
|
|
19
|
-
r"""Prefix string for flattened field names. Defaults to empty."""
|
|
20
|
-
depth: NotRequired[float]
|
|
21
|
-
r"""Number representing the nested levels to consider for flattening. Defaults to 5. Minimum should be 1."""
|
|
22
|
-
delimiter: NotRequired[str]
|
|
23
|
-
r"""Delimiter to be used for flattening. Defaults to underscore."""
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class FunctionFlattenSchema(BaseModel):
|
|
27
|
-
fields: Optional[List[str]] = None
|
|
28
|
-
r"""List of top-level fields to include for flattening. Supports * wildcards, except when used on internal fields. Defaults to empty array, which means all fields."""
|
|
29
|
-
|
|
30
|
-
prefix: Optional[str] = ""
|
|
31
|
-
r"""Prefix string for flattened field names. Defaults to empty."""
|
|
32
|
-
|
|
33
|
-
depth: Optional[float] = 5
|
|
34
|
-
r"""Number representing the nested levels to consider for flattening. Defaults to 5. Minimum should be 1."""
|
|
35
|
-
|
|
36
|
-
delimiter: Optional[str] = "_"
|
|
37
|
-
r"""Delimiter to be used for flattening. Defaults to underscore."""
|
|
38
|
-
|
|
39
|
-
|
|
40
19
|
class FunctionFlattenTypedDict(TypedDict):
|
|
41
20
|
filename: str
|
|
42
21
|
group: str
|
|
@@ -51,7 +30,7 @@ class FunctionFlattenTypedDict(TypedDict):
|
|
|
51
30
|
disabled: NotRequired[bool]
|
|
52
31
|
handle_signals: NotRequired[bool]
|
|
53
32
|
sync: NotRequired[bool]
|
|
54
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaFlattenTypedDict]
|
|
55
34
|
|
|
56
35
|
|
|
57
36
|
class FunctionFlatten(BaseModel):
|
|
@@ -86,5 +65,5 @@ class FunctionFlatten(BaseModel):
|
|
|
86
65
|
sync: Optional[bool] = None
|
|
87
66
|
|
|
88
67
|
schema_: Annotated[
|
|
89
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaFlatten], pydantic.Field(alias="schema")
|
|
90
69
|
] = None
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemafoldkeys import (
|
|
5
|
+
FunctionConfSchemaFoldkeys,
|
|
6
|
+
FunctionConfSchemaFoldkeysTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
@@ -12,30 +16,6 @@ class FunctionFoldkeysID(str, Enum):
|
|
|
12
16
|
FOLDKEYS = "foldkeys"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class FunctionFoldkeysSchemaTypedDict(TypedDict):
|
|
16
|
-
delete_original: NotRequired[bool]
|
|
17
|
-
r"""When enabled (default), only the folded keys are kept. When disabled, the original entries are retained alongside the folded keys."""
|
|
18
|
-
separator: NotRequired[str]
|
|
19
|
-
r"""Character or string used to separate key levels to be folded. Defaults to the dot (.) character."""
|
|
20
|
-
selection_reg_exp: NotRequired[str]
|
|
21
|
-
r"""Optional regular expression to select a subset of the keys to fold."""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class FunctionFoldkeysSchema(BaseModel):
|
|
25
|
-
delete_original: Annotated[
|
|
26
|
-
Optional[bool], pydantic.Field(alias="deleteOriginal")
|
|
27
|
-
] = True
|
|
28
|
-
r"""When enabled (default), only the folded keys are kept. When disabled, the original entries are retained alongside the folded keys."""
|
|
29
|
-
|
|
30
|
-
separator: Optional[str] = "."
|
|
31
|
-
r"""Character or string used to separate key levels to be folded. Defaults to the dot (.) character."""
|
|
32
|
-
|
|
33
|
-
selection_reg_exp: Annotated[
|
|
34
|
-
Optional[str], pydantic.Field(alias="selectionRegExp")
|
|
35
|
-
] = None
|
|
36
|
-
r"""Optional regular expression to select a subset of the keys to fold."""
|
|
37
|
-
|
|
38
|
-
|
|
39
19
|
class FunctionFoldkeysTypedDict(TypedDict):
|
|
40
20
|
filename: str
|
|
41
21
|
group: str
|
|
@@ -50,7 +30,7 @@ class FunctionFoldkeysTypedDict(TypedDict):
|
|
|
50
30
|
disabled: NotRequired[bool]
|
|
51
31
|
handle_signals: NotRequired[bool]
|
|
52
32
|
sync: NotRequired[bool]
|
|
53
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaFoldkeysTypedDict]
|
|
54
34
|
|
|
55
35
|
|
|
56
36
|
class FunctionFoldkeys(BaseModel):
|
|
@@ -85,5 +65,5 @@ class FunctionFoldkeys(BaseModel):
|
|
|
85
65
|
sync: Optional[bool] = None
|
|
86
66
|
|
|
87
67
|
schema_: Annotated[
|
|
88
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaFoldkeys], pydantic.Field(alias="schema")
|
|
89
69
|
] = None
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemagenstats import (
|
|
5
|
+
FunctionConfSchemaGenStats,
|
|
6
|
+
FunctionConfSchemaGenStatsTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
7
|
-
from typing import Any, Dict,
|
|
11
|
+
from typing import Any, Dict, Optional
|
|
8
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
13
|
|
|
10
14
|
|
|
@@ -12,14 +16,6 @@ class FunctionGenStatsID(str, Enum):
|
|
|
12
16
|
GEN_STATS = "gen_stats"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class GenStatsConfigurationTypedDict(TypedDict):
|
|
16
|
-
fields: NotRequired[List[str]]
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class GenStatsConfiguration(BaseModel):
|
|
20
|
-
fields: Optional[List[str]] = None
|
|
21
|
-
|
|
22
|
-
|
|
23
19
|
class FunctionGenStatsTypedDict(TypedDict):
|
|
24
20
|
filename: str
|
|
25
21
|
group: str
|
|
@@ -34,7 +30,7 @@ class FunctionGenStatsTypedDict(TypedDict):
|
|
|
34
30
|
disabled: NotRequired[bool]
|
|
35
31
|
handle_signals: NotRequired[bool]
|
|
36
32
|
sync: NotRequired[bool]
|
|
37
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaGenStatsTypedDict]
|
|
38
34
|
|
|
39
35
|
|
|
40
36
|
class FunctionGenStats(BaseModel):
|
|
@@ -69,5 +65,5 @@ class FunctionGenStats(BaseModel):
|
|
|
69
65
|
sync: Optional[bool] = None
|
|
70
66
|
|
|
71
67
|
schema_: Annotated[
|
|
72
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaGenStats], pydantic.Field(alias="schema")
|
|
73
69
|
] = None
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemageoip import (
|
|
5
|
+
FunctionConfSchemaGeoip,
|
|
6
|
+
FunctionConfSchemaGeoipTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
7
|
-
from typing import Any, Dict,
|
|
11
|
+
from typing import Any, Dict, Optional
|
|
8
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
13
|
|
|
10
14
|
|
|
@@ -12,61 +16,6 @@ class FunctionGeoipID(str, Enum):
|
|
|
12
16
|
GEOIP = "geoip"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class AdditionalFieldTypedDict(TypedDict):
|
|
16
|
-
extra_in_field: str
|
|
17
|
-
r"""Field name in which to find an IP to look up. Can be nested."""
|
|
18
|
-
extra_out_field: str
|
|
19
|
-
r"""Field name in which to store the GeoIP lookup results"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class AdditionalField(BaseModel):
|
|
23
|
-
extra_in_field: Annotated[str, pydantic.Field(alias="extraInField")]
|
|
24
|
-
r"""Field name in which to find an IP to look up. Can be nested."""
|
|
25
|
-
|
|
26
|
-
extra_out_field: Annotated[str, pydantic.Field(alias="extraOutField")]
|
|
27
|
-
r"""Field name in which to store the GeoIP lookup results"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class OutputFieldMappingsTypedDict(TypedDict):
|
|
31
|
-
r"""Search-specific mappings for granular control over event enrichment"""
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class OutputFieldMappings(BaseModel):
|
|
35
|
-
r"""Search-specific mappings for granular control over event enrichment"""
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
class FunctionGeoipSchemaTypedDict(TypedDict):
|
|
39
|
-
file: str
|
|
40
|
-
r"""Select an uploaded Maxmind database, or specify path to a Maxmind database with .mmdb extension"""
|
|
41
|
-
in_field: NotRequired[str]
|
|
42
|
-
r"""Field name in which to find an IP to look up. Can be nested."""
|
|
43
|
-
out_field: NotRequired[str]
|
|
44
|
-
r"""Field name in which to store the GeoIP lookup results"""
|
|
45
|
-
additional_fields: NotRequired[List[AdditionalFieldTypedDict]]
|
|
46
|
-
out_field_mappings: NotRequired[OutputFieldMappingsTypedDict]
|
|
47
|
-
r"""Search-specific mappings for granular control over event enrichment"""
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
class FunctionGeoipSchema(BaseModel):
|
|
51
|
-
file: str
|
|
52
|
-
r"""Select an uploaded Maxmind database, or specify path to a Maxmind database with .mmdb extension"""
|
|
53
|
-
|
|
54
|
-
in_field: Annotated[Optional[str], pydantic.Field(alias="inField")] = "ip"
|
|
55
|
-
r"""Field name in which to find an IP to look up. Can be nested."""
|
|
56
|
-
|
|
57
|
-
out_field: Annotated[Optional[str], pydantic.Field(alias="outField")] = "geoip"
|
|
58
|
-
r"""Field name in which to store the GeoIP lookup results"""
|
|
59
|
-
|
|
60
|
-
additional_fields: Annotated[
|
|
61
|
-
Optional[List[AdditionalField]], pydantic.Field(alias="additionalFields")
|
|
62
|
-
] = None
|
|
63
|
-
|
|
64
|
-
out_field_mappings: Annotated[
|
|
65
|
-
Optional[OutputFieldMappings], pydantic.Field(alias="outFieldMappings")
|
|
66
|
-
] = None
|
|
67
|
-
r"""Search-specific mappings for granular control over event enrichment"""
|
|
68
|
-
|
|
69
|
-
|
|
70
19
|
class FunctionGeoipTypedDict(TypedDict):
|
|
71
20
|
filename: str
|
|
72
21
|
group: str
|
|
@@ -81,7 +30,7 @@ class FunctionGeoipTypedDict(TypedDict):
|
|
|
81
30
|
disabled: NotRequired[bool]
|
|
82
31
|
handle_signals: NotRequired[bool]
|
|
83
32
|
sync: NotRequired[bool]
|
|
84
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaGeoipTypedDict]
|
|
85
34
|
|
|
86
35
|
|
|
87
36
|
class FunctionGeoip(BaseModel):
|
|
@@ -116,5 +65,5 @@ class FunctionGeoip(BaseModel):
|
|
|
116
65
|
sync: Optional[bool] = None
|
|
117
66
|
|
|
118
67
|
schema_: Annotated[
|
|
119
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaGeoip], pydantic.Field(alias="schema")
|
|
120
69
|
] = None
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemagrok import (
|
|
5
|
+
FunctionConfSchemaGrok,
|
|
6
|
+
FunctionConfSchemaGrokTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
7
|
-
from typing import Any, Dict,
|
|
11
|
+
from typing import Any, Dict, Optional
|
|
8
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
13
|
|
|
10
14
|
|
|
@@ -12,36 +16,6 @@ class FunctionGrokID(str, Enum):
|
|
|
12
16
|
GROK = "grok"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class PatternListTypedDict(TypedDict):
|
|
16
|
-
pattern: str
|
|
17
|
-
r"""Grok pattern to extract fields. Syntax supported: %{PATTERN_NAME:FIELD_NAME}"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class PatternList(BaseModel):
|
|
21
|
-
pattern: str
|
|
22
|
-
r"""Grok pattern to extract fields. Syntax supported: %{PATTERN_NAME:FIELD_NAME}"""
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class FunctionGrokSchemaTypedDict(TypedDict):
|
|
26
|
-
pattern: str
|
|
27
|
-
r"""Grok pattern to extract fields. Syntax supported: %{PATTERN_NAME:FIELD_NAME}"""
|
|
28
|
-
pattern_list: NotRequired[List[PatternListTypedDict]]
|
|
29
|
-
source: NotRequired[str]
|
|
30
|
-
r"""Field on which to perform Grok extractions"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class FunctionGrokSchema(BaseModel):
|
|
34
|
-
pattern: str
|
|
35
|
-
r"""Grok pattern to extract fields. Syntax supported: %{PATTERN_NAME:FIELD_NAME}"""
|
|
36
|
-
|
|
37
|
-
pattern_list: Annotated[
|
|
38
|
-
Optional[List[PatternList]], pydantic.Field(alias="patternList")
|
|
39
|
-
] = None
|
|
40
|
-
|
|
41
|
-
source: Optional[str] = "_raw"
|
|
42
|
-
r"""Field on which to perform Grok extractions"""
|
|
43
|
-
|
|
44
|
-
|
|
45
19
|
class FunctionGrokTypedDict(TypedDict):
|
|
46
20
|
filename: str
|
|
47
21
|
group: str
|
|
@@ -56,7 +30,7 @@ class FunctionGrokTypedDict(TypedDict):
|
|
|
56
30
|
disabled: NotRequired[bool]
|
|
57
31
|
handle_signals: NotRequired[bool]
|
|
58
32
|
sync: NotRequired[bool]
|
|
59
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaGrokTypedDict]
|
|
60
34
|
|
|
61
35
|
|
|
62
36
|
class FunctionGrok(BaseModel):
|
|
@@ -90,6 +64,6 @@ class FunctionGrok(BaseModel):
|
|
|
90
64
|
|
|
91
65
|
sync: Optional[bool] = None
|
|
92
66
|
|
|
93
|
-
schema_: Annotated[
|
|
94
|
-
|
|
95
|
-
|
|
67
|
+
schema_: Annotated[
|
|
68
|
+
Optional[FunctionConfSchemaGrok], pydantic.Field(alias="schema")
|
|
69
|
+
] = None
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemahandlebar import (
|
|
5
|
+
FunctionConfSchemaHandlebar,
|
|
6
|
+
FunctionConfSchemaHandlebarTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
@@ -12,53 +16,6 @@ class FunctionHandlebarID(str, Enum):
|
|
|
12
16
|
HANDLEBAR = "handlebar"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class TemplateDefinitionTypedDict(TypedDict):
|
|
16
|
-
content: str
|
|
17
|
-
r"""Handlebars template string"""
|
|
18
|
-
description: NotRequired[str]
|
|
19
|
-
r"""Optional description of what this template is used for"""
|
|
20
|
-
type: NotRequired[str]
|
|
21
|
-
r"""Type categorization for the template (e.g., Universal, Email, Slack)"""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class TemplateDefinition(BaseModel):
|
|
25
|
-
content: str
|
|
26
|
-
r"""Handlebars template string"""
|
|
27
|
-
|
|
28
|
-
description: Optional[str] = None
|
|
29
|
-
r"""Optional description of what this template is used for"""
|
|
30
|
-
|
|
31
|
-
type: Optional[str] = "Universal"
|
|
32
|
-
r"""Type categorization for the template (e.g., Universal, Email, Slack)"""
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
class FunctionHandlebarSchemaTypedDict(TypedDict):
|
|
36
|
-
templates: Dict[str, TemplateDefinitionTypedDict]
|
|
37
|
-
r"""Object with template_id as keys and template definitions as values. Uses event.__template_id to select template at runtime."""
|
|
38
|
-
target_field: NotRequired[str]
|
|
39
|
-
r"""Field name to store the rendered template result. Defaults to _raw."""
|
|
40
|
-
parse_json: NotRequired[bool]
|
|
41
|
-
r"""Parse the rendered template as JSON and store as an object instead of a string. Useful for building structured data like Slack blocks."""
|
|
42
|
-
remove_on_null: NotRequired[bool]
|
|
43
|
-
r"""Remove the target field if the rendered result is empty or null."""
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class FunctionHandlebarSchema(BaseModel):
|
|
47
|
-
templates: Dict[str, TemplateDefinition]
|
|
48
|
-
r"""Object with template_id as keys and template definitions as values. Uses event.__template_id to select template at runtime."""
|
|
49
|
-
|
|
50
|
-
target_field: Annotated[Optional[str], pydantic.Field(alias="targetField")] = "_raw"
|
|
51
|
-
r"""Field name to store the rendered template result. Defaults to _raw."""
|
|
52
|
-
|
|
53
|
-
parse_json: Annotated[Optional[bool], pydantic.Field(alias="parseJson")] = False
|
|
54
|
-
r"""Parse the rendered template as JSON and store as an object instead of a string. Useful for building structured data like Slack blocks."""
|
|
55
|
-
|
|
56
|
-
remove_on_null: Annotated[Optional[bool], pydantic.Field(alias="removeOnNull")] = (
|
|
57
|
-
True
|
|
58
|
-
)
|
|
59
|
-
r"""Remove the target field if the rendered result is empty or null."""
|
|
60
|
-
|
|
61
|
-
|
|
62
19
|
class FunctionHandlebarTypedDict(TypedDict):
|
|
63
20
|
filename: str
|
|
64
21
|
group: str
|
|
@@ -73,7 +30,7 @@ class FunctionHandlebarTypedDict(TypedDict):
|
|
|
73
30
|
disabled: NotRequired[bool]
|
|
74
31
|
handle_signals: NotRequired[bool]
|
|
75
32
|
sync: NotRequired[bool]
|
|
76
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaHandlebarTypedDict]
|
|
77
34
|
|
|
78
35
|
|
|
79
36
|
class FunctionHandlebar(BaseModel):
|
|
@@ -108,5 +65,5 @@ class FunctionHandlebar(BaseModel):
|
|
|
108
65
|
sync: Optional[bool] = None
|
|
109
66
|
|
|
110
67
|
schema_: Annotated[
|
|
111
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaHandlebar], pydantic.Field(alias="schema")
|
|
112
69
|
] = None
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemajoin import (
|
|
5
|
+
FunctionConfSchemaJoin,
|
|
6
|
+
FunctionConfSchemaJoinTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
7
|
-
from typing import Any, Dict,
|
|
11
|
+
from typing import Any, Dict, Optional
|
|
8
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
9
13
|
|
|
10
14
|
|
|
@@ -12,53 +16,6 @@ class FunctionJoinID(str, Enum):
|
|
|
12
16
|
JOIN = "join"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class FieldConditionTypedDict(TypedDict):
|
|
16
|
-
left_field_name: str
|
|
17
|
-
r"""The field name to join on, on the left side."""
|
|
18
|
-
right_field_name: str
|
|
19
|
-
r"""The field name on the right side of the data, i.e. the stage results, that we are joining with"""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class FieldCondition(BaseModel):
|
|
23
|
-
left_field_name: Annotated[str, pydantic.Field(alias="leftFieldName")]
|
|
24
|
-
r"""The field name to join on, on the left side."""
|
|
25
|
-
|
|
26
|
-
right_field_name: Annotated[str, pydantic.Field(alias="rightFieldName")]
|
|
27
|
-
r"""The field name on the right side of the data, i.e. the stage results, that we are joining with"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class JoinConfigurationTypedDict(TypedDict):
|
|
31
|
-
field_conditions: List[FieldConditionTypedDict]
|
|
32
|
-
r"""Fields to use when joining"""
|
|
33
|
-
kind: NotRequired[str]
|
|
34
|
-
r"""Join kind, e.g. inner"""
|
|
35
|
-
hints: NotRequired[Dict[str, str]]
|
|
36
|
-
r"""Hints passed to the join function"""
|
|
37
|
-
search_job_id: NotRequired[str]
|
|
38
|
-
r"""The id for this search job."""
|
|
39
|
-
stage_id: NotRequired[str]
|
|
40
|
-
r"""The stage we are joining with."""
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
class JoinConfiguration(BaseModel):
|
|
44
|
-
field_conditions: Annotated[
|
|
45
|
-
List[FieldCondition], pydantic.Field(alias="fieldConditions")
|
|
46
|
-
]
|
|
47
|
-
r"""Fields to use when joining"""
|
|
48
|
-
|
|
49
|
-
kind: Optional[str] = None
|
|
50
|
-
r"""Join kind, e.g. inner"""
|
|
51
|
-
|
|
52
|
-
hints: Optional[Dict[str, str]] = None
|
|
53
|
-
r"""Hints passed to the join function"""
|
|
54
|
-
|
|
55
|
-
search_job_id: Annotated[Optional[str], pydantic.Field(alias="searchJobId")] = None
|
|
56
|
-
r"""The id for this search job."""
|
|
57
|
-
|
|
58
|
-
stage_id: Annotated[Optional[str], pydantic.Field(alias="stageId")] = None
|
|
59
|
-
r"""The stage we are joining with."""
|
|
60
|
-
|
|
61
|
-
|
|
62
19
|
class FunctionJoinTypedDict(TypedDict):
|
|
63
20
|
filename: str
|
|
64
21
|
group: str
|
|
@@ -73,7 +30,7 @@ class FunctionJoinTypedDict(TypedDict):
|
|
|
73
30
|
disabled: NotRequired[bool]
|
|
74
31
|
handle_signals: NotRequired[bool]
|
|
75
32
|
sync: NotRequired[bool]
|
|
76
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaJoinTypedDict]
|
|
77
34
|
|
|
78
35
|
|
|
79
36
|
class FunctionJoin(BaseModel):
|
|
@@ -107,6 +64,6 @@ class FunctionJoin(BaseModel):
|
|
|
107
64
|
|
|
108
65
|
sync: Optional[bool] = None
|
|
109
66
|
|
|
110
|
-
schema_: Annotated[
|
|
111
|
-
|
|
112
|
-
|
|
67
|
+
schema_: Annotated[
|
|
68
|
+
Optional[FunctionConfSchemaJoin], pydantic.Field(alias="schema")
|
|
69
|
+
] = None
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemajsonunroll import (
|
|
5
|
+
FunctionConfSchemaJSONUnroll,
|
|
6
|
+
FunctionConfSchemaJSONUnrollTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
@@ -12,21 +16,6 @@ class FunctionJSONUnrollID(str, Enum):
|
|
|
12
16
|
JSON_UNROLL = "json_unroll"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class FunctionJSONUnrollSchemaTypedDict(TypedDict):
|
|
16
|
-
path: str
|
|
17
|
-
r"""Path to array to unroll, such as foo.0.bar"""
|
|
18
|
-
name: NotRequired[str]
|
|
19
|
-
r"""Name of each exploded array element in each new event. Leave empty to expand the array element with its original name."""
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class FunctionJSONUnrollSchema(BaseModel):
|
|
23
|
-
path: str
|
|
24
|
-
r"""Path to array to unroll, such as foo.0.bar"""
|
|
25
|
-
|
|
26
|
-
name: Optional[str] = None
|
|
27
|
-
r"""Name of each exploded array element in each new event. Leave empty to expand the array element with its original name."""
|
|
28
|
-
|
|
29
|
-
|
|
30
19
|
class FunctionJSONUnrollTypedDict(TypedDict):
|
|
31
20
|
filename: str
|
|
32
21
|
group: str
|
|
@@ -41,7 +30,7 @@ class FunctionJSONUnrollTypedDict(TypedDict):
|
|
|
41
30
|
disabled: NotRequired[bool]
|
|
42
31
|
handle_signals: NotRequired[bool]
|
|
43
32
|
sync: NotRequired[bool]
|
|
44
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaJSONUnrollTypedDict]
|
|
45
34
|
|
|
46
35
|
|
|
47
36
|
class FunctionJSONUnroll(BaseModel):
|
|
@@ -76,5 +65,5 @@ class FunctionJSONUnroll(BaseModel):
|
|
|
76
65
|
sync: Optional[bool] = None
|
|
77
66
|
|
|
78
67
|
schema_: Annotated[
|
|
79
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaJSONUnroll], pydantic.Field(alias="schema")
|
|
80
69
|
] = None
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemalakeexport import (
|
|
5
|
+
FunctionConfSchemaLakeExport,
|
|
6
|
+
FunctionConfSchemaLakeExportTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
@@ -12,43 +16,6 @@ class FunctionLakeExportID(str, Enum):
|
|
|
12
16
|
LAKE_EXPORT = "lake_export"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class LakeExportConfigurationTypedDict(TypedDict):
|
|
16
|
-
search_job_id: str
|
|
17
|
-
r"""Id of the search job this function is running on."""
|
|
18
|
-
dataset: str
|
|
19
|
-
r"""Name of the dataset"""
|
|
20
|
-
lake: NotRequired[str]
|
|
21
|
-
r"""Name of the lake"""
|
|
22
|
-
tee: NotRequired[str]
|
|
23
|
-
r"""Tee results to search. When set to true results will be shipped instead of stats"""
|
|
24
|
-
flush_ms: NotRequired[float]
|
|
25
|
-
r"""How often are stats flushed in ms"""
|
|
26
|
-
suppress_previews: NotRequired[bool]
|
|
27
|
-
r"""Disables generation of intermediate stats. When true stats will be emitted only on end"""
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
class LakeExportConfiguration(BaseModel):
|
|
31
|
-
search_job_id: Annotated[str, pydantic.Field(alias="searchJobId")]
|
|
32
|
-
r"""Id of the search job this function is running on."""
|
|
33
|
-
|
|
34
|
-
dataset: str
|
|
35
|
-
r"""Name of the dataset"""
|
|
36
|
-
|
|
37
|
-
lake: Optional[str] = "default"
|
|
38
|
-
r"""Name of the lake"""
|
|
39
|
-
|
|
40
|
-
tee: Optional[str] = "false"
|
|
41
|
-
r"""Tee results to search. When set to true results will be shipped instead of stats"""
|
|
42
|
-
|
|
43
|
-
flush_ms: Annotated[Optional[float], pydantic.Field(alias="flushMs")] = 1000
|
|
44
|
-
r"""How often are stats flushed in ms"""
|
|
45
|
-
|
|
46
|
-
suppress_previews: Annotated[
|
|
47
|
-
Optional[bool], pydantic.Field(alias="suppressPreviews")
|
|
48
|
-
] = None
|
|
49
|
-
r"""Disables generation of intermediate stats. When true stats will be emitted only on end"""
|
|
50
|
-
|
|
51
|
-
|
|
52
19
|
class FunctionLakeExportTypedDict(TypedDict):
|
|
53
20
|
filename: str
|
|
54
21
|
group: str
|
|
@@ -63,7 +30,7 @@ class FunctionLakeExportTypedDict(TypedDict):
|
|
|
63
30
|
disabled: NotRequired[bool]
|
|
64
31
|
handle_signals: NotRequired[bool]
|
|
65
32
|
sync: NotRequired[bool]
|
|
66
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaLakeExportTypedDict]
|
|
67
34
|
|
|
68
35
|
|
|
69
36
|
class FunctionLakeExport(BaseModel):
|
|
@@ -98,5 +65,5 @@ class FunctionLakeExport(BaseModel):
|
|
|
98
65
|
sync: Optional[bool] = None
|
|
99
66
|
|
|
100
67
|
schema_: Annotated[
|
|
101
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaLakeExport], pydantic.Field(alias="schema")
|
|
102
69
|
] = None
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
+
from .functionconfschemalimit import (
|
|
5
|
+
FunctionConfSchemaLimit,
|
|
6
|
+
FunctionConfSchemaLimitTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
@@ -12,16 +16,6 @@ class FunctionLimitID(str, Enum):
|
|
|
12
16
|
LIMIT = "limit"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class FunctionLimitSchemaTypedDict(TypedDict):
|
|
16
|
-
limit: NotRequired[int]
|
|
17
|
-
r"""Number of qualifying events to pass through"""
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class FunctionLimitSchema(BaseModel):
|
|
21
|
-
limit: Optional[int] = 100
|
|
22
|
-
r"""Number of qualifying events to pass through"""
|
|
23
|
-
|
|
24
|
-
|
|
25
19
|
class FunctionLimitTypedDict(TypedDict):
|
|
26
20
|
filename: str
|
|
27
21
|
group: str
|
|
@@ -36,7 +30,7 @@ class FunctionLimitTypedDict(TypedDict):
|
|
|
36
30
|
disabled: NotRequired[bool]
|
|
37
31
|
handle_signals: NotRequired[bool]
|
|
38
32
|
sync: NotRequired[bool]
|
|
39
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaLimitTypedDict]
|
|
40
34
|
|
|
41
35
|
|
|
42
36
|
class FunctionLimit(BaseModel):
|
|
@@ -71,5 +65,5 @@ class FunctionLimit(BaseModel):
|
|
|
71
65
|
sync: Optional[bool] = None
|
|
72
66
|
|
|
73
67
|
schema_: Annotated[
|
|
74
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaLimit], pydantic.Field(alias="schema")
|
|
75
69
|
] = None
|