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,14 +1,14 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from .functionconfschemadnslookup import (
|
|
5
|
+
FunctionConfSchemaDNSLookup,
|
|
6
|
+
FunctionConfSchemaDNSLookupTypedDict,
|
|
7
|
+
)
|
|
5
8
|
from cribl_control_plane.types import BaseModel
|
|
6
|
-
from cribl_control_plane.utils import validate_open_enum
|
|
7
9
|
from enum import Enum
|
|
8
10
|
import pydantic
|
|
9
|
-
from
|
|
10
|
-
from pydantic.functional_validators import PlainValidator
|
|
11
|
-
from typing import Any, Dict, List, Optional
|
|
11
|
+
from typing import Any, Dict, Optional
|
|
12
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
13
|
|
|
14
14
|
|
|
@@ -16,187 +16,6 @@ class FunctionDNSLookupID(str, Enum):
|
|
|
16
16
|
DNS_LOOKUP = "dns_lookup"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
class ResourceRecordType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
20
|
-
r"""The DNS record type (RR) to return. Defaults to 'A'."""
|
|
21
|
-
|
|
22
|
-
# A
|
|
23
|
-
A = "A"
|
|
24
|
-
# AAAA
|
|
25
|
-
AAAA = "AAAA"
|
|
26
|
-
# ANY
|
|
27
|
-
ANY = "ANY"
|
|
28
|
-
# CNAME
|
|
29
|
-
CNAME = "CNAME"
|
|
30
|
-
# MX
|
|
31
|
-
MX = "MX"
|
|
32
|
-
# NAPTR
|
|
33
|
-
NAPTR = "NAPTR"
|
|
34
|
-
# NS
|
|
35
|
-
NS = "NS"
|
|
36
|
-
# PTR
|
|
37
|
-
PTR = "PTR"
|
|
38
|
-
# SOA
|
|
39
|
-
SOA = "SOA"
|
|
40
|
-
# SRV
|
|
41
|
-
SRV = "SRV"
|
|
42
|
-
# TXT
|
|
43
|
-
TXT = "TXT"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
class DNSLookupFieldTypedDict(TypedDict):
|
|
47
|
-
in_field_name: NotRequired[str]
|
|
48
|
-
resource_record_type: NotRequired[ResourceRecordType]
|
|
49
|
-
r"""The DNS record type (RR) to return. Defaults to 'A'."""
|
|
50
|
-
out_field_name: NotRequired[str]
|
|
51
|
-
r"""Name of field to add lookup results to. Leave blank to overwrite the lookup field."""
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
class DNSLookupField(BaseModel):
|
|
55
|
-
in_field_name: Annotated[Optional[str], pydantic.Field(alias="inFieldName")] = None
|
|
56
|
-
|
|
57
|
-
resource_record_type: Annotated[
|
|
58
|
-
Annotated[
|
|
59
|
-
Optional[ResourceRecordType], PlainValidator(validate_open_enum(False))
|
|
60
|
-
],
|
|
61
|
-
pydantic.Field(alias="resourceRecordType"),
|
|
62
|
-
] = ResourceRecordType.A
|
|
63
|
-
r"""The DNS record type (RR) to return. Defaults to 'A'."""
|
|
64
|
-
|
|
65
|
-
out_field_name: Annotated[Optional[str], pydantic.Field(alias="outFieldName")] = (
|
|
66
|
-
None
|
|
67
|
-
)
|
|
68
|
-
r"""Name of field to add lookup results to. Leave blank to overwrite the lookup field."""
|
|
69
|
-
|
|
70
|
-
@field_serializer("resource_record_type")
|
|
71
|
-
def serialize_resource_record_type(self, value):
|
|
72
|
-
if isinstance(value, str):
|
|
73
|
-
try:
|
|
74
|
-
return models.ResourceRecordType(value)
|
|
75
|
-
except ValueError:
|
|
76
|
-
return value
|
|
77
|
-
return value
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
class ReverseLookupFieldTypedDict(TypedDict):
|
|
81
|
-
in_field_name: NotRequired[str]
|
|
82
|
-
r"""Name of the field containing the IP to look up. If the field value is not in IPv4 or IPv6 format, the lookup is skipped."""
|
|
83
|
-
out_field_name: NotRequired[str]
|
|
84
|
-
r"""Name of field to add the resolved domain to. Leave blank to overwrite the lookup field."""
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
class ReverseLookupField(BaseModel):
|
|
88
|
-
in_field_name: Annotated[Optional[str], pydantic.Field(alias="inFieldName")] = None
|
|
89
|
-
r"""Name of the field containing the IP to look up. If the field value is not in IPv4 or IPv6 format, the lookup is skipped."""
|
|
90
|
-
|
|
91
|
-
out_field_name: Annotated[Optional[str], pydantic.Field(alias="outFieldName")] = (
|
|
92
|
-
None
|
|
93
|
-
)
|
|
94
|
-
r"""Name of field to add the resolved domain to. Leave blank to overwrite the lookup field."""
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
class LogLevelForFailedLookups(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
98
|
-
# silly
|
|
99
|
-
SILLY = "silly"
|
|
100
|
-
# debug
|
|
101
|
-
DEBUG = "debug"
|
|
102
|
-
# info
|
|
103
|
-
INFO = "info"
|
|
104
|
-
# warn
|
|
105
|
-
WARN = "warn"
|
|
106
|
-
# error
|
|
107
|
-
ERROR = "error"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
class FunctionDNSLookupSchemaTypedDict(TypedDict):
|
|
111
|
-
dns_lookup_fields: NotRequired[List[DNSLookupFieldTypedDict]]
|
|
112
|
-
r"""List of field names on which to perform DNS lookup"""
|
|
113
|
-
reverse_lookup_fields: NotRequired[List[ReverseLookupFieldTypedDict]]
|
|
114
|
-
r"""List of field names on which to perform reverse DNS lookup"""
|
|
115
|
-
dns_servers: NotRequired[List[str]]
|
|
116
|
-
r"""IPs, in RFC 5952 format, of the DNS servers to use for resolution. Examples: IPv4 1.1.1.1, 4.2.2.2:53, or IPv6 [2001:4860:4860::8888], [2001:4860:4860::8888]:1053. If not specified, system's DNS will be used."""
|
|
117
|
-
cache_ttl: NotRequired[float]
|
|
118
|
-
r"""How frequently to expire and refetch DNS cache. Use 0 to disable."""
|
|
119
|
-
max_cache_size: NotRequired[float]
|
|
120
|
-
r"""The maximum number of DNS resolutions to be cached locally. Leave at default unless you understand the implications of changing."""
|
|
121
|
-
use_resolv_conf: NotRequired[bool]
|
|
122
|
-
r"""Attempt to resolve DNS short names using the search or domain directive from /etc/resolv.conf"""
|
|
123
|
-
lookup_fallback: NotRequired[bool]
|
|
124
|
-
r"""If unable to resolve a DNS short name, make a DNS.lookup() call to resolve it. Caution: This might degrade performance in unrelated areas of @{product}."""
|
|
125
|
-
domain_overrides: NotRequired[List[str]]
|
|
126
|
-
r"""Specify fallback values for the DNS resolver to use when it cannot resolve a DNS short name"""
|
|
127
|
-
lookup_fail_log_level: NotRequired[LogLevelForFailedLookups]
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
class FunctionDNSLookupSchema(BaseModel):
|
|
131
|
-
model_config = ConfigDict(
|
|
132
|
-
populate_by_name=True, arbitrary_types_allowed=True, extra="allow"
|
|
133
|
-
)
|
|
134
|
-
__pydantic_extra__: Dict[str, Any] = pydantic.Field(init=False)
|
|
135
|
-
|
|
136
|
-
dns_lookup_fields: Annotated[
|
|
137
|
-
Optional[List[DNSLookupField]], pydantic.Field(alias="dnsLookupFields")
|
|
138
|
-
] = None
|
|
139
|
-
r"""List of field names on which to perform DNS lookup"""
|
|
140
|
-
|
|
141
|
-
reverse_lookup_fields: Annotated[
|
|
142
|
-
Optional[List[ReverseLookupField]], pydantic.Field(alias="reverseLookupFields")
|
|
143
|
-
] = None
|
|
144
|
-
r"""List of field names on which to perform reverse DNS lookup"""
|
|
145
|
-
|
|
146
|
-
dns_servers: Annotated[Optional[List[str]], pydantic.Field(alias="dnsServers")] = (
|
|
147
|
-
None
|
|
148
|
-
)
|
|
149
|
-
r"""IPs, in RFC 5952 format, of the DNS servers to use for resolution. Examples: IPv4 1.1.1.1, 4.2.2.2:53, or IPv6 [2001:4860:4860::8888], [2001:4860:4860::8888]:1053. If not specified, system's DNS will be used."""
|
|
150
|
-
|
|
151
|
-
cache_ttl: Annotated[Optional[float], pydantic.Field(alias="cacheTTL")] = 30
|
|
152
|
-
r"""How frequently to expire and refetch DNS cache. Use 0 to disable."""
|
|
153
|
-
|
|
154
|
-
max_cache_size: Annotated[Optional[float], pydantic.Field(alias="maxCacheSize")] = (
|
|
155
|
-
5000
|
|
156
|
-
)
|
|
157
|
-
r"""The maximum number of DNS resolutions to be cached locally. Leave at default unless you understand the implications of changing."""
|
|
158
|
-
|
|
159
|
-
use_resolv_conf: Annotated[
|
|
160
|
-
Optional[bool], pydantic.Field(alias="useResolvConf")
|
|
161
|
-
] = False
|
|
162
|
-
r"""Attempt to resolve DNS short names using the search or domain directive from /etc/resolv.conf"""
|
|
163
|
-
|
|
164
|
-
lookup_fallback: Annotated[
|
|
165
|
-
Optional[bool], pydantic.Field(alias="lookupFallback")
|
|
166
|
-
] = False
|
|
167
|
-
r"""If unable to resolve a DNS short name, make a DNS.lookup() call to resolve it. Caution: This might degrade performance in unrelated areas of @{product}."""
|
|
168
|
-
|
|
169
|
-
domain_overrides: Annotated[
|
|
170
|
-
Optional[List[str]], pydantic.Field(alias="domainOverrides")
|
|
171
|
-
] = None
|
|
172
|
-
r"""Specify fallback values for the DNS resolver to use when it cannot resolve a DNS short name"""
|
|
173
|
-
|
|
174
|
-
lookup_fail_log_level: Annotated[
|
|
175
|
-
Annotated[
|
|
176
|
-
Optional[LogLevelForFailedLookups],
|
|
177
|
-
PlainValidator(validate_open_enum(False)),
|
|
178
|
-
],
|
|
179
|
-
pydantic.Field(alias="lookupFailLogLevel"),
|
|
180
|
-
] = LogLevelForFailedLookups.ERROR
|
|
181
|
-
|
|
182
|
-
@property
|
|
183
|
-
def additional_properties(self):
|
|
184
|
-
return self.__pydantic_extra__
|
|
185
|
-
|
|
186
|
-
@additional_properties.setter
|
|
187
|
-
def additional_properties(self, value):
|
|
188
|
-
self.__pydantic_extra__ = value # pyright: ignore[reportIncompatibleVariableOverride]
|
|
189
|
-
|
|
190
|
-
@field_serializer("lookup_fail_log_level")
|
|
191
|
-
def serialize_lookup_fail_log_level(self, value):
|
|
192
|
-
if isinstance(value, str):
|
|
193
|
-
try:
|
|
194
|
-
return models.LogLevelForFailedLookups(value)
|
|
195
|
-
except ValueError:
|
|
196
|
-
return value
|
|
197
|
-
return value
|
|
198
|
-
|
|
199
|
-
|
|
200
19
|
class FunctionDNSLookupTypedDict(TypedDict):
|
|
201
20
|
filename: str
|
|
202
21
|
group: str
|
|
@@ -211,7 +30,7 @@ class FunctionDNSLookupTypedDict(TypedDict):
|
|
|
211
30
|
disabled: NotRequired[bool]
|
|
212
31
|
handle_signals: NotRequired[bool]
|
|
213
32
|
sync: NotRequired[bool]
|
|
214
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaDNSLookupTypedDict]
|
|
215
34
|
|
|
216
35
|
|
|
217
36
|
class FunctionDNSLookup(BaseModel):
|
|
@@ -246,5 +65,5 @@ class FunctionDNSLookup(BaseModel):
|
|
|
246
65
|
sync: Optional[bool] = None
|
|
247
66
|
|
|
248
67
|
schema_: Annotated[
|
|
249
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaDNSLookup], pydantic.Field(alias="schema")
|
|
250
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 .functionconfschemadrop import (
|
|
5
|
+
FunctionConfSchemaDrop,
|
|
6
|
+
FunctionConfSchemaDropTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
@@ -12,14 +16,6 @@ class FunctionDropID(str, Enum):
|
|
|
12
16
|
DROP = "drop"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class FunctionDropSchemaTypedDict(TypedDict):
|
|
16
|
-
pass
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class FunctionDropSchema(BaseModel):
|
|
20
|
-
pass
|
|
21
|
-
|
|
22
|
-
|
|
23
19
|
class FunctionDropTypedDict(TypedDict):
|
|
24
20
|
filename: str
|
|
25
21
|
group: str
|
|
@@ -34,7 +30,7 @@ class FunctionDropTypedDict(TypedDict):
|
|
|
34
30
|
disabled: NotRequired[bool]
|
|
35
31
|
handle_signals: NotRequired[bool]
|
|
36
32
|
sync: NotRequired[bool]
|
|
37
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaDropTypedDict]
|
|
38
34
|
|
|
39
35
|
|
|
40
36
|
class FunctionDrop(BaseModel):
|
|
@@ -68,6 +64,6 @@ class FunctionDrop(BaseModel):
|
|
|
68
64
|
|
|
69
65
|
sync: Optional[bool] = None
|
|
70
66
|
|
|
71
|
-
schema_: Annotated[
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
schema_: Annotated[
|
|
68
|
+
Optional[FunctionConfSchemaDrop], pydantic.Field(alias="schema")
|
|
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 .functionconfschemadropdimensions import (
|
|
5
|
+
FunctionConfSchemaDropDimensions,
|
|
6
|
+
FunctionConfSchemaDropDimensionsTypedDict,
|
|
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,28 +16,6 @@ class FunctionDropDimensionsID(str, Enum):
|
|
|
12
16
|
DROP_DIMENSIONS = "drop_dimensions"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class FunctionDropDimensionsSchemaTypedDict(TypedDict):
|
|
16
|
-
drop_dimensions: List[str]
|
|
17
|
-
r"""One or more dimensions to be dropped. Supports wildcard expressions. Warning: Using wildcard '*' causes all dimensions in the event to be dropped."""
|
|
18
|
-
time_window: NotRequired[str]
|
|
19
|
-
r"""The time span of the tumbling window for aggregating events. Must be a valid time string (such as 10s)."""
|
|
20
|
-
flush_on_input_close: NotRequired[bool]
|
|
21
|
-
r"""Flush aggregations when an input stream is closed. If disabled, aggregations are flushed based on Time Window Settings instead."""
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class FunctionDropDimensionsSchema(BaseModel):
|
|
25
|
-
drop_dimensions: Annotated[List[str], pydantic.Field(alias="dropDimensions")]
|
|
26
|
-
r"""One or more dimensions to be dropped. Supports wildcard expressions. Warning: Using wildcard '*' causes all dimensions in the event to be dropped."""
|
|
27
|
-
|
|
28
|
-
time_window: Annotated[Optional[str], pydantic.Field(alias="timeWindow")] = "10s"
|
|
29
|
-
r"""The time span of the tumbling window for aggregating events. Must be a valid time string (such as 10s)."""
|
|
30
|
-
|
|
31
|
-
flush_on_input_close: Annotated[
|
|
32
|
-
Optional[bool], pydantic.Field(alias="flushOnInputClose")
|
|
33
|
-
] = True
|
|
34
|
-
r"""Flush aggregations when an input stream is closed. If disabled, aggregations are flushed based on Time Window Settings instead."""
|
|
35
|
-
|
|
36
|
-
|
|
37
19
|
class FunctionDropDimensionsTypedDict(TypedDict):
|
|
38
20
|
filename: str
|
|
39
21
|
group: str
|
|
@@ -48,7 +30,7 @@ class FunctionDropDimensionsTypedDict(TypedDict):
|
|
|
48
30
|
disabled: NotRequired[bool]
|
|
49
31
|
handle_signals: NotRequired[bool]
|
|
50
32
|
sync: NotRequired[bool]
|
|
51
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaDropDimensionsTypedDict]
|
|
52
34
|
|
|
53
35
|
|
|
54
36
|
class FunctionDropDimensions(BaseModel):
|
|
@@ -83,5 +65,5 @@ class FunctionDropDimensions(BaseModel):
|
|
|
83
65
|
sync: Optional[bool] = None
|
|
84
66
|
|
|
85
67
|
schema_: Annotated[
|
|
86
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaDropDimensions], pydantic.Field(alias="schema")
|
|
87
69
|
] = None
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from .functionconfschemadynamicsampling import (
|
|
5
|
+
FunctionConfSchemaDynamicSampling,
|
|
6
|
+
FunctionConfSchemaDynamicSamplingTypedDict,
|
|
7
|
+
)
|
|
5
8
|
from cribl_control_plane.types import BaseModel
|
|
6
|
-
from cribl_control_plane.utils import validate_open_enum
|
|
7
9
|
from enum import Enum
|
|
8
10
|
import pydantic
|
|
9
|
-
from pydantic import field_serializer
|
|
10
|
-
from pydantic.functional_validators import PlainValidator
|
|
11
11
|
from typing import Any, Dict, Optional
|
|
12
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
13
|
|
|
@@ -16,58 +16,6 @@ class FunctionDynamicSamplingID(str, Enum):
|
|
|
16
16
|
DYNAMIC_SAMPLING = "dynamic_sampling"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
class SampleMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
20
|
-
r"""Defines how sample rate will be derived: log(previousPeriodCount) or sqrt(previousPeriodCount)"""
|
|
21
|
-
|
|
22
|
-
# Logarithmic
|
|
23
|
-
LOG = "log"
|
|
24
|
-
# Square Root
|
|
25
|
-
SQRT = "sqrt"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
class FunctionDynamicSamplingSchemaTypedDict(TypedDict):
|
|
29
|
-
mode: NotRequired[SampleMode]
|
|
30
|
-
r"""Defines how sample rate will be derived: log(previousPeriodCount) or sqrt(previousPeriodCount)"""
|
|
31
|
-
key_expr: NotRequired[str]
|
|
32
|
-
r"""Expression used to derive sample group key. Example:`${domain}:${status}`. Each sample group will have its own derived sampling rate based on volume. Defaults to `${host}`."""
|
|
33
|
-
sample_period: NotRequired[float]
|
|
34
|
-
r"""How often (in seconds) sample rates will be adjusted"""
|
|
35
|
-
min_events: NotRequired[float]
|
|
36
|
-
r"""Minimum number of events that must be received in previous sample period for sampling mode to be applied to current period. If the number of events received for a sample group is less than this minimum, a sample rate of 1:1 is used."""
|
|
37
|
-
max_sample_rate: NotRequired[float]
|
|
38
|
-
r"""Maximum sampling rate. If computed sampling rate is above this value, it will be limited to this value."""
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
class FunctionDynamicSamplingSchema(BaseModel):
|
|
42
|
-
mode: Annotated[Optional[SampleMode], PlainValidator(validate_open_enum(False))] = (
|
|
43
|
-
SampleMode.LOG
|
|
44
|
-
)
|
|
45
|
-
r"""Defines how sample rate will be derived: log(previousPeriodCount) or sqrt(previousPeriodCount)"""
|
|
46
|
-
|
|
47
|
-
key_expr: Annotated[Optional[str], pydantic.Field(alias="keyExpr")] = "`${host}`"
|
|
48
|
-
r"""Expression used to derive sample group key. Example:`${domain}:${status}`. Each sample group will have its own derived sampling rate based on volume. Defaults to `${host}`."""
|
|
49
|
-
|
|
50
|
-
sample_period: Annotated[Optional[float], pydantic.Field(alias="samplePeriod")] = 30
|
|
51
|
-
r"""How often (in seconds) sample rates will be adjusted"""
|
|
52
|
-
|
|
53
|
-
min_events: Annotated[Optional[float], pydantic.Field(alias="minEvents")] = 30
|
|
54
|
-
r"""Minimum number of events that must be received in previous sample period for sampling mode to be applied to current period. If the number of events received for a sample group is less than this minimum, a sample rate of 1:1 is used."""
|
|
55
|
-
|
|
56
|
-
max_sample_rate: Annotated[
|
|
57
|
-
Optional[float], pydantic.Field(alias="maxSampleRate")
|
|
58
|
-
] = 100
|
|
59
|
-
r"""Maximum sampling rate. If computed sampling rate is above this value, it will be limited to this value."""
|
|
60
|
-
|
|
61
|
-
@field_serializer("mode")
|
|
62
|
-
def serialize_mode(self, value):
|
|
63
|
-
if isinstance(value, str):
|
|
64
|
-
try:
|
|
65
|
-
return models.SampleMode(value)
|
|
66
|
-
except ValueError:
|
|
67
|
-
return value
|
|
68
|
-
return value
|
|
69
|
-
|
|
70
|
-
|
|
71
19
|
class FunctionDynamicSamplingTypedDict(TypedDict):
|
|
72
20
|
filename: str
|
|
73
21
|
group: str
|
|
@@ -82,7 +30,7 @@ class FunctionDynamicSamplingTypedDict(TypedDict):
|
|
|
82
30
|
disabled: NotRequired[bool]
|
|
83
31
|
handle_signals: NotRequired[bool]
|
|
84
32
|
sync: NotRequired[bool]
|
|
85
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaDynamicSamplingTypedDict]
|
|
86
34
|
|
|
87
35
|
|
|
88
36
|
class FunctionDynamicSampling(BaseModel):
|
|
@@ -117,5 +65,5 @@ class FunctionDynamicSampling(BaseModel):
|
|
|
117
65
|
sync: Optional[bool] = None
|
|
118
66
|
|
|
119
67
|
schema_: Annotated[
|
|
120
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaDynamicSampling], pydantic.Field(alias="schema")
|
|
121
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 .functionconfschemaeval import (
|
|
5
|
+
FunctionConfSchemaEval,
|
|
6
|
+
FunctionConfSchemaEvalTypedDict,
|
|
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,44 +16,6 @@ class FunctionEvalID(str, Enum):
|
|
|
12
16
|
EVAL = "eval"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class FunctionEvalAddTypedDict(TypedDict):
|
|
16
|
-
value: str
|
|
17
|
-
r"""JavaScript expression to compute the value (can be constant)"""
|
|
18
|
-
name: NotRequired[str]
|
|
19
|
-
disabled: NotRequired[bool]
|
|
20
|
-
r"""Set to No to disable the evaluation of an individual expression"""
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
class FunctionEvalAdd(BaseModel):
|
|
24
|
-
value: str
|
|
25
|
-
r"""JavaScript expression to compute the value (can be constant)"""
|
|
26
|
-
|
|
27
|
-
name: Optional[str] = None
|
|
28
|
-
|
|
29
|
-
disabled: Optional[bool] = False
|
|
30
|
-
r"""Set to No to disable the evaluation of an individual expression"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
class FunctionEvalSchemaTypedDict(TypedDict):
|
|
34
|
-
add: NotRequired[List[FunctionEvalAddTypedDict]]
|
|
35
|
-
r"""Set of key-value pairs to evaluate and add/set"""
|
|
36
|
-
keep: NotRequired[List[str]]
|
|
37
|
-
r"""List of fields to keep. Supports * wildcards. Takes precedence over 'Remove fields'."""
|
|
38
|
-
remove: NotRequired[List[str]]
|
|
39
|
-
r"""List of fields to remove. Supports * wildcards. Fields that match 'Keep fields' will not be removed. Enclose field names containing special characters in single or double quotes."""
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
class FunctionEvalSchema(BaseModel):
|
|
43
|
-
add: Optional[List[FunctionEvalAdd]] = None
|
|
44
|
-
r"""Set of key-value pairs to evaluate and add/set"""
|
|
45
|
-
|
|
46
|
-
keep: Optional[List[str]] = None
|
|
47
|
-
r"""List of fields to keep. Supports * wildcards. Takes precedence over 'Remove fields'."""
|
|
48
|
-
|
|
49
|
-
remove: Optional[List[str]] = None
|
|
50
|
-
r"""List of fields to remove. Supports * wildcards. Fields that match 'Keep fields' will not be removed. Enclose field names containing special characters in single or double quotes."""
|
|
51
|
-
|
|
52
|
-
|
|
53
19
|
class FunctionEvalTypedDict(TypedDict):
|
|
54
20
|
filename: str
|
|
55
21
|
group: str
|
|
@@ -64,7 +30,7 @@ class FunctionEvalTypedDict(TypedDict):
|
|
|
64
30
|
disabled: NotRequired[bool]
|
|
65
31
|
handle_signals: NotRequired[bool]
|
|
66
32
|
sync: NotRequired[bool]
|
|
67
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaEvalTypedDict]
|
|
68
34
|
|
|
69
35
|
|
|
70
36
|
class FunctionEval(BaseModel):
|
|
@@ -98,6 +64,6 @@ class FunctionEval(BaseModel):
|
|
|
98
64
|
|
|
99
65
|
sync: Optional[bool] = None
|
|
100
66
|
|
|
101
|
-
schema_: Annotated[
|
|
102
|
-
|
|
103
|
-
|
|
67
|
+
schema_: Annotated[
|
|
68
|
+
Optional[FunctionConfSchemaEval], pydantic.Field(alias="schema")
|
|
69
|
+
] = None
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from
|
|
4
|
+
from .functionconfschemaeventbreaker import (
|
|
5
|
+
FunctionConfSchemaEventBreaker,
|
|
6
|
+
FunctionConfSchemaEventBreakerTypedDict,
|
|
7
|
+
)
|
|
5
8
|
from cribl_control_plane.types import BaseModel
|
|
6
|
-
from cribl_control_plane.utils import validate_open_enum
|
|
7
9
|
from enum import Enum
|
|
8
10
|
import pydantic
|
|
9
|
-
from pydantic import field_serializer
|
|
10
|
-
from pydantic.functional_validators import PlainValidator
|
|
11
11
|
from typing import Any, Dict, Optional
|
|
12
12
|
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
13
13
|
|
|
@@ -16,40 +16,6 @@ class FunctionEventBreakerID(str, Enum):
|
|
|
16
16
|
EVENT_BREAKER = "event_breaker"
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
class ExistingOrNew(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
20
|
-
# Use Existing
|
|
21
|
-
EXISTING = "existing"
|
|
22
|
-
# Create New
|
|
23
|
-
NEW = "new"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class FunctionEventBreakerSchemaTypedDict(TypedDict):
|
|
27
|
-
existing_or_new: NotRequired[ExistingOrNew]
|
|
28
|
-
should_mark_cribl_breaker: NotRequired[bool]
|
|
29
|
-
r"""Add this Function name to the cribl_breaker field"""
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
class FunctionEventBreakerSchema(BaseModel):
|
|
33
|
-
existing_or_new: Annotated[
|
|
34
|
-
Annotated[Optional[ExistingOrNew], PlainValidator(validate_open_enum(False))],
|
|
35
|
-
pydantic.Field(alias="existingOrNew"),
|
|
36
|
-
] = ExistingOrNew.EXISTING
|
|
37
|
-
|
|
38
|
-
should_mark_cribl_breaker: Annotated[
|
|
39
|
-
Optional[bool], pydantic.Field(alias="shouldMarkCriblBreaker")
|
|
40
|
-
] = True
|
|
41
|
-
r"""Add this Function name to the cribl_breaker field"""
|
|
42
|
-
|
|
43
|
-
@field_serializer("existing_or_new")
|
|
44
|
-
def serialize_existing_or_new(self, value):
|
|
45
|
-
if isinstance(value, str):
|
|
46
|
-
try:
|
|
47
|
-
return models.ExistingOrNew(value)
|
|
48
|
-
except ValueError:
|
|
49
|
-
return value
|
|
50
|
-
return value
|
|
51
|
-
|
|
52
|
-
|
|
53
19
|
class FunctionEventBreakerTypedDict(TypedDict):
|
|
54
20
|
filename: str
|
|
55
21
|
group: str
|
|
@@ -64,7 +30,7 @@ class FunctionEventBreakerTypedDict(TypedDict):
|
|
|
64
30
|
disabled: NotRequired[bool]
|
|
65
31
|
handle_signals: NotRequired[bool]
|
|
66
32
|
sync: NotRequired[bool]
|
|
67
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaEventBreakerTypedDict]
|
|
68
34
|
|
|
69
35
|
|
|
70
36
|
class FunctionEventBreaker(BaseModel):
|
|
@@ -99,5 +65,5 @@ class FunctionEventBreaker(BaseModel):
|
|
|
99
65
|
sync: Optional[bool] = None
|
|
100
66
|
|
|
101
67
|
schema_: Annotated[
|
|
102
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaEventBreaker], pydantic.Field(alias="schema")
|
|
103
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 .functionconfschemaeventstats import (
|
|
5
|
+
FunctionConfSchemaEventstats,
|
|
6
|
+
FunctionConfSchemaEventstatsTypedDict,
|
|
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,33 +16,6 @@ class FunctionEventstatsID(str, Enum):
|
|
|
12
16
|
EVENTSTATS = "eventstats"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class EventstatsConfigurationTypedDict(TypedDict):
|
|
16
|
-
aggregations: List[str]
|
|
17
|
-
r"""Aggregate function(s) to perform on events. E.g., sum(bytes).where(action=='REJECT').as(TotalBytes)"""
|
|
18
|
-
group_bys: NotRequired[List[str]]
|
|
19
|
-
r"""Fields to group aggregates by, supports wildcard expressions."""
|
|
20
|
-
max_events: NotRequired[float]
|
|
21
|
-
r"""Specifies how many events are at max kept in memory to be enriched with aggregations"""
|
|
22
|
-
flush_on_input_close: NotRequired[bool]
|
|
23
|
-
r"""Determines if aggregations should flush when an input stream is closed. If disabled, time window settings will control flush behavior."""
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
class EventstatsConfiguration(BaseModel):
|
|
27
|
-
aggregations: List[str]
|
|
28
|
-
r"""Aggregate function(s) to perform on events. E.g., sum(bytes).where(action=='REJECT').as(TotalBytes)"""
|
|
29
|
-
|
|
30
|
-
group_bys: Annotated[Optional[List[str]], pydantic.Field(alias="groupBys")] = None
|
|
31
|
-
r"""Fields to group aggregates by, supports wildcard expressions."""
|
|
32
|
-
|
|
33
|
-
max_events: Annotated[Optional[float], pydantic.Field(alias="maxEvents")] = 50000
|
|
34
|
-
r"""Specifies how many events are at max kept in memory to be enriched with aggregations"""
|
|
35
|
-
|
|
36
|
-
flush_on_input_close: Annotated[
|
|
37
|
-
Optional[bool], pydantic.Field(alias="flushOnInputClose")
|
|
38
|
-
] = False
|
|
39
|
-
r"""Determines if aggregations should flush when an input stream is closed. If disabled, time window settings will control flush behavior."""
|
|
40
|
-
|
|
41
|
-
|
|
42
19
|
class FunctionEventstatsTypedDict(TypedDict):
|
|
43
20
|
filename: str
|
|
44
21
|
group: str
|
|
@@ -53,7 +30,7 @@ class FunctionEventstatsTypedDict(TypedDict):
|
|
|
53
30
|
disabled: NotRequired[bool]
|
|
54
31
|
handle_signals: NotRequired[bool]
|
|
55
32
|
sync: NotRequired[bool]
|
|
56
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaEventstatsTypedDict]
|
|
57
34
|
|
|
58
35
|
|
|
59
36
|
class FunctionEventstats(BaseModel):
|
|
@@ -88,5 +65,5 @@ class FunctionEventstats(BaseModel):
|
|
|
88
65
|
sync: Optional[bool] = None
|
|
89
66
|
|
|
90
67
|
schema_: Annotated[
|
|
91
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaEventstats], pydantic.Field(alias="schema")
|
|
92
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 .functionconfschemaexternaldata import (
|
|
5
|
+
FunctionConfSchemaExternaldata,
|
|
6
|
+
FunctionConfSchemaExternaldataTypedDict,
|
|
7
|
+
)
|
|
4
8
|
from cribl_control_plane.types import BaseModel
|
|
5
9
|
from enum import Enum
|
|
6
10
|
import pydantic
|
|
@@ -12,14 +16,6 @@ class FunctionExternaldataID(str, Enum):
|
|
|
12
16
|
EXTERNALDATA = "externaldata"
|
|
13
17
|
|
|
14
18
|
|
|
15
|
-
class FunctionExternaldataSchemaTypedDict(TypedDict):
|
|
16
|
-
pass
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class FunctionExternaldataSchema(BaseModel):
|
|
20
|
-
pass
|
|
21
|
-
|
|
22
|
-
|
|
23
19
|
class FunctionExternaldataTypedDict(TypedDict):
|
|
24
20
|
filename: str
|
|
25
21
|
group: str
|
|
@@ -34,7 +30,7 @@ class FunctionExternaldataTypedDict(TypedDict):
|
|
|
34
30
|
disabled: NotRequired[bool]
|
|
35
31
|
handle_signals: NotRequired[bool]
|
|
36
32
|
sync: NotRequired[bool]
|
|
37
|
-
schema_: NotRequired[
|
|
33
|
+
schema_: NotRequired[FunctionConfSchemaExternaldataTypedDict]
|
|
38
34
|
|
|
39
35
|
|
|
40
36
|
class FunctionExternaldata(BaseModel):
|
|
@@ -69,5 +65,5 @@ class FunctionExternaldata(BaseModel):
|
|
|
69
65
|
sync: Optional[bool] = None
|
|
70
66
|
|
|
71
67
|
schema_: Annotated[
|
|
72
|
-
Optional[
|
|
68
|
+
Optional[FunctionConfSchemaExternaldata], pydantic.Field(alias="schema")
|
|
73
69
|
] = None
|