cribl-control-plane 0.0.13__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cribl-control-plane might be problematic. Click here for more details.
- cribl_control_plane/__init__.py +17 -0
- cribl_control_plane/_hooks/__init__.py +5 -0
- cribl_control_plane/_hooks/clientcredentials.py +211 -0
- cribl_control_plane/_hooks/registration.py +13 -0
- cribl_control_plane/_hooks/sdkhooks.py +81 -0
- cribl_control_plane/_hooks/types.py +112 -0
- cribl_control_plane/_version.py +15 -0
- cribl_control_plane/auth_sdk.py +184 -0
- cribl_control_plane/basesdk.py +358 -0
- cribl_control_plane/errors/__init__.py +60 -0
- cribl_control_plane/errors/apierror.py +38 -0
- cribl_control_plane/errors/criblcontrolplaneerror.py +26 -0
- cribl_control_plane/errors/error.py +24 -0
- cribl_control_plane/errors/healthstatus_error.py +38 -0
- cribl_control_plane/errors/no_response_error.py +13 -0
- cribl_control_plane/errors/responsevalidationerror.py +25 -0
- cribl_control_plane/health.py +166 -0
- cribl_control_plane/httpclient.py +126 -0
- cribl_control_plane/models/__init__.py +7305 -0
- cribl_control_plane/models/addhectokenrequest.py +34 -0
- cribl_control_plane/models/authtoken.py +13 -0
- cribl_control_plane/models/createinputhectokenbyidop.py +45 -0
- cribl_control_plane/models/createinputop.py +24 -0
- cribl_control_plane/models/createoutputop.py +24 -0
- cribl_control_plane/models/createoutputtestbyidop.py +46 -0
- cribl_control_plane/models/criblevent.py +14 -0
- cribl_control_plane/models/deleteinputbyidop.py +37 -0
- cribl_control_plane/models/deleteoutputbyidop.py +37 -0
- cribl_control_plane/models/deleteoutputpqbyidop.py +36 -0
- cribl_control_plane/models/getinputbyidop.py +37 -0
- cribl_control_plane/models/getoutputbyidop.py +37 -0
- cribl_control_plane/models/getoutputpqbyidop.py +36 -0
- cribl_control_plane/models/getoutputsamplesbyidop.py +37 -0
- cribl_control_plane/models/healthstatus.py +36 -0
- cribl_control_plane/models/input.py +199 -0
- cribl_control_plane/models/inputappscope.py +448 -0
- cribl_control_plane/models/inputazureblob.py +308 -0
- cribl_control_plane/models/inputcollection.py +208 -0
- cribl_control_plane/models/inputconfluentcloud.py +585 -0
- cribl_control_plane/models/inputcribl.py +165 -0
- cribl_control_plane/models/inputcriblhttp.py +341 -0
- cribl_control_plane/models/inputcribllakehttp.py +342 -0
- cribl_control_plane/models/inputcriblmetrics.py +175 -0
- cribl_control_plane/models/inputcribltcp.py +299 -0
- cribl_control_plane/models/inputcrowdstrike.py +410 -0
- cribl_control_plane/models/inputdatadogagent.py +364 -0
- cribl_control_plane/models/inputdatagen.py +180 -0
- cribl_control_plane/models/inputedgeprometheus.py +551 -0
- cribl_control_plane/models/inputelastic.py +494 -0
- cribl_control_plane/models/inputeventhub.py +360 -0
- cribl_control_plane/models/inputexec.py +213 -0
- cribl_control_plane/models/inputfile.py +259 -0
- cribl_control_plane/models/inputfirehose.py +341 -0
- cribl_control_plane/models/inputgooglepubsub.py +247 -0
- cribl_control_plane/models/inputgrafana_union.py +1247 -0
- cribl_control_plane/models/inputhttp.py +403 -0
- cribl_control_plane/models/inputhttpraw.py +407 -0
- cribl_control_plane/models/inputjournalfiles.py +208 -0
- cribl_control_plane/models/inputkafka.py +581 -0
- cribl_control_plane/models/inputkinesis.py +363 -0
- cribl_control_plane/models/inputkubeevents.py +182 -0
- cribl_control_plane/models/inputkubelogs.py +256 -0
- cribl_control_plane/models/inputkubemetrics.py +233 -0
- cribl_control_plane/models/inputloki.py +468 -0
- cribl_control_plane/models/inputmetrics.py +290 -0
- cribl_control_plane/models/inputmodeldriventelemetry.py +274 -0
- cribl_control_plane/models/inputmsk.py +654 -0
- cribl_control_plane/models/inputnetflow.py +224 -0
- cribl_control_plane/models/inputoffice365mgmt.py +384 -0
- cribl_control_plane/models/inputoffice365msgtrace.py +449 -0
- cribl_control_plane/models/inputoffice365service.py +377 -0
- cribl_control_plane/models/inputopentelemetry.py +516 -0
- cribl_control_plane/models/inputprometheus.py +464 -0
- cribl_control_plane/models/inputprometheusrw.py +470 -0
- cribl_control_plane/models/inputrawudp.py +207 -0
- cribl_control_plane/models/inputs3.py +416 -0
- cribl_control_plane/models/inputs3inventory.py +440 -0
- cribl_control_plane/models/inputsecuritylake.py +425 -0
- cribl_control_plane/models/inputsnmp.py +274 -0
- cribl_control_plane/models/inputsplunk.py +387 -0
- cribl_control_plane/models/inputsplunkhec.py +478 -0
- cribl_control_plane/models/inputsplunksearch.py +537 -0
- cribl_control_plane/models/inputsqs.py +320 -0
- cribl_control_plane/models/inputsyslog_union.py +759 -0
- cribl_control_plane/models/inputsystemmetrics.py +533 -0
- cribl_control_plane/models/inputsystemstate.py +417 -0
- cribl_control_plane/models/inputtcp.py +359 -0
- cribl_control_plane/models/inputtcpjson.py +334 -0
- cribl_control_plane/models/inputwef.py +498 -0
- cribl_control_plane/models/inputwindowsmetrics.py +457 -0
- cribl_control_plane/models/inputwineventlogs.py +222 -0
- cribl_control_plane/models/inputwiz.py +334 -0
- cribl_control_plane/models/inputzscalerhec.py +439 -0
- cribl_control_plane/models/listinputop.py +24 -0
- cribl_control_plane/models/listoutputop.py +24 -0
- cribl_control_plane/models/logininfo.py +16 -0
- cribl_control_plane/models/output.py +229 -0
- cribl_control_plane/models/outputazureblob.py +471 -0
- cribl_control_plane/models/outputazuredataexplorer.py +660 -0
- cribl_control_plane/models/outputazureeventhub.py +321 -0
- cribl_control_plane/models/outputazurelogs.py +386 -0
- cribl_control_plane/models/outputclickhouse.py +650 -0
- cribl_control_plane/models/outputcloudwatch.py +273 -0
- cribl_control_plane/models/outputconfluentcloud.py +591 -0
- cribl_control_plane/models/outputcriblhttp.py +494 -0
- cribl_control_plane/models/outputcribllake.py +396 -0
- cribl_control_plane/models/outputcribltcp.py +387 -0
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +410 -0
- cribl_control_plane/models/outputdatadog.py +472 -0
- cribl_control_plane/models/outputdataset.py +437 -0
- cribl_control_plane/models/outputdefault.py +55 -0
- cribl_control_plane/models/outputdevnull.py +50 -0
- cribl_control_plane/models/outputdiskspool.py +89 -0
- cribl_control_plane/models/outputdls3.py +560 -0
- cribl_control_plane/models/outputdynatracehttp.py +454 -0
- cribl_control_plane/models/outputdynatraceotlp.py +486 -0
- cribl_control_plane/models/outputelastic.py +494 -0
- cribl_control_plane/models/outputelasticcloud.py +407 -0
- cribl_control_plane/models/outputexabeam.py +297 -0
- cribl_control_plane/models/outputfilesystem.py +357 -0
- cribl_control_plane/models/outputgooglechronicle.py +486 -0
- cribl_control_plane/models/outputgooglecloudlogging.py +557 -0
- cribl_control_plane/models/outputgooglecloudstorage.py +499 -0
- cribl_control_plane/models/outputgooglepubsub.py +274 -0
- cribl_control_plane/models/outputgrafanacloud_union.py +1024 -0
- cribl_control_plane/models/outputgraphite.py +225 -0
- cribl_control_plane/models/outputhoneycomb.py +369 -0
- cribl_control_plane/models/outputhumiohec.py +389 -0
- cribl_control_plane/models/outputinfluxdb.py +523 -0
- cribl_control_plane/models/outputkafka.py +581 -0
- cribl_control_plane/models/outputkinesis.py +312 -0
- cribl_control_plane/models/outputloki.py +425 -0
- cribl_control_plane/models/outputminio.py +512 -0
- cribl_control_plane/models/outputmsk.py +654 -0
- cribl_control_plane/models/outputnetflow.py +80 -0
- cribl_control_plane/models/outputnewrelic.py +424 -0
- cribl_control_plane/models/outputnewrelicevents.py +401 -0
- cribl_control_plane/models/outputopentelemetry.py +669 -0
- cribl_control_plane/models/outputprometheus.py +485 -0
- cribl_control_plane/models/outputring.py +121 -0
- cribl_control_plane/models/outputrouter.py +83 -0
- cribl_control_plane/models/outputs3.py +556 -0
- cribl_control_plane/models/outputsamplesresponse.py +14 -0
- cribl_control_plane/models/outputsecuritylake.py +505 -0
- cribl_control_plane/models/outputsentinel.py +488 -0
- cribl_control_plane/models/outputsentineloneaisiem.py +505 -0
- cribl_control_plane/models/outputservicenow.py +543 -0
- cribl_control_plane/models/outputsignalfx.py +369 -0
- cribl_control_plane/models/outputsnmp.py +80 -0
- cribl_control_plane/models/outputsns.py +274 -0
- cribl_control_plane/models/outputsplunk.py +383 -0
- cribl_control_plane/models/outputsplunkhec.py +434 -0
- cribl_control_plane/models/outputsplunklb.py +558 -0
- cribl_control_plane/models/outputsqs.py +328 -0
- cribl_control_plane/models/outputstatsd.py +224 -0
- cribl_control_plane/models/outputstatsdext.py +225 -0
- cribl_control_plane/models/outputsumologic.py +378 -0
- cribl_control_plane/models/outputsyslog.py +415 -0
- cribl_control_plane/models/outputtcpjson.py +413 -0
- cribl_control_plane/models/outputtestrequest.py +15 -0
- cribl_control_plane/models/outputtestresponse.py +29 -0
- cribl_control_plane/models/outputwavefront.py +369 -0
- cribl_control_plane/models/outputwebhook.py +689 -0
- cribl_control_plane/models/outputxsiam.py +415 -0
- cribl_control_plane/models/schemeclientoauth.py +24 -0
- cribl_control_plane/models/security.py +36 -0
- cribl_control_plane/models/updatehectokenrequest.py +31 -0
- cribl_control_plane/models/updateinputbyidop.py +44 -0
- cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +52 -0
- cribl_control_plane/models/updateoutputbyidop.py +44 -0
- cribl_control_plane/outputs.py +1615 -0
- cribl_control_plane/py.typed +1 -0
- cribl_control_plane/sdk.py +164 -0
- cribl_control_plane/sdkconfiguration.py +36 -0
- cribl_control_plane/sources.py +1355 -0
- cribl_control_plane/types/__init__.py +21 -0
- cribl_control_plane/types/basemodel.py +39 -0
- cribl_control_plane/utils/__init__.py +187 -0
- cribl_control_plane/utils/annotations.py +55 -0
- cribl_control_plane/utils/datetimes.py +23 -0
- cribl_control_plane/utils/enums.py +74 -0
- cribl_control_plane/utils/eventstreaming.py +238 -0
- cribl_control_plane/utils/forms.py +223 -0
- cribl_control_plane/utils/headers.py +136 -0
- cribl_control_plane/utils/logger.py +27 -0
- cribl_control_plane/utils/metadata.py +118 -0
- cribl_control_plane/utils/queryparams.py +205 -0
- cribl_control_plane/utils/requestbodies.py +66 -0
- cribl_control_plane/utils/retries.py +217 -0
- cribl_control_plane/utils/security.py +207 -0
- cribl_control_plane/utils/serializers.py +249 -0
- cribl_control_plane/utils/unmarshal_json_response.py +24 -0
- cribl_control_plane/utils/url.py +155 -0
- cribl_control_plane/utils/values.py +137 -0
- cribl_control_plane-0.0.13.dist-info/METADATA +489 -0
- cribl_control_plane-0.0.13.dist-info/RECORD +197 -0
- cribl_control_plane-0.0.13.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,689 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from cribl_control_plane import 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.functional_validators import PlainValidator
|
|
10
|
+
from typing import List, Optional
|
|
11
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class OutputWebhookType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
15
|
+
WEBHOOK = "webhook"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class OutputWebhookMethod(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
19
|
+
r"""The method to use when sending events"""
|
|
20
|
+
|
|
21
|
+
POST = "POST"
|
|
22
|
+
PUT = "PUT"
|
|
23
|
+
PATCH = "PATCH"
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class OutputWebhookFormat(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
27
|
+
r"""How to format events before sending out"""
|
|
28
|
+
|
|
29
|
+
NDJSON = "ndjson"
|
|
30
|
+
JSON_ARRAY = "json_array"
|
|
31
|
+
CUSTOM = "custom"
|
|
32
|
+
ADVANCED = "advanced"
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class OutputWebhookExtraHTTPHeaderTypedDict(TypedDict):
|
|
36
|
+
value: str
|
|
37
|
+
name: NotRequired[str]
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class OutputWebhookExtraHTTPHeader(BaseModel):
|
|
41
|
+
value: str
|
|
42
|
+
|
|
43
|
+
name: Optional[str] = None
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class OutputWebhookFailedRequestLoggingMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
47
|
+
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
48
|
+
|
|
49
|
+
PAYLOAD = "payload"
|
|
50
|
+
PAYLOAD_AND_HEADERS = "payloadAndHeaders"
|
|
51
|
+
NONE = "none"
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
class OutputWebhookResponseRetrySettingTypedDict(TypedDict):
|
|
55
|
+
http_status: float
|
|
56
|
+
r"""The HTTP response status code that will trigger retries"""
|
|
57
|
+
initial_backoff: NotRequired[float]
|
|
58
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
59
|
+
backoff_rate: NotRequired[float]
|
|
60
|
+
r"""Base for exponential backoff. A value of 2 (default) means Cribl Stream will retry after 2 seconds, then 4 seconds, then 8 seconds, etc."""
|
|
61
|
+
max_backoff: NotRequired[float]
|
|
62
|
+
r"""The maximum backoff interval, in milliseconds, Cribl Stream should apply. Default (and minimum) is 10,000 ms (10 seconds); maximum is 180,000 ms (180 seconds)."""
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class OutputWebhookResponseRetrySetting(BaseModel):
|
|
66
|
+
http_status: Annotated[float, pydantic.Field(alias="httpStatus")]
|
|
67
|
+
r"""The HTTP response status code that will trigger retries"""
|
|
68
|
+
|
|
69
|
+
initial_backoff: Annotated[
|
|
70
|
+
Optional[float], pydantic.Field(alias="initialBackoff")
|
|
71
|
+
] = 1000
|
|
72
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
73
|
+
|
|
74
|
+
backoff_rate: Annotated[Optional[float], pydantic.Field(alias="backoffRate")] = 2
|
|
75
|
+
r"""Base for exponential backoff. A value of 2 (default) means Cribl Stream will retry after 2 seconds, then 4 seconds, then 8 seconds, etc."""
|
|
76
|
+
|
|
77
|
+
max_backoff: Annotated[Optional[float], pydantic.Field(alias="maxBackoff")] = 10000
|
|
78
|
+
r"""The maximum backoff interval, in milliseconds, Cribl Stream should apply. Default (and minimum) is 10,000 ms (10 seconds); maximum is 180,000 ms (180 seconds)."""
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
class OutputWebhookTimeoutRetrySettingsTypedDict(TypedDict):
|
|
82
|
+
timeout_retry: NotRequired[bool]
|
|
83
|
+
initial_backoff: NotRequired[float]
|
|
84
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
85
|
+
backoff_rate: NotRequired[float]
|
|
86
|
+
r"""Base for exponential backoff. A value of 2 (default) means Cribl Stream will retry after 2 seconds, then 4 seconds, then 8 seconds, etc."""
|
|
87
|
+
max_backoff: NotRequired[float]
|
|
88
|
+
r"""The maximum backoff interval, in milliseconds, Cribl Stream should apply. Default (and minimum) is 10,000 ms (10 seconds); maximum is 180,000 ms (180 seconds)."""
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
class OutputWebhookTimeoutRetrySettings(BaseModel):
|
|
92
|
+
timeout_retry: Annotated[Optional[bool], pydantic.Field(alias="timeoutRetry")] = (
|
|
93
|
+
False
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
initial_backoff: Annotated[
|
|
97
|
+
Optional[float], pydantic.Field(alias="initialBackoff")
|
|
98
|
+
] = 1000
|
|
99
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
100
|
+
|
|
101
|
+
backoff_rate: Annotated[Optional[float], pydantic.Field(alias="backoffRate")] = 2
|
|
102
|
+
r"""Base for exponential backoff. A value of 2 (default) means Cribl Stream will retry after 2 seconds, then 4 seconds, then 8 seconds, etc."""
|
|
103
|
+
|
|
104
|
+
max_backoff: Annotated[Optional[float], pydantic.Field(alias="maxBackoff")] = 10000
|
|
105
|
+
r"""The maximum backoff interval, in milliseconds, Cribl Stream should apply. Default (and minimum) is 10,000 ms (10 seconds); maximum is 180,000 ms (180 seconds)."""
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
class OutputWebhookBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
109
|
+
r"""How to handle events when all receivers are exerting backpressure"""
|
|
110
|
+
|
|
111
|
+
BLOCK = "block"
|
|
112
|
+
DROP = "drop"
|
|
113
|
+
QUEUE = "queue"
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class OutputWebhookAuthenticationType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
117
|
+
r"""Authentication method to use for the HTTP request"""
|
|
118
|
+
|
|
119
|
+
NONE = "none"
|
|
120
|
+
BASIC = "basic"
|
|
121
|
+
CREDENTIALS_SECRET = "credentialsSecret"
|
|
122
|
+
TOKEN = "token"
|
|
123
|
+
TEXT_SECRET = "textSecret"
|
|
124
|
+
OAUTH = "oauth"
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
class OutputWebhookMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
128
|
+
TL_SV1 = "TLSv1"
|
|
129
|
+
TL_SV1_1 = "TLSv1.1"
|
|
130
|
+
TL_SV1_2 = "TLSv1.2"
|
|
131
|
+
TL_SV1_3 = "TLSv1.3"
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
class OutputWebhookMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
135
|
+
TL_SV1 = "TLSv1"
|
|
136
|
+
TL_SV1_1 = "TLSv1.1"
|
|
137
|
+
TL_SV1_2 = "TLSv1.2"
|
|
138
|
+
TL_SV1_3 = "TLSv1.3"
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
class OutputWebhookTLSSettingsClientSideTypedDict(TypedDict):
|
|
142
|
+
disabled: NotRequired[bool]
|
|
143
|
+
servername: NotRequired[str]
|
|
144
|
+
r"""Server name for the SNI (Server Name Indication) TLS extension. It must be a host name, and not an IP address."""
|
|
145
|
+
certificate_name: NotRequired[str]
|
|
146
|
+
r"""The name of the predefined certificate"""
|
|
147
|
+
ca_path: NotRequired[str]
|
|
148
|
+
r"""Path on client in which to find CA certificates to verify the server's cert. PEM format. Can reference $ENV_VARS."""
|
|
149
|
+
priv_key_path: NotRequired[str]
|
|
150
|
+
r"""Path on client in which to find the private key to use. PEM format. Can reference $ENV_VARS."""
|
|
151
|
+
cert_path: NotRequired[str]
|
|
152
|
+
r"""Path on client in which to find certificates to use. PEM format. Can reference $ENV_VARS."""
|
|
153
|
+
passphrase: NotRequired[str]
|
|
154
|
+
r"""Passphrase to use to decrypt private key"""
|
|
155
|
+
min_version: NotRequired[OutputWebhookMinimumTLSVersion]
|
|
156
|
+
max_version: NotRequired[OutputWebhookMaximumTLSVersion]
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
class OutputWebhookTLSSettingsClientSide(BaseModel):
|
|
160
|
+
disabled: Optional[bool] = True
|
|
161
|
+
|
|
162
|
+
servername: Optional[str] = None
|
|
163
|
+
r"""Server name for the SNI (Server Name Indication) TLS extension. It must be a host name, and not an IP address."""
|
|
164
|
+
|
|
165
|
+
certificate_name: Annotated[
|
|
166
|
+
Optional[str], pydantic.Field(alias="certificateName")
|
|
167
|
+
] = None
|
|
168
|
+
r"""The name of the predefined certificate"""
|
|
169
|
+
|
|
170
|
+
ca_path: Annotated[Optional[str], pydantic.Field(alias="caPath")] = None
|
|
171
|
+
r"""Path on client in which to find CA certificates to verify the server's cert. PEM format. Can reference $ENV_VARS."""
|
|
172
|
+
|
|
173
|
+
priv_key_path: Annotated[Optional[str], pydantic.Field(alias="privKeyPath")] = None
|
|
174
|
+
r"""Path on client in which to find the private key to use. PEM format. Can reference $ENV_VARS."""
|
|
175
|
+
|
|
176
|
+
cert_path: Annotated[Optional[str], pydantic.Field(alias="certPath")] = None
|
|
177
|
+
r"""Path on client in which to find certificates to use. PEM format. Can reference $ENV_VARS."""
|
|
178
|
+
|
|
179
|
+
passphrase: Optional[str] = None
|
|
180
|
+
r"""Passphrase to use to decrypt private key"""
|
|
181
|
+
|
|
182
|
+
min_version: Annotated[
|
|
183
|
+
Annotated[
|
|
184
|
+
Optional[OutputWebhookMinimumTLSVersion],
|
|
185
|
+
PlainValidator(validate_open_enum(False)),
|
|
186
|
+
],
|
|
187
|
+
pydantic.Field(alias="minVersion"),
|
|
188
|
+
] = None
|
|
189
|
+
|
|
190
|
+
max_version: Annotated[
|
|
191
|
+
Annotated[
|
|
192
|
+
Optional[OutputWebhookMaximumTLSVersion],
|
|
193
|
+
PlainValidator(validate_open_enum(False)),
|
|
194
|
+
],
|
|
195
|
+
pydantic.Field(alias="maxVersion"),
|
|
196
|
+
] = None
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
class OutputWebhookCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
200
|
+
r"""Codec to use to compress the persisted data"""
|
|
201
|
+
|
|
202
|
+
NONE = "none"
|
|
203
|
+
GZIP = "gzip"
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
class OutputWebhookQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
207
|
+
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
208
|
+
|
|
209
|
+
BLOCK = "block"
|
|
210
|
+
DROP = "drop"
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
class OutputWebhookMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
214
|
+
r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
|
|
215
|
+
|
|
216
|
+
ERROR = "error"
|
|
217
|
+
BACKPRESSURE = "backpressure"
|
|
218
|
+
ALWAYS = "always"
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
class OutputWebhookPqControlsTypedDict(TypedDict):
|
|
222
|
+
pass
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
class OutputWebhookPqControls(BaseModel):
|
|
226
|
+
pass
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
class OutputWebhookOauthParamTypedDict(TypedDict):
|
|
230
|
+
name: str
|
|
231
|
+
r"""OAuth parameter name"""
|
|
232
|
+
value: str
|
|
233
|
+
r"""OAuth parameter value"""
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
class OutputWebhookOauthParam(BaseModel):
|
|
237
|
+
name: str
|
|
238
|
+
r"""OAuth parameter name"""
|
|
239
|
+
|
|
240
|
+
value: str
|
|
241
|
+
r"""OAuth parameter value"""
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
class OutputWebhookOauthHeaderTypedDict(TypedDict):
|
|
245
|
+
name: str
|
|
246
|
+
r"""OAuth header name"""
|
|
247
|
+
value: str
|
|
248
|
+
r"""OAuth header value"""
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
class OutputWebhookOauthHeader(BaseModel):
|
|
252
|
+
name: str
|
|
253
|
+
r"""OAuth header name"""
|
|
254
|
+
|
|
255
|
+
value: str
|
|
256
|
+
r"""OAuth header value"""
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
class OutputWebhookURLTypedDict(TypedDict):
|
|
260
|
+
url: str
|
|
261
|
+
r"""URL of a webhook endpoint to send events to, such as http://localhost:10200"""
|
|
262
|
+
weight: NotRequired[float]
|
|
263
|
+
r"""Assign a weight (>0) to each endpoint to indicate its traffic-handling capability"""
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
class OutputWebhookURL(BaseModel):
|
|
267
|
+
url: str
|
|
268
|
+
r"""URL of a webhook endpoint to send events to, such as http://localhost:10200"""
|
|
269
|
+
|
|
270
|
+
weight: Optional[float] = 1
|
|
271
|
+
r"""Assign a weight (>0) to each endpoint to indicate its traffic-handling capability"""
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
class OutputWebhookTypedDict(TypedDict):
|
|
275
|
+
id: str
|
|
276
|
+
r"""Unique ID for this output"""
|
|
277
|
+
type: OutputWebhookType
|
|
278
|
+
pipeline: NotRequired[str]
|
|
279
|
+
r"""Pipeline to process data before sending out to this output"""
|
|
280
|
+
system_fields: NotRequired[List[str]]
|
|
281
|
+
r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
|
|
282
|
+
environment: NotRequired[str]
|
|
283
|
+
r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
|
|
284
|
+
streamtags: NotRequired[List[str]]
|
|
285
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
286
|
+
method: NotRequired[OutputWebhookMethod]
|
|
287
|
+
r"""The method to use when sending events"""
|
|
288
|
+
format_: NotRequired[OutputWebhookFormat]
|
|
289
|
+
r"""How to format events before sending out"""
|
|
290
|
+
keep_alive: NotRequired[bool]
|
|
291
|
+
r"""Disable to close the connection immediately after sending the outgoing request"""
|
|
292
|
+
concurrency: NotRequired[float]
|
|
293
|
+
r"""Maximum number of ongoing requests before blocking"""
|
|
294
|
+
max_payload_size_kb: NotRequired[float]
|
|
295
|
+
r"""Maximum size, in KB, of the request body"""
|
|
296
|
+
max_payload_events: NotRequired[float]
|
|
297
|
+
r"""Maximum number of events to include in the request body. Default is 0 (unlimited)."""
|
|
298
|
+
compress: NotRequired[bool]
|
|
299
|
+
r"""Compress the payload body before sending"""
|
|
300
|
+
reject_unauthorized: NotRequired[bool]
|
|
301
|
+
r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's).
|
|
302
|
+
Enabled by default. When this setting is also present in TLS Settings (Client Side),
|
|
303
|
+
that value will take precedence.
|
|
304
|
+
"""
|
|
305
|
+
timeout_sec: NotRequired[float]
|
|
306
|
+
r"""Amount of time, in seconds, to wait for a request to complete before canceling it"""
|
|
307
|
+
flush_period_sec: NotRequired[float]
|
|
308
|
+
r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
|
|
309
|
+
extra_http_headers: NotRequired[List[OutputWebhookExtraHTTPHeaderTypedDict]]
|
|
310
|
+
r"""Headers to add to all events. You can also add headers dynamically on a per-event basis in the __headers field, as explained in [Cribl Docs](https://docs.cribl.io/stream/destinations-webhook/#internal-fields)."""
|
|
311
|
+
use_round_robin_dns: NotRequired[bool]
|
|
312
|
+
r"""Enable round-robin DNS lookup. When a DNS server returns multiple addresses, @{product} will cycle through them in the order returned. For optimal performance, consider enabling this setting for non-load balanced destinations."""
|
|
313
|
+
failed_request_logging_mode: NotRequired[OutputWebhookFailedRequestLoggingMode]
|
|
314
|
+
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
315
|
+
safe_headers: NotRequired[List[str]]
|
|
316
|
+
r"""List of headers that are safe to log in plain text"""
|
|
317
|
+
response_retry_settings: NotRequired[
|
|
318
|
+
List[OutputWebhookResponseRetrySettingTypedDict]
|
|
319
|
+
]
|
|
320
|
+
r"""Automatically retry after unsuccessful response status codes, such as 429 (Too Many Requests) or 503 (Service Unavailable)"""
|
|
321
|
+
timeout_retry_settings: NotRequired[OutputWebhookTimeoutRetrySettingsTypedDict]
|
|
322
|
+
response_honor_retry_after_header: NotRequired[bool]
|
|
323
|
+
r"""Honor any Retry-After header that specifies a delay (in seconds) no longer than 180 seconds after the retry request. @{product} limits the delay to 180 seconds, even if the Retry-After header specifies a longer delay. When enabled, takes precedence over user-configured retry options. When disabled, all Retry-After headers are ignored."""
|
|
324
|
+
on_backpressure: NotRequired[OutputWebhookBackpressureBehavior]
|
|
325
|
+
r"""How to handle events when all receivers are exerting backpressure"""
|
|
326
|
+
auth_type: NotRequired[OutputWebhookAuthenticationType]
|
|
327
|
+
r"""Authentication method to use for the HTTP request"""
|
|
328
|
+
tls: NotRequired[OutputWebhookTLSSettingsClientSideTypedDict]
|
|
329
|
+
total_memory_limit_kb: NotRequired[float]
|
|
330
|
+
r"""Maximum total size of the batches waiting to be sent. If left blank, defaults to 5 times the max body size (if set). If 0, no limit is enforced."""
|
|
331
|
+
load_balanced: NotRequired[bool]
|
|
332
|
+
r"""Enable for optimal performance. Even if you have one hostname, it can expand to multiple IPs. If disabled, consider enabling round-robin DNS."""
|
|
333
|
+
description: NotRequired[str]
|
|
334
|
+
custom_source_expression: NotRequired[str]
|
|
335
|
+
r"""Expression to evaluate on events to generate output. Example: `raw=${_raw}`. See [Cribl Docs](https://docs.cribl.io/stream/destinations-webhook#custom-format) for other examples. If empty, the full event is sent as stringified JSON."""
|
|
336
|
+
custom_drop_when_null: NotRequired[bool]
|
|
337
|
+
r"""Whether to drop events when the source expression evaluates to null"""
|
|
338
|
+
custom_event_delimiter: NotRequired[str]
|
|
339
|
+
r"""Delimiter string to insert between individual events. Defaults to newline character."""
|
|
340
|
+
custom_content_type: NotRequired[str]
|
|
341
|
+
r"""Content type to use for request. Defaults to application/x-ndjson. Any content types set in Advanced Settings > Extra HTTP headers will override this entry."""
|
|
342
|
+
custom_payload_expression: NotRequired[str]
|
|
343
|
+
r"""Expression specifying how to format the payload for each batch. To reference the events to send, use the `${events}` variable. Example expression: `{ \"items\" : [${events}] }` would send the batch inside a JSON object."""
|
|
344
|
+
advanced_content_type: NotRequired[str]
|
|
345
|
+
r"""HTTP content-type header value"""
|
|
346
|
+
format_event_code: NotRequired[str]
|
|
347
|
+
r"""Custom JavaScript code to format incoming event data accessible through the __e variable. The formatted content is added to (__e['__eventOut']) if available. Otherwise, the original event is serialized as JSON. Caution: This function is evaluated in an unprotected context, allowing you to execute almost any JavaScript code."""
|
|
348
|
+
format_payload_code: NotRequired[str]
|
|
349
|
+
r"""Optional JavaScript code to format the payload sent to the Destination. The payload, containing a batch of formatted events, is accessible through the __e['payload'] variable. The formatted payload is returned in the __e['__payloadOut'] variable. Caution: This function is evaluated in an unprotected context, allowing you to execute almost any JavaScript code."""
|
|
350
|
+
pq_max_file_size: NotRequired[str]
|
|
351
|
+
r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
|
|
352
|
+
pq_max_size: NotRequired[str]
|
|
353
|
+
r"""The maximum disk space that the queue can consume (as an average per Worker Process) before queueing stops. Enter a numeral with units of KB, MB, etc."""
|
|
354
|
+
pq_path: NotRequired[str]
|
|
355
|
+
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
|
|
356
|
+
pq_compress: NotRequired[OutputWebhookCompression]
|
|
357
|
+
r"""Codec to use to compress the persisted data"""
|
|
358
|
+
pq_on_backpressure: NotRequired[OutputWebhookQueueFullBehavior]
|
|
359
|
+
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
360
|
+
pq_mode: NotRequired[OutputWebhookMode]
|
|
361
|
+
r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
|
|
362
|
+
pq_controls: NotRequired[OutputWebhookPqControlsTypedDict]
|
|
363
|
+
username: NotRequired[str]
|
|
364
|
+
password: NotRequired[str]
|
|
365
|
+
token: NotRequired[str]
|
|
366
|
+
r"""Bearer token to include in the authorization header"""
|
|
367
|
+
credentials_secret: NotRequired[str]
|
|
368
|
+
r"""Select or create a secret that references your credentials"""
|
|
369
|
+
text_secret: NotRequired[str]
|
|
370
|
+
r"""Select or create a stored text secret"""
|
|
371
|
+
login_url: NotRequired[str]
|
|
372
|
+
r"""URL for OAuth"""
|
|
373
|
+
secret_param_name: NotRequired[str]
|
|
374
|
+
r"""Secret parameter name to pass in request body"""
|
|
375
|
+
secret: NotRequired[str]
|
|
376
|
+
r"""Secret parameter value to pass in request body"""
|
|
377
|
+
token_attribute_name: NotRequired[str]
|
|
378
|
+
r"""Name of the auth token attribute in the OAuth response. Can be top-level (e.g., 'token'); or nested, using a period (e.g., 'data.token')."""
|
|
379
|
+
auth_header_expr: NotRequired[str]
|
|
380
|
+
r"""JavaScript expression to compute the Authorization header value to pass in requests. The value `${token}` is used to reference the token obtained from authentication, e.g.: `Bearer ${token}`."""
|
|
381
|
+
token_timeout_secs: NotRequired[float]
|
|
382
|
+
r"""How often the OAuth token should be refreshed."""
|
|
383
|
+
oauth_params: NotRequired[List[OutputWebhookOauthParamTypedDict]]
|
|
384
|
+
r"""Additional parameters to send in the OAuth login request. @{product} will combine the secret with these parameters, and will send the URL-encoded result in a POST request to the endpoint specified in the 'Login URL'. We'll automatically add the content-type header 'application/x-www-form-urlencoded' when sending this request."""
|
|
385
|
+
oauth_headers: NotRequired[List[OutputWebhookOauthHeaderTypedDict]]
|
|
386
|
+
r"""Additional headers to send in the OAuth login request. @{product} will automatically add the content-type header 'application/x-www-form-urlencoded' when sending this request."""
|
|
387
|
+
url: NotRequired[str]
|
|
388
|
+
r"""URL of a webhook endpoint to send events to, such as http://localhost:10200"""
|
|
389
|
+
exclude_self: NotRequired[bool]
|
|
390
|
+
r"""Exclude all IPs of the current host from the list of any resolved hostnames"""
|
|
391
|
+
urls: NotRequired[List[OutputWebhookURLTypedDict]]
|
|
392
|
+
dns_resolve_period_sec: NotRequired[float]
|
|
393
|
+
r"""The interval in which to re-resolve any hostnames and pick up destinations from A records"""
|
|
394
|
+
load_balance_stats_period_sec: NotRequired[float]
|
|
395
|
+
r"""How far back in time to keep traffic stats for load balancing purposes"""
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
class OutputWebhook(BaseModel):
|
|
399
|
+
id: str
|
|
400
|
+
r"""Unique ID for this output"""
|
|
401
|
+
|
|
402
|
+
type: Annotated[OutputWebhookType, PlainValidator(validate_open_enum(False))]
|
|
403
|
+
|
|
404
|
+
pipeline: Optional[str] = None
|
|
405
|
+
r"""Pipeline to process data before sending out to this output"""
|
|
406
|
+
|
|
407
|
+
system_fields: Annotated[
|
|
408
|
+
Optional[List[str]], pydantic.Field(alias="systemFields")
|
|
409
|
+
] = None
|
|
410
|
+
r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
|
|
411
|
+
|
|
412
|
+
environment: Optional[str] = None
|
|
413
|
+
r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
|
|
414
|
+
|
|
415
|
+
streamtags: Optional[List[str]] = None
|
|
416
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
417
|
+
|
|
418
|
+
method: Annotated[
|
|
419
|
+
Optional[OutputWebhookMethod], PlainValidator(validate_open_enum(False))
|
|
420
|
+
] = OutputWebhookMethod.POST
|
|
421
|
+
r"""The method to use when sending events"""
|
|
422
|
+
|
|
423
|
+
format_: Annotated[
|
|
424
|
+
Annotated[
|
|
425
|
+
Optional[OutputWebhookFormat], PlainValidator(validate_open_enum(False))
|
|
426
|
+
],
|
|
427
|
+
pydantic.Field(alias="format"),
|
|
428
|
+
] = OutputWebhookFormat.NDJSON
|
|
429
|
+
r"""How to format events before sending out"""
|
|
430
|
+
|
|
431
|
+
keep_alive: Annotated[Optional[bool], pydantic.Field(alias="keepAlive")] = True
|
|
432
|
+
r"""Disable to close the connection immediately after sending the outgoing request"""
|
|
433
|
+
|
|
434
|
+
concurrency: Optional[float] = 5
|
|
435
|
+
r"""Maximum number of ongoing requests before blocking"""
|
|
436
|
+
|
|
437
|
+
max_payload_size_kb: Annotated[
|
|
438
|
+
Optional[float], pydantic.Field(alias="maxPayloadSizeKB")
|
|
439
|
+
] = 4096
|
|
440
|
+
r"""Maximum size, in KB, of the request body"""
|
|
441
|
+
|
|
442
|
+
max_payload_events: Annotated[
|
|
443
|
+
Optional[float], pydantic.Field(alias="maxPayloadEvents")
|
|
444
|
+
] = 0
|
|
445
|
+
r"""Maximum number of events to include in the request body. Default is 0 (unlimited)."""
|
|
446
|
+
|
|
447
|
+
compress: Optional[bool] = True
|
|
448
|
+
r"""Compress the payload body before sending"""
|
|
449
|
+
|
|
450
|
+
reject_unauthorized: Annotated[
|
|
451
|
+
Optional[bool], pydantic.Field(alias="rejectUnauthorized")
|
|
452
|
+
] = True
|
|
453
|
+
r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's).
|
|
454
|
+
Enabled by default. When this setting is also present in TLS Settings (Client Side),
|
|
455
|
+
that value will take precedence.
|
|
456
|
+
"""
|
|
457
|
+
|
|
458
|
+
timeout_sec: Annotated[Optional[float], pydantic.Field(alias="timeoutSec")] = 30
|
|
459
|
+
r"""Amount of time, in seconds, to wait for a request to complete before canceling it"""
|
|
460
|
+
|
|
461
|
+
flush_period_sec: Annotated[
|
|
462
|
+
Optional[float], pydantic.Field(alias="flushPeriodSec")
|
|
463
|
+
] = 1
|
|
464
|
+
r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
|
|
465
|
+
|
|
466
|
+
extra_http_headers: Annotated[
|
|
467
|
+
Optional[List[OutputWebhookExtraHTTPHeader]],
|
|
468
|
+
pydantic.Field(alias="extraHttpHeaders"),
|
|
469
|
+
] = None
|
|
470
|
+
r"""Headers to add to all events. You can also add headers dynamically on a per-event basis in the __headers field, as explained in [Cribl Docs](https://docs.cribl.io/stream/destinations-webhook/#internal-fields)."""
|
|
471
|
+
|
|
472
|
+
use_round_robin_dns: Annotated[
|
|
473
|
+
Optional[bool], pydantic.Field(alias="useRoundRobinDns")
|
|
474
|
+
] = False
|
|
475
|
+
r"""Enable round-robin DNS lookup. When a DNS server returns multiple addresses, @{product} will cycle through them in the order returned. For optimal performance, consider enabling this setting for non-load balanced destinations."""
|
|
476
|
+
|
|
477
|
+
failed_request_logging_mode: Annotated[
|
|
478
|
+
Annotated[
|
|
479
|
+
Optional[OutputWebhookFailedRequestLoggingMode],
|
|
480
|
+
PlainValidator(validate_open_enum(False)),
|
|
481
|
+
],
|
|
482
|
+
pydantic.Field(alias="failedRequestLoggingMode"),
|
|
483
|
+
] = OutputWebhookFailedRequestLoggingMode.NONE
|
|
484
|
+
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
485
|
+
|
|
486
|
+
safe_headers: Annotated[
|
|
487
|
+
Optional[List[str]], pydantic.Field(alias="safeHeaders")
|
|
488
|
+
] = None
|
|
489
|
+
r"""List of headers that are safe to log in plain text"""
|
|
490
|
+
|
|
491
|
+
response_retry_settings: Annotated[
|
|
492
|
+
Optional[List[OutputWebhookResponseRetrySetting]],
|
|
493
|
+
pydantic.Field(alias="responseRetrySettings"),
|
|
494
|
+
] = None
|
|
495
|
+
r"""Automatically retry after unsuccessful response status codes, such as 429 (Too Many Requests) or 503 (Service Unavailable)"""
|
|
496
|
+
|
|
497
|
+
timeout_retry_settings: Annotated[
|
|
498
|
+
Optional[OutputWebhookTimeoutRetrySettings],
|
|
499
|
+
pydantic.Field(alias="timeoutRetrySettings"),
|
|
500
|
+
] = None
|
|
501
|
+
|
|
502
|
+
response_honor_retry_after_header: Annotated[
|
|
503
|
+
Optional[bool], pydantic.Field(alias="responseHonorRetryAfterHeader")
|
|
504
|
+
] = False
|
|
505
|
+
r"""Honor any Retry-After header that specifies a delay (in seconds) no longer than 180 seconds after the retry request. @{product} limits the delay to 180 seconds, even if the Retry-After header specifies a longer delay. When enabled, takes precedence over user-configured retry options. When disabled, all Retry-After headers are ignored."""
|
|
506
|
+
|
|
507
|
+
on_backpressure: Annotated[
|
|
508
|
+
Annotated[
|
|
509
|
+
Optional[OutputWebhookBackpressureBehavior],
|
|
510
|
+
PlainValidator(validate_open_enum(False)),
|
|
511
|
+
],
|
|
512
|
+
pydantic.Field(alias="onBackpressure"),
|
|
513
|
+
] = OutputWebhookBackpressureBehavior.BLOCK
|
|
514
|
+
r"""How to handle events when all receivers are exerting backpressure"""
|
|
515
|
+
|
|
516
|
+
auth_type: Annotated[
|
|
517
|
+
Annotated[
|
|
518
|
+
Optional[OutputWebhookAuthenticationType],
|
|
519
|
+
PlainValidator(validate_open_enum(False)),
|
|
520
|
+
],
|
|
521
|
+
pydantic.Field(alias="authType"),
|
|
522
|
+
] = OutputWebhookAuthenticationType.NONE
|
|
523
|
+
r"""Authentication method to use for the HTTP request"""
|
|
524
|
+
|
|
525
|
+
tls: Optional[OutputWebhookTLSSettingsClientSide] = None
|
|
526
|
+
|
|
527
|
+
total_memory_limit_kb: Annotated[
|
|
528
|
+
Optional[float], pydantic.Field(alias="totalMemoryLimitKB")
|
|
529
|
+
] = None
|
|
530
|
+
r"""Maximum total size of the batches waiting to be sent. If left blank, defaults to 5 times the max body size (if set). If 0, no limit is enforced."""
|
|
531
|
+
|
|
532
|
+
load_balanced: Annotated[Optional[bool], pydantic.Field(alias="loadBalanced")] = (
|
|
533
|
+
False
|
|
534
|
+
)
|
|
535
|
+
r"""Enable for optimal performance. Even if you have one hostname, it can expand to multiple IPs. If disabled, consider enabling round-robin DNS."""
|
|
536
|
+
|
|
537
|
+
description: Optional[str] = None
|
|
538
|
+
|
|
539
|
+
custom_source_expression: Annotated[
|
|
540
|
+
Optional[str], pydantic.Field(alias="customSourceExpression")
|
|
541
|
+
] = "__httpOut"
|
|
542
|
+
r"""Expression to evaluate on events to generate output. Example: `raw=${_raw}`. See [Cribl Docs](https://docs.cribl.io/stream/destinations-webhook#custom-format) for other examples. If empty, the full event is sent as stringified JSON."""
|
|
543
|
+
|
|
544
|
+
custom_drop_when_null: Annotated[
|
|
545
|
+
Optional[bool], pydantic.Field(alias="customDropWhenNull")
|
|
546
|
+
] = False
|
|
547
|
+
r"""Whether to drop events when the source expression evaluates to null"""
|
|
548
|
+
|
|
549
|
+
custom_event_delimiter: Annotated[
|
|
550
|
+
Optional[str], pydantic.Field(alias="customEventDelimiter")
|
|
551
|
+
] = "\n"
|
|
552
|
+
r"""Delimiter string to insert between individual events. Defaults to newline character."""
|
|
553
|
+
|
|
554
|
+
custom_content_type: Annotated[
|
|
555
|
+
Optional[str], pydantic.Field(alias="customContentType")
|
|
556
|
+
] = "application/x-ndjson"
|
|
557
|
+
r"""Content type to use for request. Defaults to application/x-ndjson. Any content types set in Advanced Settings > Extra HTTP headers will override this entry."""
|
|
558
|
+
|
|
559
|
+
custom_payload_expression: Annotated[
|
|
560
|
+
Optional[str], pydantic.Field(alias="customPayloadExpression")
|
|
561
|
+
] = "`${events}`"
|
|
562
|
+
r"""Expression specifying how to format the payload for each batch. To reference the events to send, use the `${events}` variable. Example expression: `{ \"items\" : [${events}] }` would send the batch inside a JSON object."""
|
|
563
|
+
|
|
564
|
+
advanced_content_type: Annotated[
|
|
565
|
+
Optional[str], pydantic.Field(alias="advancedContentType")
|
|
566
|
+
] = "application/json"
|
|
567
|
+
r"""HTTP content-type header value"""
|
|
568
|
+
|
|
569
|
+
format_event_code: Annotated[
|
|
570
|
+
Optional[str], pydantic.Field(alias="formatEventCode")
|
|
571
|
+
] = None
|
|
572
|
+
r"""Custom JavaScript code to format incoming event data accessible through the __e variable. The formatted content is added to (__e['__eventOut']) if available. Otherwise, the original event is serialized as JSON. Caution: This function is evaluated in an unprotected context, allowing you to execute almost any JavaScript code."""
|
|
573
|
+
|
|
574
|
+
format_payload_code: Annotated[
|
|
575
|
+
Optional[str], pydantic.Field(alias="formatPayloadCode")
|
|
576
|
+
] = None
|
|
577
|
+
r"""Optional JavaScript code to format the payload sent to the Destination. The payload, containing a batch of formatted events, is accessible through the __e['payload'] variable. The formatted payload is returned in the __e['__payloadOut'] variable. Caution: This function is evaluated in an unprotected context, allowing you to execute almost any JavaScript code."""
|
|
578
|
+
|
|
579
|
+
pq_max_file_size: Annotated[
|
|
580
|
+
Optional[str], pydantic.Field(alias="pqMaxFileSize")
|
|
581
|
+
] = "1 MB"
|
|
582
|
+
r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
|
|
583
|
+
|
|
584
|
+
pq_max_size: Annotated[Optional[str], pydantic.Field(alias="pqMaxSize")] = "5GB"
|
|
585
|
+
r"""The maximum disk space that the queue can consume (as an average per Worker Process) before queueing stops. Enter a numeral with units of KB, MB, etc."""
|
|
586
|
+
|
|
587
|
+
pq_path: Annotated[Optional[str], pydantic.Field(alias="pqPath")] = (
|
|
588
|
+
"$CRIBL_HOME/state/queues"
|
|
589
|
+
)
|
|
590
|
+
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
|
|
591
|
+
|
|
592
|
+
pq_compress: Annotated[
|
|
593
|
+
Annotated[
|
|
594
|
+
Optional[OutputWebhookCompression],
|
|
595
|
+
PlainValidator(validate_open_enum(False)),
|
|
596
|
+
],
|
|
597
|
+
pydantic.Field(alias="pqCompress"),
|
|
598
|
+
] = OutputWebhookCompression.NONE
|
|
599
|
+
r"""Codec to use to compress the persisted data"""
|
|
600
|
+
|
|
601
|
+
pq_on_backpressure: Annotated[
|
|
602
|
+
Annotated[
|
|
603
|
+
Optional[OutputWebhookQueueFullBehavior],
|
|
604
|
+
PlainValidator(validate_open_enum(False)),
|
|
605
|
+
],
|
|
606
|
+
pydantic.Field(alias="pqOnBackpressure"),
|
|
607
|
+
] = OutputWebhookQueueFullBehavior.BLOCK
|
|
608
|
+
r"""How to handle events when the queue is exerting backpressure (full capacity or low disk). 'Block' is the same behavior as non-PQ blocking. 'Drop new data' throws away incoming data, while leaving the contents of the PQ unchanged."""
|
|
609
|
+
|
|
610
|
+
pq_mode: Annotated[
|
|
611
|
+
Annotated[
|
|
612
|
+
Optional[OutputWebhookMode], PlainValidator(validate_open_enum(False))
|
|
613
|
+
],
|
|
614
|
+
pydantic.Field(alias="pqMode"),
|
|
615
|
+
] = OutputWebhookMode.ERROR
|
|
616
|
+
r"""In Error mode, PQ writes events to the filesystem if the Destination is unavailable. In Backpressure mode, PQ writes events to the filesystem when it detects backpressure from the Destination. In Always On mode, PQ always writes events to the filesystem."""
|
|
617
|
+
|
|
618
|
+
pq_controls: Annotated[
|
|
619
|
+
Optional[OutputWebhookPqControls], pydantic.Field(alias="pqControls")
|
|
620
|
+
] = None
|
|
621
|
+
|
|
622
|
+
username: Optional[str] = None
|
|
623
|
+
|
|
624
|
+
password: Optional[str] = None
|
|
625
|
+
|
|
626
|
+
token: Optional[str] = None
|
|
627
|
+
r"""Bearer token to include in the authorization header"""
|
|
628
|
+
|
|
629
|
+
credentials_secret: Annotated[
|
|
630
|
+
Optional[str], pydantic.Field(alias="credentialsSecret")
|
|
631
|
+
] = None
|
|
632
|
+
r"""Select or create a secret that references your credentials"""
|
|
633
|
+
|
|
634
|
+
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
635
|
+
r"""Select or create a stored text secret"""
|
|
636
|
+
|
|
637
|
+
login_url: Annotated[Optional[str], pydantic.Field(alias="loginUrl")] = None
|
|
638
|
+
r"""URL for OAuth"""
|
|
639
|
+
|
|
640
|
+
secret_param_name: Annotated[
|
|
641
|
+
Optional[str], pydantic.Field(alias="secretParamName")
|
|
642
|
+
] = None
|
|
643
|
+
r"""Secret parameter name to pass in request body"""
|
|
644
|
+
|
|
645
|
+
secret: Optional[str] = None
|
|
646
|
+
r"""Secret parameter value to pass in request body"""
|
|
647
|
+
|
|
648
|
+
token_attribute_name: Annotated[
|
|
649
|
+
Optional[str], pydantic.Field(alias="tokenAttributeName")
|
|
650
|
+
] = None
|
|
651
|
+
r"""Name of the auth token attribute in the OAuth response. Can be top-level (e.g., 'token'); or nested, using a period (e.g., 'data.token')."""
|
|
652
|
+
|
|
653
|
+
auth_header_expr: Annotated[
|
|
654
|
+
Optional[str], pydantic.Field(alias="authHeaderExpr")
|
|
655
|
+
] = "`Bearer ${token}`"
|
|
656
|
+
r"""JavaScript expression to compute the Authorization header value to pass in requests. The value `${token}` is used to reference the token obtained from authentication, e.g.: `Bearer ${token}`."""
|
|
657
|
+
|
|
658
|
+
token_timeout_secs: Annotated[
|
|
659
|
+
Optional[float], pydantic.Field(alias="tokenTimeoutSecs")
|
|
660
|
+
] = 3600
|
|
661
|
+
r"""How often the OAuth token should be refreshed."""
|
|
662
|
+
|
|
663
|
+
oauth_params: Annotated[
|
|
664
|
+
Optional[List[OutputWebhookOauthParam]], pydantic.Field(alias="oauthParams")
|
|
665
|
+
] = None
|
|
666
|
+
r"""Additional parameters to send in the OAuth login request. @{product} will combine the secret with these parameters, and will send the URL-encoded result in a POST request to the endpoint specified in the 'Login URL'. We'll automatically add the content-type header 'application/x-www-form-urlencoded' when sending this request."""
|
|
667
|
+
|
|
668
|
+
oauth_headers: Annotated[
|
|
669
|
+
Optional[List[OutputWebhookOauthHeader]], pydantic.Field(alias="oauthHeaders")
|
|
670
|
+
] = None
|
|
671
|
+
r"""Additional headers to send in the OAuth login request. @{product} will automatically add the content-type header 'application/x-www-form-urlencoded' when sending this request."""
|
|
672
|
+
|
|
673
|
+
url: Optional[str] = None
|
|
674
|
+
r"""URL of a webhook endpoint to send events to, such as http://localhost:10200"""
|
|
675
|
+
|
|
676
|
+
exclude_self: Annotated[Optional[bool], pydantic.Field(alias="excludeSelf")] = False
|
|
677
|
+
r"""Exclude all IPs of the current host from the list of any resolved hostnames"""
|
|
678
|
+
|
|
679
|
+
urls: Optional[List[OutputWebhookURL]] = None
|
|
680
|
+
|
|
681
|
+
dns_resolve_period_sec: Annotated[
|
|
682
|
+
Optional[float], pydantic.Field(alias="dnsResolvePeriodSec")
|
|
683
|
+
] = 600
|
|
684
|
+
r"""The interval in which to re-resolve any hostnames and pick up destinations from A records"""
|
|
685
|
+
|
|
686
|
+
load_balance_stats_period_sec: Annotated[
|
|
687
|
+
Optional[float], pydantic.Field(alias="loadBalanceStatsPeriodSec")
|
|
688
|
+
] = 300
|
|
689
|
+
r"""How far back in time to keep traffic stats for load balancing purposes"""
|