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,410 @@
|
|
|
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 OutputCrowdstrikeNextGenSiemType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
15
|
+
CROWDSTRIKE_NEXT_GEN_SIEM = "crowdstrike_next_gen_siem"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class OutputCrowdstrikeNextGenSiemExtraHTTPHeaderTypedDict(TypedDict):
|
|
19
|
+
value: str
|
|
20
|
+
name: NotRequired[str]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class OutputCrowdstrikeNextGenSiemExtraHTTPHeader(BaseModel):
|
|
24
|
+
value: str
|
|
25
|
+
|
|
26
|
+
name: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class OutputCrowdstrikeNextGenSiemFailedRequestLoggingMode(
|
|
30
|
+
str, Enum, metaclass=utils.OpenEnumMeta
|
|
31
|
+
):
|
|
32
|
+
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
33
|
+
|
|
34
|
+
PAYLOAD = "payload"
|
|
35
|
+
PAYLOAD_AND_HEADERS = "payloadAndHeaders"
|
|
36
|
+
NONE = "none"
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class OutputCrowdstrikeNextGenSiemRequestFormat(
|
|
40
|
+
str, Enum, metaclass=utils.OpenEnumMeta
|
|
41
|
+
):
|
|
42
|
+
r"""When set to JSON, the event is automatically formatted with required fields before sending. When set to Raw, only the event's `_raw` value is sent."""
|
|
43
|
+
|
|
44
|
+
JSON = "JSON"
|
|
45
|
+
RAW = "raw"
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class OutputCrowdstrikeNextGenSiemAuthenticationMethod(
|
|
49
|
+
str, Enum, metaclass=utils.OpenEnumMeta
|
|
50
|
+
):
|
|
51
|
+
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
52
|
+
|
|
53
|
+
MANUAL = "manual"
|
|
54
|
+
SECRET = "secret"
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class OutputCrowdstrikeNextGenSiemResponseRetrySettingTypedDict(TypedDict):
|
|
58
|
+
http_status: float
|
|
59
|
+
r"""The HTTP response status code that will trigger retries"""
|
|
60
|
+
initial_backoff: NotRequired[float]
|
|
61
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
62
|
+
backoff_rate: NotRequired[float]
|
|
63
|
+
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."""
|
|
64
|
+
max_backoff: NotRequired[float]
|
|
65
|
+
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)."""
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class OutputCrowdstrikeNextGenSiemResponseRetrySetting(BaseModel):
|
|
69
|
+
http_status: Annotated[float, pydantic.Field(alias="httpStatus")]
|
|
70
|
+
r"""The HTTP response status code that will trigger retries"""
|
|
71
|
+
|
|
72
|
+
initial_backoff: Annotated[
|
|
73
|
+
Optional[float], pydantic.Field(alias="initialBackoff")
|
|
74
|
+
] = 1000
|
|
75
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
76
|
+
|
|
77
|
+
backoff_rate: Annotated[Optional[float], pydantic.Field(alias="backoffRate")] = 2
|
|
78
|
+
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."""
|
|
79
|
+
|
|
80
|
+
max_backoff: Annotated[Optional[float], pydantic.Field(alias="maxBackoff")] = 10000
|
|
81
|
+
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)."""
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
class OutputCrowdstrikeNextGenSiemTimeoutRetrySettingsTypedDict(TypedDict):
|
|
85
|
+
timeout_retry: NotRequired[bool]
|
|
86
|
+
initial_backoff: NotRequired[float]
|
|
87
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
88
|
+
backoff_rate: NotRequired[float]
|
|
89
|
+
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."""
|
|
90
|
+
max_backoff: NotRequired[float]
|
|
91
|
+
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)."""
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class OutputCrowdstrikeNextGenSiemTimeoutRetrySettings(BaseModel):
|
|
95
|
+
timeout_retry: Annotated[Optional[bool], pydantic.Field(alias="timeoutRetry")] = (
|
|
96
|
+
False
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
initial_backoff: Annotated[
|
|
100
|
+
Optional[float], pydantic.Field(alias="initialBackoff")
|
|
101
|
+
] = 1000
|
|
102
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
103
|
+
|
|
104
|
+
backoff_rate: Annotated[Optional[float], pydantic.Field(alias="backoffRate")] = 2
|
|
105
|
+
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."""
|
|
106
|
+
|
|
107
|
+
max_backoff: Annotated[Optional[float], pydantic.Field(alias="maxBackoff")] = 10000
|
|
108
|
+
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)."""
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class OutputCrowdstrikeNextGenSiemBackpressureBehavior(
|
|
112
|
+
str, Enum, metaclass=utils.OpenEnumMeta
|
|
113
|
+
):
|
|
114
|
+
r"""How to handle events when all receivers are exerting backpressure"""
|
|
115
|
+
|
|
116
|
+
BLOCK = "block"
|
|
117
|
+
DROP = "drop"
|
|
118
|
+
QUEUE = "queue"
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
class OutputCrowdstrikeNextGenSiemCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
122
|
+
r"""Codec to use to compress the persisted data"""
|
|
123
|
+
|
|
124
|
+
NONE = "none"
|
|
125
|
+
GZIP = "gzip"
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
class OutputCrowdstrikeNextGenSiemQueueFullBehavior(
|
|
129
|
+
str, Enum, metaclass=utils.OpenEnumMeta
|
|
130
|
+
):
|
|
131
|
+
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."""
|
|
132
|
+
|
|
133
|
+
BLOCK = "block"
|
|
134
|
+
DROP = "drop"
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class OutputCrowdstrikeNextGenSiemMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
138
|
+
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."""
|
|
139
|
+
|
|
140
|
+
ERROR = "error"
|
|
141
|
+
BACKPRESSURE = "backpressure"
|
|
142
|
+
ALWAYS = "always"
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class OutputCrowdstrikeNextGenSiemPqControlsTypedDict(TypedDict):
|
|
146
|
+
pass
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
class OutputCrowdstrikeNextGenSiemPqControls(BaseModel):
|
|
150
|
+
pass
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
class OutputCrowdstrikeNextGenSiemTypedDict(TypedDict):
|
|
154
|
+
url: str
|
|
155
|
+
r"""URL provided from a CrowdStrike data connector.
|
|
156
|
+
Example: https://ingest.<region>.crowdstrike.com/api/ingest/hec/<connection-id>/v1/services/collector
|
|
157
|
+
"""
|
|
158
|
+
id: NotRequired[str]
|
|
159
|
+
r"""Unique ID for this output"""
|
|
160
|
+
type: NotRequired[OutputCrowdstrikeNextGenSiemType]
|
|
161
|
+
pipeline: NotRequired[str]
|
|
162
|
+
r"""Pipeline to process data before sending out to this output"""
|
|
163
|
+
system_fields: NotRequired[List[str]]
|
|
164
|
+
r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
|
|
165
|
+
environment: NotRequired[str]
|
|
166
|
+
r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
|
|
167
|
+
streamtags: NotRequired[List[str]]
|
|
168
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
169
|
+
concurrency: NotRequired[float]
|
|
170
|
+
r"""Maximum number of ongoing requests before blocking"""
|
|
171
|
+
max_payload_size_kb: NotRequired[float]
|
|
172
|
+
r"""Maximum size, in KB, of the request body"""
|
|
173
|
+
max_payload_events: NotRequired[float]
|
|
174
|
+
r"""Maximum number of events to include in the request body. Default is 0 (unlimited)."""
|
|
175
|
+
compress: NotRequired[bool]
|
|
176
|
+
r"""Compress the payload body before sending"""
|
|
177
|
+
reject_unauthorized: NotRequired[bool]
|
|
178
|
+
r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's).
|
|
179
|
+
Enabled by default. When this setting is also present in TLS Settings (Client Side),
|
|
180
|
+
that value will take precedence.
|
|
181
|
+
"""
|
|
182
|
+
timeout_sec: NotRequired[float]
|
|
183
|
+
r"""Amount of time, in seconds, to wait for a request to complete before canceling it"""
|
|
184
|
+
flush_period_sec: NotRequired[float]
|
|
185
|
+
r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
|
|
186
|
+
extra_http_headers: NotRequired[
|
|
187
|
+
List[OutputCrowdstrikeNextGenSiemExtraHTTPHeaderTypedDict]
|
|
188
|
+
]
|
|
189
|
+
r"""Headers to add to all events"""
|
|
190
|
+
use_round_robin_dns: NotRequired[bool]
|
|
191
|
+
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."""
|
|
192
|
+
failed_request_logging_mode: NotRequired[
|
|
193
|
+
OutputCrowdstrikeNextGenSiemFailedRequestLoggingMode
|
|
194
|
+
]
|
|
195
|
+
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
196
|
+
safe_headers: NotRequired[List[str]]
|
|
197
|
+
r"""List of headers that are safe to log in plain text"""
|
|
198
|
+
format_: NotRequired[OutputCrowdstrikeNextGenSiemRequestFormat]
|
|
199
|
+
r"""When set to JSON, the event is automatically formatted with required fields before sending. When set to Raw, only the event's `_raw` value is sent."""
|
|
200
|
+
auth_type: NotRequired[OutputCrowdstrikeNextGenSiemAuthenticationMethod]
|
|
201
|
+
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
202
|
+
response_retry_settings: NotRequired[
|
|
203
|
+
List[OutputCrowdstrikeNextGenSiemResponseRetrySettingTypedDict]
|
|
204
|
+
]
|
|
205
|
+
r"""Automatically retry after unsuccessful response status codes, such as 429 (Too Many Requests) or 503 (Service Unavailable)"""
|
|
206
|
+
timeout_retry_settings: NotRequired[
|
|
207
|
+
OutputCrowdstrikeNextGenSiemTimeoutRetrySettingsTypedDict
|
|
208
|
+
]
|
|
209
|
+
response_honor_retry_after_header: NotRequired[bool]
|
|
210
|
+
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."""
|
|
211
|
+
on_backpressure: NotRequired[OutputCrowdstrikeNextGenSiemBackpressureBehavior]
|
|
212
|
+
r"""How to handle events when all receivers are exerting backpressure"""
|
|
213
|
+
description: NotRequired[str]
|
|
214
|
+
token: NotRequired[str]
|
|
215
|
+
text_secret: NotRequired[str]
|
|
216
|
+
r"""Select or create a stored text secret"""
|
|
217
|
+
pq_max_file_size: NotRequired[str]
|
|
218
|
+
r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
|
|
219
|
+
pq_max_size: NotRequired[str]
|
|
220
|
+
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."""
|
|
221
|
+
pq_path: NotRequired[str]
|
|
222
|
+
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
|
|
223
|
+
pq_compress: NotRequired[OutputCrowdstrikeNextGenSiemCompression]
|
|
224
|
+
r"""Codec to use to compress the persisted data"""
|
|
225
|
+
pq_on_backpressure: NotRequired[OutputCrowdstrikeNextGenSiemQueueFullBehavior]
|
|
226
|
+
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."""
|
|
227
|
+
pq_mode: NotRequired[OutputCrowdstrikeNextGenSiemMode]
|
|
228
|
+
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."""
|
|
229
|
+
pq_controls: NotRequired[OutputCrowdstrikeNextGenSiemPqControlsTypedDict]
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
class OutputCrowdstrikeNextGenSiem(BaseModel):
|
|
233
|
+
url: str
|
|
234
|
+
r"""URL provided from a CrowdStrike data connector.
|
|
235
|
+
Example: https://ingest.<region>.crowdstrike.com/api/ingest/hec/<connection-id>/v1/services/collector
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
id: Optional[str] = None
|
|
239
|
+
r"""Unique ID for this output"""
|
|
240
|
+
|
|
241
|
+
type: Annotated[
|
|
242
|
+
Optional[OutputCrowdstrikeNextGenSiemType],
|
|
243
|
+
PlainValidator(validate_open_enum(False)),
|
|
244
|
+
] = None
|
|
245
|
+
|
|
246
|
+
pipeline: Optional[str] = None
|
|
247
|
+
r"""Pipeline to process data before sending out to this output"""
|
|
248
|
+
|
|
249
|
+
system_fields: Annotated[
|
|
250
|
+
Optional[List[str]], pydantic.Field(alias="systemFields")
|
|
251
|
+
] = None
|
|
252
|
+
r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
|
|
253
|
+
|
|
254
|
+
environment: Optional[str] = None
|
|
255
|
+
r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
|
|
256
|
+
|
|
257
|
+
streamtags: Optional[List[str]] = None
|
|
258
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
259
|
+
|
|
260
|
+
concurrency: Optional[float] = 5
|
|
261
|
+
r"""Maximum number of ongoing requests before blocking"""
|
|
262
|
+
|
|
263
|
+
max_payload_size_kb: Annotated[
|
|
264
|
+
Optional[float], pydantic.Field(alias="maxPayloadSizeKB")
|
|
265
|
+
] = 4096
|
|
266
|
+
r"""Maximum size, in KB, of the request body"""
|
|
267
|
+
|
|
268
|
+
max_payload_events: Annotated[
|
|
269
|
+
Optional[float], pydantic.Field(alias="maxPayloadEvents")
|
|
270
|
+
] = 0
|
|
271
|
+
r"""Maximum number of events to include in the request body. Default is 0 (unlimited)."""
|
|
272
|
+
|
|
273
|
+
compress: Optional[bool] = True
|
|
274
|
+
r"""Compress the payload body before sending"""
|
|
275
|
+
|
|
276
|
+
reject_unauthorized: Annotated[
|
|
277
|
+
Optional[bool], pydantic.Field(alias="rejectUnauthorized")
|
|
278
|
+
] = True
|
|
279
|
+
r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's).
|
|
280
|
+
Enabled by default. When this setting is also present in TLS Settings (Client Side),
|
|
281
|
+
that value will take precedence.
|
|
282
|
+
"""
|
|
283
|
+
|
|
284
|
+
timeout_sec: Annotated[Optional[float], pydantic.Field(alias="timeoutSec")] = 30
|
|
285
|
+
r"""Amount of time, in seconds, to wait for a request to complete before canceling it"""
|
|
286
|
+
|
|
287
|
+
flush_period_sec: Annotated[
|
|
288
|
+
Optional[float], pydantic.Field(alias="flushPeriodSec")
|
|
289
|
+
] = 1
|
|
290
|
+
r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
|
|
291
|
+
|
|
292
|
+
extra_http_headers: Annotated[
|
|
293
|
+
Optional[List[OutputCrowdstrikeNextGenSiemExtraHTTPHeader]],
|
|
294
|
+
pydantic.Field(alias="extraHttpHeaders"),
|
|
295
|
+
] = None
|
|
296
|
+
r"""Headers to add to all events"""
|
|
297
|
+
|
|
298
|
+
use_round_robin_dns: Annotated[
|
|
299
|
+
Optional[bool], pydantic.Field(alias="useRoundRobinDns")
|
|
300
|
+
] = True
|
|
301
|
+
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."""
|
|
302
|
+
|
|
303
|
+
failed_request_logging_mode: Annotated[
|
|
304
|
+
Annotated[
|
|
305
|
+
Optional[OutputCrowdstrikeNextGenSiemFailedRequestLoggingMode],
|
|
306
|
+
PlainValidator(validate_open_enum(False)),
|
|
307
|
+
],
|
|
308
|
+
pydantic.Field(alias="failedRequestLoggingMode"),
|
|
309
|
+
] = OutputCrowdstrikeNextGenSiemFailedRequestLoggingMode.NONE
|
|
310
|
+
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
311
|
+
|
|
312
|
+
safe_headers: Annotated[
|
|
313
|
+
Optional[List[str]], pydantic.Field(alias="safeHeaders")
|
|
314
|
+
] = None
|
|
315
|
+
r"""List of headers that are safe to log in plain text"""
|
|
316
|
+
|
|
317
|
+
format_: Annotated[
|
|
318
|
+
Annotated[
|
|
319
|
+
Optional[OutputCrowdstrikeNextGenSiemRequestFormat],
|
|
320
|
+
PlainValidator(validate_open_enum(False)),
|
|
321
|
+
],
|
|
322
|
+
pydantic.Field(alias="format"),
|
|
323
|
+
] = OutputCrowdstrikeNextGenSiemRequestFormat.RAW
|
|
324
|
+
r"""When set to JSON, the event is automatically formatted with required fields before sending. When set to Raw, only the event's `_raw` value is sent."""
|
|
325
|
+
|
|
326
|
+
auth_type: Annotated[
|
|
327
|
+
Annotated[
|
|
328
|
+
Optional[OutputCrowdstrikeNextGenSiemAuthenticationMethod],
|
|
329
|
+
PlainValidator(validate_open_enum(False)),
|
|
330
|
+
],
|
|
331
|
+
pydantic.Field(alias="authType"),
|
|
332
|
+
] = OutputCrowdstrikeNextGenSiemAuthenticationMethod.MANUAL
|
|
333
|
+
r"""Select Manual to enter an auth token directly, or select Secret to use a text secret to authenticate"""
|
|
334
|
+
|
|
335
|
+
response_retry_settings: Annotated[
|
|
336
|
+
Optional[List[OutputCrowdstrikeNextGenSiemResponseRetrySetting]],
|
|
337
|
+
pydantic.Field(alias="responseRetrySettings"),
|
|
338
|
+
] = None
|
|
339
|
+
r"""Automatically retry after unsuccessful response status codes, such as 429 (Too Many Requests) or 503 (Service Unavailable)"""
|
|
340
|
+
|
|
341
|
+
timeout_retry_settings: Annotated[
|
|
342
|
+
Optional[OutputCrowdstrikeNextGenSiemTimeoutRetrySettings],
|
|
343
|
+
pydantic.Field(alias="timeoutRetrySettings"),
|
|
344
|
+
] = None
|
|
345
|
+
|
|
346
|
+
response_honor_retry_after_header: Annotated[
|
|
347
|
+
Optional[bool], pydantic.Field(alias="responseHonorRetryAfterHeader")
|
|
348
|
+
] = False
|
|
349
|
+
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."""
|
|
350
|
+
|
|
351
|
+
on_backpressure: Annotated[
|
|
352
|
+
Annotated[
|
|
353
|
+
Optional[OutputCrowdstrikeNextGenSiemBackpressureBehavior],
|
|
354
|
+
PlainValidator(validate_open_enum(False)),
|
|
355
|
+
],
|
|
356
|
+
pydantic.Field(alias="onBackpressure"),
|
|
357
|
+
] = OutputCrowdstrikeNextGenSiemBackpressureBehavior.BLOCK
|
|
358
|
+
r"""How to handle events when all receivers are exerting backpressure"""
|
|
359
|
+
|
|
360
|
+
description: Optional[str] = None
|
|
361
|
+
|
|
362
|
+
token: Optional[str] = None
|
|
363
|
+
|
|
364
|
+
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
365
|
+
r"""Select or create a stored text secret"""
|
|
366
|
+
|
|
367
|
+
pq_max_file_size: Annotated[
|
|
368
|
+
Optional[str], pydantic.Field(alias="pqMaxFileSize")
|
|
369
|
+
] = "1 MB"
|
|
370
|
+
r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
|
|
371
|
+
|
|
372
|
+
pq_max_size: Annotated[Optional[str], pydantic.Field(alias="pqMaxSize")] = "5GB"
|
|
373
|
+
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."""
|
|
374
|
+
|
|
375
|
+
pq_path: Annotated[Optional[str], pydantic.Field(alias="pqPath")] = (
|
|
376
|
+
"$CRIBL_HOME/state/queues"
|
|
377
|
+
)
|
|
378
|
+
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
|
|
379
|
+
|
|
380
|
+
pq_compress: Annotated[
|
|
381
|
+
Annotated[
|
|
382
|
+
Optional[OutputCrowdstrikeNextGenSiemCompression],
|
|
383
|
+
PlainValidator(validate_open_enum(False)),
|
|
384
|
+
],
|
|
385
|
+
pydantic.Field(alias="pqCompress"),
|
|
386
|
+
] = OutputCrowdstrikeNextGenSiemCompression.NONE
|
|
387
|
+
r"""Codec to use to compress the persisted data"""
|
|
388
|
+
|
|
389
|
+
pq_on_backpressure: Annotated[
|
|
390
|
+
Annotated[
|
|
391
|
+
Optional[OutputCrowdstrikeNextGenSiemQueueFullBehavior],
|
|
392
|
+
PlainValidator(validate_open_enum(False)),
|
|
393
|
+
],
|
|
394
|
+
pydantic.Field(alias="pqOnBackpressure"),
|
|
395
|
+
] = OutputCrowdstrikeNextGenSiemQueueFullBehavior.BLOCK
|
|
396
|
+
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."""
|
|
397
|
+
|
|
398
|
+
pq_mode: Annotated[
|
|
399
|
+
Annotated[
|
|
400
|
+
Optional[OutputCrowdstrikeNextGenSiemMode],
|
|
401
|
+
PlainValidator(validate_open_enum(False)),
|
|
402
|
+
],
|
|
403
|
+
pydantic.Field(alias="pqMode"),
|
|
404
|
+
] = OutputCrowdstrikeNextGenSiemMode.ERROR
|
|
405
|
+
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."""
|
|
406
|
+
|
|
407
|
+
pq_controls: Annotated[
|
|
408
|
+
Optional[OutputCrowdstrikeNextGenSiemPqControls],
|
|
409
|
+
pydantic.Field(alias="pqControls"),
|
|
410
|
+
] = None
|