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
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import validate_open_enum
|
|
7
|
+
from enum import Enum
|
|
8
|
+
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
10
|
+
from pydantic.functional_validators import PlainValidator
|
|
11
|
+
from typing import Any, List, Optional
|
|
12
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class FunctionConfSchemaSerializeType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
16
|
+
r"""Data output format"""
|
|
17
|
+
|
|
18
|
+
# CSV
|
|
19
|
+
CSV = "csv"
|
|
20
|
+
# Extended Log File Format
|
|
21
|
+
ELFF = "elff"
|
|
22
|
+
# Common Log Format
|
|
23
|
+
CLF = "clf"
|
|
24
|
+
# Key=Value Pairs
|
|
25
|
+
KVP = "kvp"
|
|
26
|
+
# JSON Object
|
|
27
|
+
JSON = "json"
|
|
28
|
+
# Delimited values
|
|
29
|
+
DELIM = "delim"
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class FunctionConfSchemaSerializeTypedDict(TypedDict):
|
|
33
|
+
type: NotRequired[FunctionConfSchemaSerializeType]
|
|
34
|
+
r"""Data output format"""
|
|
35
|
+
delim_char: NotRequired[Any]
|
|
36
|
+
quote_char: NotRequired[Any]
|
|
37
|
+
escape_char: NotRequired[Any]
|
|
38
|
+
null_value: NotRequired[Any]
|
|
39
|
+
fields: NotRequired[List[str]]
|
|
40
|
+
r"""Required for CSV, ELFF, CLF, and Delimited values. All other formats support wildcard field lists. Examples: host, array*, !host *"""
|
|
41
|
+
src_field: NotRequired[str]
|
|
42
|
+
r"""Field containing object to serialize. Leave blank to serialize top-level event fields."""
|
|
43
|
+
dst_field: NotRequired[str]
|
|
44
|
+
r"""Field to serialize data to"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class FunctionConfSchemaSerialize(BaseModel):
|
|
48
|
+
type: Annotated[
|
|
49
|
+
Optional[FunctionConfSchemaSerializeType],
|
|
50
|
+
PlainValidator(validate_open_enum(False)),
|
|
51
|
+
] = FunctionConfSchemaSerializeType.CSV
|
|
52
|
+
r"""Data output format"""
|
|
53
|
+
|
|
54
|
+
delim_char: Annotated[Optional[Any], pydantic.Field(alias="delimChar")] = None
|
|
55
|
+
|
|
56
|
+
quote_char: Annotated[Optional[Any], pydantic.Field(alias="quoteChar")] = None
|
|
57
|
+
|
|
58
|
+
escape_char: Annotated[Optional[Any], pydantic.Field(alias="escapeChar")] = None
|
|
59
|
+
|
|
60
|
+
null_value: Annotated[Optional[Any], pydantic.Field(alias="nullValue")] = None
|
|
61
|
+
|
|
62
|
+
fields: Optional[List[str]] = None
|
|
63
|
+
r"""Required for CSV, ELFF, CLF, and Delimited values. All other formats support wildcard field lists. Examples: host, array*, !host *"""
|
|
64
|
+
|
|
65
|
+
src_field: Annotated[Optional[str], pydantic.Field(alias="srcField")] = None
|
|
66
|
+
r"""Field containing object to serialize. Leave blank to serialize top-level event fields."""
|
|
67
|
+
|
|
68
|
+
dst_field: Annotated[Optional[str], pydantic.Field(alias="dstField")] = "_raw"
|
|
69
|
+
r"""Field to serialize data to"""
|
|
70
|
+
|
|
71
|
+
@field_serializer("type")
|
|
72
|
+
def serialize_type(self, value):
|
|
73
|
+
if isinstance(value, str):
|
|
74
|
+
try:
|
|
75
|
+
return models.FunctionConfSchemaSerializeType(value)
|
|
76
|
+
except ValueError:
|
|
77
|
+
return value
|
|
78
|
+
return value
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
from typing import List, Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class FunctionConfSchemaSidlookupFieldTypedDict(TypedDict):
|
|
10
|
+
expr: str
|
|
11
|
+
r"""JavaScript expression to compute the value (can be constant)"""
|
|
12
|
+
name: NotRequired[str]
|
|
13
|
+
disabled: NotRequired[bool]
|
|
14
|
+
r"""Set to No to disable the evaluation of an individual expression"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class FunctionConfSchemaSidlookupField(BaseModel):
|
|
18
|
+
expr: str
|
|
19
|
+
r"""JavaScript expression to compute the value (can be constant)"""
|
|
20
|
+
|
|
21
|
+
name: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
disabled: Optional[bool] = False
|
|
24
|
+
r"""Set to No to disable the evaluation of an individual expression"""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class FunctionConfSchemaSidlookupTypedDict(TypedDict):
|
|
28
|
+
fields: NotRequired[List[FunctionConfSchemaSidlookupFieldTypedDict]]
|
|
29
|
+
r"""Set of expressions matched to lookup responses"""
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class FunctionConfSchemaSidlookup(BaseModel):
|
|
33
|
+
fields: Optional[List[FunctionConfSchemaSidlookupField]] = None
|
|
34
|
+
r"""Set of expressions matched to lookup responses"""
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane import models, utils
|
|
5
|
+
from cribl_control_plane.types import BaseModel
|
|
6
|
+
from cribl_control_plane.utils import validate_open_enum
|
|
7
|
+
from enum import Enum
|
|
8
|
+
import pydantic
|
|
9
|
+
from pydantic import field_serializer
|
|
10
|
+
from pydantic.functional_validators import PlainValidator
|
|
11
|
+
from typing import Any, Optional
|
|
12
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class FunctionConfSchemaSnmpTrapSerializeAuthenticationProtocol(
|
|
16
|
+
str, Enum, metaclass=utils.OpenEnumMeta
|
|
17
|
+
):
|
|
18
|
+
# None
|
|
19
|
+
NONE = "none"
|
|
20
|
+
# MD5
|
|
21
|
+
MD5 = "md5"
|
|
22
|
+
# SHA1
|
|
23
|
+
SHA = "sha"
|
|
24
|
+
# SHA224
|
|
25
|
+
SHA224 = "sha224"
|
|
26
|
+
# SHA256
|
|
27
|
+
SHA256 = "sha256"
|
|
28
|
+
# SHA384
|
|
29
|
+
SHA384 = "sha384"
|
|
30
|
+
# SHA512
|
|
31
|
+
SHA512 = "sha512"
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class FunctionConfSchemaSnmpTrapSerializeV3UserTypedDict(TypedDict):
|
|
35
|
+
name: NotRequired[str]
|
|
36
|
+
auth_protocol: NotRequired[
|
|
37
|
+
FunctionConfSchemaSnmpTrapSerializeAuthenticationProtocol
|
|
38
|
+
]
|
|
39
|
+
auth_key: NotRequired[Any]
|
|
40
|
+
priv_protocol: NotRequired[str]
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class FunctionConfSchemaSnmpTrapSerializeV3User(BaseModel):
|
|
44
|
+
name: Optional[str] = None
|
|
45
|
+
|
|
46
|
+
auth_protocol: Annotated[
|
|
47
|
+
Annotated[
|
|
48
|
+
Optional[FunctionConfSchemaSnmpTrapSerializeAuthenticationProtocol],
|
|
49
|
+
PlainValidator(validate_open_enum(False)),
|
|
50
|
+
],
|
|
51
|
+
pydantic.Field(alias="authProtocol"),
|
|
52
|
+
] = FunctionConfSchemaSnmpTrapSerializeAuthenticationProtocol.NONE
|
|
53
|
+
|
|
54
|
+
auth_key: Annotated[Optional[Any], pydantic.Field(alias="authKey")] = None
|
|
55
|
+
|
|
56
|
+
priv_protocol: Annotated[Optional[str], pydantic.Field(alias="privProtocol")] = (
|
|
57
|
+
"none"
|
|
58
|
+
)
|
|
59
|
+
|
|
60
|
+
@field_serializer("auth_protocol")
|
|
61
|
+
def serialize_auth_protocol(self, value):
|
|
62
|
+
if isinstance(value, str):
|
|
63
|
+
try:
|
|
64
|
+
return models.FunctionConfSchemaSnmpTrapSerializeAuthenticationProtocol(
|
|
65
|
+
value
|
|
66
|
+
)
|
|
67
|
+
except ValueError:
|
|
68
|
+
return value
|
|
69
|
+
return value
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class FunctionConfSchemaSnmpTrapSerializeTypedDict(TypedDict):
|
|
73
|
+
strict: NotRequired[bool]
|
|
74
|
+
r"""Prevent event serialization if any required fields are missing. When disabled, @{product} will attempt to serialize the event even if required fields are missing, which could cause unexpected behavior at the downstream receiver."""
|
|
75
|
+
drop_failed_events: NotRequired[bool]
|
|
76
|
+
r"""When disabled, `snmpSerializeErrors` will be set on the event, and the `__snmpRaw` field will be removed to prevent @{product} from sending the event from the SNMP Trap Destination"""
|
|
77
|
+
v3_user: NotRequired[FunctionConfSchemaSnmpTrapSerializeV3UserTypedDict]
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
class FunctionConfSchemaSnmpTrapSerialize(BaseModel):
|
|
81
|
+
strict: Optional[bool] = True
|
|
82
|
+
r"""Prevent event serialization if any required fields are missing. When disabled, @{product} will attempt to serialize the event even if required fields are missing, which could cause unexpected behavior at the downstream receiver."""
|
|
83
|
+
|
|
84
|
+
drop_failed_events: Annotated[
|
|
85
|
+
Optional[bool], pydantic.Field(alias="dropFailedEvents")
|
|
86
|
+
] = True
|
|
87
|
+
r"""When disabled, `snmpSerializeErrors` will be set on the event, and the `__snmpRaw` field will be removed to prevent @{product} from sending the event from the SNMP Trap Destination"""
|
|
88
|
+
|
|
89
|
+
v3_user: Annotated[
|
|
90
|
+
Optional[FunctionConfSchemaSnmpTrapSerializeV3User],
|
|
91
|
+
pydantic.Field(alias="v3User"),
|
|
92
|
+
] = None
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FunctionConfSchemaSortTypedDict(TypedDict):
|
|
11
|
+
sort_id: NotRequired[str]
|
|
12
|
+
r"""Has to be unique if there are multiple sorts on the pipeline."""
|
|
13
|
+
comparison_expression: NotRequired[str]
|
|
14
|
+
r"""The expression can access the events via the 'left' and 'right' properties."""
|
|
15
|
+
top_n: NotRequired[float]
|
|
16
|
+
r"""Limits the output to N (highest/lowest) events"""
|
|
17
|
+
max_events: NotRequired[float]
|
|
18
|
+
r"""Specifies the number of events that can flow into this function"""
|
|
19
|
+
suppress_previews: NotRequired[bool]
|
|
20
|
+
r"""Toggle this on to suppress generating previews of intermediate results"""
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class FunctionConfSchemaSort(BaseModel):
|
|
24
|
+
sort_id: Annotated[Optional[str], pydantic.Field(alias="sortId")] = None
|
|
25
|
+
r"""Has to be unique if there are multiple sorts on the pipeline."""
|
|
26
|
+
|
|
27
|
+
comparison_expression: Annotated[
|
|
28
|
+
Optional[str], pydantic.Field(alias="comparisonExpression")
|
|
29
|
+
] = None
|
|
30
|
+
r"""The expression can access the events via the 'left' and 'right' properties."""
|
|
31
|
+
|
|
32
|
+
top_n: Annotated[Optional[float], pydantic.Field(alias="topN")] = None
|
|
33
|
+
r"""Limits the output to N (highest/lowest) events"""
|
|
34
|
+
|
|
35
|
+
max_events: Annotated[Optional[float], pydantic.Field(alias="maxEvents")] = None
|
|
36
|
+
r"""Specifies the number of events that can flow into this function"""
|
|
37
|
+
|
|
38
|
+
suppress_previews: Annotated[
|
|
39
|
+
Optional[bool], pydantic.Field(alias="suppressPreviews")
|
|
40
|
+
] = None
|
|
41
|
+
r"""Toggle this on to suppress generating previews of intermediate results"""
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FunctionConfSchemaStoreMappingOfFieldNamesTypedDict(TypedDict):
|
|
11
|
+
r"""Mapping event property names to output field names"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class FunctionConfSchemaStoreMappingOfFieldNames(BaseModel):
|
|
15
|
+
r"""Mapping event property names to output field names"""
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class FunctionConfSchemaStoreTypedDict(TypedDict):
|
|
19
|
+
type: NotRequired[str]
|
|
20
|
+
r"""The type of knowledge object, generated by the function (i.e., 'lookup')"""
|
|
21
|
+
destination: NotRequired[str]
|
|
22
|
+
r"""Configures where and how the data should be stored"""
|
|
23
|
+
description: NotRequired[str]
|
|
24
|
+
r"""The knowledge object's description"""
|
|
25
|
+
field_mapping: NotRequired[FunctionConfSchemaStoreMappingOfFieldNamesTypedDict]
|
|
26
|
+
r"""Mapping event property names to output field names"""
|
|
27
|
+
separator: NotRequired[str]
|
|
28
|
+
r"""Character to be used as value delimiter in output"""
|
|
29
|
+
overwrite: NotRequired[bool]
|
|
30
|
+
r"""For existing files, an error is thrown if overwrite is false or the file is replaced if overwrite is true"""
|
|
31
|
+
compress: NotRequired[str]
|
|
32
|
+
r"""True will compress output, false leaves it as it is and auto decides based on size"""
|
|
33
|
+
tee: NotRequired[bool]
|
|
34
|
+
r"""Tee results to the next operator"""
|
|
35
|
+
max_events: NotRequired[float]
|
|
36
|
+
r"""Limits how many events can be stored"""
|
|
37
|
+
suppress_previews: NotRequired[bool]
|
|
38
|
+
r"""Suppresses the timer-based export stats generating"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
class FunctionConfSchemaStore(BaseModel):
|
|
42
|
+
type: Optional[str] = "lookup"
|
|
43
|
+
r"""The type of knowledge object, generated by the function (i.e., 'lookup')"""
|
|
44
|
+
|
|
45
|
+
destination: Optional[str] = None
|
|
46
|
+
r"""Configures where and how the data should be stored"""
|
|
47
|
+
|
|
48
|
+
description: Optional[str] = None
|
|
49
|
+
r"""The knowledge object's description"""
|
|
50
|
+
|
|
51
|
+
field_mapping: Annotated[
|
|
52
|
+
Optional[FunctionConfSchemaStoreMappingOfFieldNames],
|
|
53
|
+
pydantic.Field(alias="fieldMapping"),
|
|
54
|
+
] = None
|
|
55
|
+
r"""Mapping event property names to output field names"""
|
|
56
|
+
|
|
57
|
+
separator: Optional[str] = ","
|
|
58
|
+
r"""Character to be used as value delimiter in output"""
|
|
59
|
+
|
|
60
|
+
overwrite: Optional[bool] = False
|
|
61
|
+
r"""For existing files, an error is thrown if overwrite is false or the file is replaced if overwrite is true"""
|
|
62
|
+
|
|
63
|
+
compress: Optional[str] = "auto"
|
|
64
|
+
r"""True will compress output, false leaves it as it is and auto decides based on size"""
|
|
65
|
+
|
|
66
|
+
tee: Optional[bool] = False
|
|
67
|
+
r"""Tee results to the next operator"""
|
|
68
|
+
|
|
69
|
+
max_events: Annotated[Optional[float], pydantic.Field(alias="maxEvents")] = 10000
|
|
70
|
+
r"""Limits how many events can be stored"""
|
|
71
|
+
|
|
72
|
+
suppress_previews: Annotated[
|
|
73
|
+
Optional[bool], pydantic.Field(alias="suppressPreviews")
|
|
74
|
+
] = False
|
|
75
|
+
r"""Suppresses the timer-based export stats generating"""
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FunctionConfSchemaSuppressTypedDict(TypedDict):
|
|
11
|
+
key_expr: NotRequired[str]
|
|
12
|
+
r"""Suppression key expression used to uniquely identify events to suppress. For example, `${ip}:${port}` will use fields ip and port from each event to generate the key."""
|
|
13
|
+
allow: NotRequired[float]
|
|
14
|
+
r"""The number of events to allow per time period"""
|
|
15
|
+
suppress_period_sec: NotRequired[float]
|
|
16
|
+
r"""The number of seconds to suppress events after 'Number to allow' events are received"""
|
|
17
|
+
drop_events_mode: NotRequired[bool]
|
|
18
|
+
r"""If disabled, suppressed events will be tagged with suppress=1 but not dropped"""
|
|
19
|
+
max_cache_size: NotRequired[float]
|
|
20
|
+
r"""The maximum number of keys that can be cached before idle entries are removed. Leave at default unless you understand the implications of changing."""
|
|
21
|
+
cache_idle_timeout_periods: NotRequired[float]
|
|
22
|
+
r"""The number of suppression periods 'Suppression Period' of inactivity before a cache entry is considered idle. Leave at default unless you understand the implications of changing."""
|
|
23
|
+
num_events_idle_timeout_trigger: NotRequired[float]
|
|
24
|
+
r"""Check cache for idle sessions every N events when cache size is > 'Maximum Cache Size'. Leave at default unless you understand the implications of changing."""
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class FunctionConfSchemaSuppress(BaseModel):
|
|
28
|
+
key_expr: Annotated[Optional[str], pydantic.Field(alias="keyExpr")] = None
|
|
29
|
+
r"""Suppression key expression used to uniquely identify events to suppress. For example, `${ip}:${port}` will use fields ip and port from each event to generate the key."""
|
|
30
|
+
|
|
31
|
+
allow: Optional[float] = 1
|
|
32
|
+
r"""The number of events to allow per time period"""
|
|
33
|
+
|
|
34
|
+
suppress_period_sec: Annotated[
|
|
35
|
+
Optional[float], pydantic.Field(alias="suppressPeriodSec")
|
|
36
|
+
] = 30
|
|
37
|
+
r"""The number of seconds to suppress events after 'Number to allow' events are received"""
|
|
38
|
+
|
|
39
|
+
drop_events_mode: Annotated[
|
|
40
|
+
Optional[bool], pydantic.Field(alias="dropEventsMode")
|
|
41
|
+
] = True
|
|
42
|
+
r"""If disabled, suppressed events will be tagged with suppress=1 but not dropped"""
|
|
43
|
+
|
|
44
|
+
max_cache_size: Annotated[Optional[float], pydantic.Field(alias="maxCacheSize")] = (
|
|
45
|
+
50000
|
|
46
|
+
)
|
|
47
|
+
r"""The maximum number of keys that can be cached before idle entries are removed. Leave at default unless you understand the implications of changing."""
|
|
48
|
+
|
|
49
|
+
cache_idle_timeout_periods: Annotated[
|
|
50
|
+
Optional[float], pydantic.Field(alias="cacheIdleTimeoutPeriods")
|
|
51
|
+
] = 2
|
|
52
|
+
r"""The number of suppression periods 'Suppression Period' of inactivity before a cache entry is considered idle. Leave at default unless you understand the implications of changing."""
|
|
53
|
+
|
|
54
|
+
num_events_idle_timeout_trigger: Annotated[
|
|
55
|
+
Optional[float], pydantic.Field(alias="numEventsIdleTimeoutTrigger")
|
|
56
|
+
] = 10000
|
|
57
|
+
r"""Check cache for idle sessions every N events when cache size is > 'Maximum Cache Size'. Leave at default unless you understand the implications of changing."""
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import Dict, List, Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FunctionConfSchemaTeeTypedDict(TypedDict):
|
|
11
|
+
command: NotRequired[str]
|
|
12
|
+
r"""Command to execute and feed events to, via stdin. One JSON-formatted event per line."""
|
|
13
|
+
args: NotRequired[List[str]]
|
|
14
|
+
restart_on_exit: NotRequired[bool]
|
|
15
|
+
r"""Restart the process if it exits and/or we fail to write to it"""
|
|
16
|
+
env: NotRequired[Dict[str, str]]
|
|
17
|
+
r"""Environment variables to overwrite or set"""
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class FunctionConfSchemaTee(BaseModel):
|
|
21
|
+
command: Optional[str] = None
|
|
22
|
+
r"""Command to execute and feed events to, via stdin. One JSON-formatted event per line."""
|
|
23
|
+
|
|
24
|
+
args: Optional[List[str]] = None
|
|
25
|
+
|
|
26
|
+
restart_on_exit: Annotated[
|
|
27
|
+
Optional[bool], pydantic.Field(alias="restartOnExit")
|
|
28
|
+
] = True
|
|
29
|
+
r"""Restart the process if it exits and/or we fail to write to it"""
|
|
30
|
+
|
|
31
|
+
env: Optional[Dict[str, str]] = None
|
|
32
|
+
r"""Environment variables to overwrite or set"""
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
from typing import Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class FunctionConfSchemaTrimTimestampTypedDict(TypedDict):
|
|
10
|
+
field: NotRequired[str]
|
|
11
|
+
r"""Name of field in which to save the timestamp. (If empty, timestamp will not be saved to a field.)"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class FunctionConfSchemaTrimTimestamp(BaseModel):
|
|
15
|
+
field: Optional[str] = None
|
|
16
|
+
r"""Name of field in which to save the timestamp. (If empty, timestamp will not be saved to a field.)"""
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import List, Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FunctionConfSchemaUnionTypedDict(TypedDict):
|
|
11
|
+
search_job_id: NotRequired[str]
|
|
12
|
+
r"""The id for this search job."""
|
|
13
|
+
stage_ids: NotRequired[List[str]]
|
|
14
|
+
r"""The stages we are unioning with."""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class FunctionConfSchemaUnion(BaseModel):
|
|
18
|
+
search_job_id: Annotated[Optional[str], pydantic.Field(alias="searchJobId")] = None
|
|
19
|
+
r"""The id for this search job."""
|
|
20
|
+
|
|
21
|
+
stage_ids: Annotated[Optional[List[str]], pydantic.Field(alias="stageIds")] = None
|
|
22
|
+
r"""The stages we are unioning with."""
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FunctionConfSchemaUnrollTypedDict(TypedDict):
|
|
11
|
+
src_expr: NotRequired[str]
|
|
12
|
+
r"""Field in which to find/calculate the array to unroll. Example: _raw, _raw.split(/\n/)"""
|
|
13
|
+
dst_field: NotRequired[str]
|
|
14
|
+
r"""Field in destination event in which to place the unrolled value"""
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
class FunctionConfSchemaUnroll(BaseModel):
|
|
18
|
+
src_expr: Annotated[Optional[str], pydantic.Field(alias="srcExpr")] = "_raw"
|
|
19
|
+
r"""Field in which to find/calculate the array to unroll. Example: _raw, _raw.split(/\n/)"""
|
|
20
|
+
|
|
21
|
+
dst_field: Annotated[Optional[str], pydantic.Field(alias="dstField")] = "_raw"
|
|
22
|
+
r"""Field in destination event in which to place the unrolled value"""
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import List, Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FunctionConfSchemaWindowTypedDict(TypedDict):
|
|
11
|
+
event_window_id: NotRequired[float]
|
|
12
|
+
r"""Identifies the unique ID, used for a event window"""
|
|
13
|
+
registered_functions: NotRequired[List[str]]
|
|
14
|
+
r"""All window functions, tracked by this event window"""
|
|
15
|
+
tail_event_count: NotRequired[float]
|
|
16
|
+
r"""Number of events to keep before the current event in the window"""
|
|
17
|
+
head_event_count: NotRequired[float]
|
|
18
|
+
r"""Number of events to keep after the current event in the window"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class FunctionConfSchemaWindow(BaseModel):
|
|
22
|
+
event_window_id: Annotated[
|
|
23
|
+
Optional[float], pydantic.Field(alias="eventWindowId")
|
|
24
|
+
] = None
|
|
25
|
+
r"""Identifies the unique ID, used for a event window"""
|
|
26
|
+
|
|
27
|
+
registered_functions: Annotated[
|
|
28
|
+
Optional[List[str]], pydantic.Field(alias="registeredFunctions")
|
|
29
|
+
] = None
|
|
30
|
+
r"""All window functions, tracked by this event window"""
|
|
31
|
+
|
|
32
|
+
tail_event_count: Annotated[
|
|
33
|
+
Optional[float], pydantic.Field(alias="tailEventCount")
|
|
34
|
+
] = 0
|
|
35
|
+
r"""Number of events to keep before the current event in the window"""
|
|
36
|
+
|
|
37
|
+
head_event_count: Annotated[
|
|
38
|
+
Optional[float], pydantic.Field(alias="headEventCount")
|
|
39
|
+
] = 0
|
|
40
|
+
r"""Number of events to keep after the current event in the window"""
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane.types import BaseModel
|
|
5
|
+
import pydantic
|
|
6
|
+
from typing import Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FunctionConfSchemaXMLUnrollTypedDict(TypedDict):
|
|
11
|
+
unroll: NotRequired[str]
|
|
12
|
+
r"""Path to array to unroll. Example: ^root\.child\.ElementToUnroll$"""
|
|
13
|
+
inherit: NotRequired[str]
|
|
14
|
+
r"""Regex matching elements to copy into each unrolled event. Example: ^root\.(childA|childB|childC)$"""
|
|
15
|
+
unroll_idx_field: NotRequired[str]
|
|
16
|
+
r"""Add a field with this name, containing the index at which the item was located, starting from 0"""
|
|
17
|
+
pretty: NotRequired[bool]
|
|
18
|
+
r"""Pretty print the output XML"""
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class FunctionConfSchemaXMLUnroll(BaseModel):
|
|
22
|
+
unroll: Optional[str] = None
|
|
23
|
+
r"""Path to array to unroll. Example: ^root\.child\.ElementToUnroll$"""
|
|
24
|
+
|
|
25
|
+
inherit: Optional[str] = None
|
|
26
|
+
r"""Regex matching elements to copy into each unrolled event. Example: ^root\.(childA|childB|childC)$"""
|
|
27
|
+
|
|
28
|
+
unroll_idx_field: Annotated[
|
|
29
|
+
Optional[str], pydantic.Field(alias="unrollIdxField")
|
|
30
|
+
] = "unroll_idx"
|
|
31
|
+
r"""Add a field with this name, containing the index at which the item was located, starting from 0"""
|
|
32
|
+
|
|
33
|
+
pretty: Optional[bool] = False
|
|
34
|
+
r"""Pretty print the output XML"""
|
|
@@ -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 .functionconfschemadistinct import (
|
|
5
|
+
FunctionConfSchemaDistinct,
|
|
6
|
+
FunctionConfSchemaDistinctTypedDict,
|
|
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,40 +16,6 @@ class FunctionDistinctID(str, Enum):
|
|
|
12
16
|
DISTINCT = "distinct"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class DistinctConfigurationTypedDict(TypedDict):
|
|
16
|
-
group_by: List[str]
|
|
17
|
-
r"""Defines the properties that are concatenated to produce distinct key"""
|
|
18
|
-
max_combinations: NotRequired[float]
|
|
19
|
-
r"""maximum number of tracked combinations"""
|
|
20
|
-
max_depth: NotRequired[float]
|
|
21
|
-
r"""maximum number of groupBy properties"""
|
|
22
|
-
is_federated: NotRequired[bool]
|
|
23
|
-
r"""indicator that the operator runs on a federated executor"""
|
|
24
|
-
suppress_previews: NotRequired[bool]
|
|
25
|
-
r"""Toggle this on to suppress generating previews of intermediate results"""
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class DistinctConfiguration(BaseModel):
|
|
29
|
-
group_by: Annotated[List[str], pydantic.Field(alias="groupBy")]
|
|
30
|
-
r"""Defines the properties that are concatenated to produce distinct key"""
|
|
31
|
-
|
|
32
|
-
max_combinations: Annotated[
|
|
33
|
-
Optional[float], pydantic.Field(alias="maxCombinations")
|
|
34
|
-
] = 10000
|
|
35
|
-
r"""maximum number of tracked combinations"""
|
|
36
|
-
|
|
37
|
-
max_depth: Annotated[Optional[float], pydantic.Field(alias="maxDepth")] = 15
|
|
38
|
-
r"""maximum number of groupBy properties"""
|
|
39
|
-
|
|
40
|
-
is_federated: Annotated[Optional[bool], pydantic.Field(alias="isFederated")] = False
|
|
41
|
-
r"""indicator that the operator runs on a federated executor"""
|
|
42
|
-
|
|
43
|
-
suppress_previews: Annotated[
|
|
44
|
-
Optional[bool], pydantic.Field(alias="suppressPreviews")
|
|
45
|
-
] = None
|
|
46
|
-
r"""Toggle this on to suppress generating previews of intermediate results"""
|
|
47
|
-
|
|
48
|
-
|
|
49
19
|
class FunctionDistinctTypedDict(TypedDict):
|
|
50
20
|
filename: str
|
|
51
21
|
group: str
|
|
@@ -60,7 +30,7 @@ class FunctionDistinctTypedDict(TypedDict):
|
|
|
60
30
|
disabled: NotRequired[bool]
|
|
61
31
|
handle_signals: NotRequired[bool]
|
|
62
32
|
sync: NotRequired[bool]
|
|
63
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaDistinctTypedDict]
|
|
64
34
|
|
|
65
35
|
|
|
66
36
|
class FunctionDistinct(BaseModel):
|
|
@@ -95,5 +65,5 @@ class FunctionDistinct(BaseModel):
|
|
|
95
65
|
sync: Optional[bool] = None
|
|
96
66
|
|
|
97
67
|
schema_: Annotated[
|
|
98
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaDistinct], pydantic.Field(alias="schema")
|
|
99
69
|
] = None
|