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,488 @@
|
|
|
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 OutputSentinelType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
15
|
+
SENTINEL = "sentinel"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class OutputSentinelExtraHTTPHeaderTypedDict(TypedDict):
|
|
19
|
+
value: str
|
|
20
|
+
name: NotRequired[str]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class OutputSentinelExtraHTTPHeader(BaseModel):
|
|
24
|
+
value: str
|
|
25
|
+
|
|
26
|
+
name: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class OutputSentinelFailedRequestLoggingMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
30
|
+
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
31
|
+
|
|
32
|
+
PAYLOAD = "payload"
|
|
33
|
+
PAYLOAD_AND_HEADERS = "payloadAndHeaders"
|
|
34
|
+
NONE = "none"
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class OutputSentinelResponseRetrySettingTypedDict(TypedDict):
|
|
38
|
+
http_status: float
|
|
39
|
+
r"""The HTTP response status code that will trigger retries"""
|
|
40
|
+
initial_backoff: NotRequired[float]
|
|
41
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
42
|
+
backoff_rate: NotRequired[float]
|
|
43
|
+
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."""
|
|
44
|
+
max_backoff: NotRequired[float]
|
|
45
|
+
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)."""
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
class OutputSentinelResponseRetrySetting(BaseModel):
|
|
49
|
+
http_status: Annotated[float, pydantic.Field(alias="httpStatus")]
|
|
50
|
+
r"""The HTTP response status code that will trigger retries"""
|
|
51
|
+
|
|
52
|
+
initial_backoff: Annotated[
|
|
53
|
+
Optional[float], pydantic.Field(alias="initialBackoff")
|
|
54
|
+
] = 1000
|
|
55
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
56
|
+
|
|
57
|
+
backoff_rate: Annotated[Optional[float], pydantic.Field(alias="backoffRate")] = 2
|
|
58
|
+
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."""
|
|
59
|
+
|
|
60
|
+
max_backoff: Annotated[Optional[float], pydantic.Field(alias="maxBackoff")] = 10000
|
|
61
|
+
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)."""
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
class OutputSentinelTimeoutRetrySettingsTypedDict(TypedDict):
|
|
65
|
+
timeout_retry: NotRequired[bool]
|
|
66
|
+
initial_backoff: NotRequired[float]
|
|
67
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
68
|
+
backoff_rate: NotRequired[float]
|
|
69
|
+
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."""
|
|
70
|
+
max_backoff: NotRequired[float]
|
|
71
|
+
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)."""
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
class OutputSentinelTimeoutRetrySettings(BaseModel):
|
|
75
|
+
timeout_retry: Annotated[Optional[bool], pydantic.Field(alias="timeoutRetry")] = (
|
|
76
|
+
False
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
initial_backoff: Annotated[
|
|
80
|
+
Optional[float], pydantic.Field(alias="initialBackoff")
|
|
81
|
+
] = 1000
|
|
82
|
+
r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
|
|
83
|
+
|
|
84
|
+
backoff_rate: Annotated[Optional[float], pydantic.Field(alias="backoffRate")] = 2
|
|
85
|
+
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."""
|
|
86
|
+
|
|
87
|
+
max_backoff: Annotated[Optional[float], pydantic.Field(alias="maxBackoff")] = 10000
|
|
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 OutputSentinelBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
92
|
+
r"""How to handle events when all receivers are exerting backpressure"""
|
|
93
|
+
|
|
94
|
+
BLOCK = "block"
|
|
95
|
+
DROP = "drop"
|
|
96
|
+
QUEUE = "queue"
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
class AuthType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
100
|
+
OAUTH = "oauth"
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
class EndpointConfiguration(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
104
|
+
r"""Enter the data collection endpoint URL or the individual ID"""
|
|
105
|
+
|
|
106
|
+
URL = "url"
|
|
107
|
+
ID = "ID"
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
class OutputSentinelFormat(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
111
|
+
NDJSON = "ndjson"
|
|
112
|
+
JSON_ARRAY = "json_array"
|
|
113
|
+
CUSTOM = "custom"
|
|
114
|
+
ADVANCED = "advanced"
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
class OutputSentinelCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
118
|
+
r"""Codec to use to compress the persisted data"""
|
|
119
|
+
|
|
120
|
+
NONE = "none"
|
|
121
|
+
GZIP = "gzip"
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class OutputSentinelQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
125
|
+
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."""
|
|
126
|
+
|
|
127
|
+
BLOCK = "block"
|
|
128
|
+
DROP = "drop"
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
class OutputSentinelMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
132
|
+
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."""
|
|
133
|
+
|
|
134
|
+
ERROR = "error"
|
|
135
|
+
BACKPRESSURE = "backpressure"
|
|
136
|
+
ALWAYS = "always"
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class OutputSentinelPqControlsTypedDict(TypedDict):
|
|
140
|
+
pass
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
class OutputSentinelPqControls(BaseModel):
|
|
144
|
+
pass
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
class OutputSentinelTypedDict(TypedDict):
|
|
148
|
+
login_url: str
|
|
149
|
+
r"""URL for OAuth"""
|
|
150
|
+
secret: str
|
|
151
|
+
r"""Secret parameter value to pass in request body"""
|
|
152
|
+
client_id: str
|
|
153
|
+
r"""JavaScript expression to compute the Client ID for the Azure application. Can be a constant."""
|
|
154
|
+
id: NotRequired[str]
|
|
155
|
+
r"""Unique ID for this output"""
|
|
156
|
+
type: NotRequired[OutputSentinelType]
|
|
157
|
+
pipeline: NotRequired[str]
|
|
158
|
+
r"""Pipeline to process data before sending out to this output"""
|
|
159
|
+
system_fields: NotRequired[List[str]]
|
|
160
|
+
r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
|
|
161
|
+
environment: NotRequired[str]
|
|
162
|
+
r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
|
|
163
|
+
streamtags: NotRequired[List[str]]
|
|
164
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
165
|
+
keep_alive: NotRequired[bool]
|
|
166
|
+
r"""Disable to close the connection immediately after sending the outgoing request"""
|
|
167
|
+
concurrency: NotRequired[float]
|
|
168
|
+
r"""Maximum number of ongoing requests before blocking"""
|
|
169
|
+
max_payload_size_kb: NotRequired[float]
|
|
170
|
+
r"""Maximum size (KB) of the request body (defaults to the API's maximum limit of 1000 KB)"""
|
|
171
|
+
max_payload_events: NotRequired[float]
|
|
172
|
+
r"""Maximum number of events to include in the request body. Default is 0 (unlimited)."""
|
|
173
|
+
compress: NotRequired[bool]
|
|
174
|
+
r"""Compress the payload body before sending"""
|
|
175
|
+
reject_unauthorized: NotRequired[bool]
|
|
176
|
+
r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's).
|
|
177
|
+
Enabled by default. When this setting is also present in TLS Settings (Client Side),
|
|
178
|
+
that value will take precedence.
|
|
179
|
+
"""
|
|
180
|
+
timeout_sec: NotRequired[float]
|
|
181
|
+
r"""Amount of time, in seconds, to wait for a request to complete before canceling it"""
|
|
182
|
+
flush_period_sec: NotRequired[float]
|
|
183
|
+
r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
|
|
184
|
+
extra_http_headers: NotRequired[List[OutputSentinelExtraHTTPHeaderTypedDict]]
|
|
185
|
+
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)."""
|
|
186
|
+
use_round_robin_dns: NotRequired[bool]
|
|
187
|
+
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."""
|
|
188
|
+
failed_request_logging_mode: NotRequired[OutputSentinelFailedRequestLoggingMode]
|
|
189
|
+
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
190
|
+
safe_headers: NotRequired[List[str]]
|
|
191
|
+
r"""List of headers that are safe to log in plain text"""
|
|
192
|
+
response_retry_settings: NotRequired[
|
|
193
|
+
List[OutputSentinelResponseRetrySettingTypedDict]
|
|
194
|
+
]
|
|
195
|
+
r"""Automatically retry after unsuccessful response status codes, such as 429 (Too Many Requests) or 503 (Service Unavailable)"""
|
|
196
|
+
timeout_retry_settings: NotRequired[OutputSentinelTimeoutRetrySettingsTypedDict]
|
|
197
|
+
response_honor_retry_after_header: NotRequired[bool]
|
|
198
|
+
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."""
|
|
199
|
+
on_backpressure: NotRequired[OutputSentinelBackpressureBehavior]
|
|
200
|
+
r"""How to handle events when all receivers are exerting backpressure"""
|
|
201
|
+
auth_type: NotRequired[AuthType]
|
|
202
|
+
scope: NotRequired[str]
|
|
203
|
+
r"""Scope to pass in the OAuth request"""
|
|
204
|
+
endpoint_url_configuration: NotRequired[EndpointConfiguration]
|
|
205
|
+
r"""Enter the data collection endpoint URL or the individual ID"""
|
|
206
|
+
total_memory_limit_kb: NotRequired[float]
|
|
207
|
+
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."""
|
|
208
|
+
description: NotRequired[str]
|
|
209
|
+
format_: NotRequired[OutputSentinelFormat]
|
|
210
|
+
custom_source_expression: NotRequired[str]
|
|
211
|
+
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."""
|
|
212
|
+
custom_drop_when_null: NotRequired[bool]
|
|
213
|
+
r"""Whether to drop events when the source expression evaluates to null"""
|
|
214
|
+
custom_event_delimiter: NotRequired[str]
|
|
215
|
+
r"""Delimiter string to insert between individual events. Defaults to newline character."""
|
|
216
|
+
custom_content_type: NotRequired[str]
|
|
217
|
+
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."""
|
|
218
|
+
custom_payload_expression: NotRequired[str]
|
|
219
|
+
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."""
|
|
220
|
+
advanced_content_type: NotRequired[str]
|
|
221
|
+
r"""HTTP content-type header value"""
|
|
222
|
+
format_event_code: NotRequired[str]
|
|
223
|
+
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."""
|
|
224
|
+
format_payload_code: NotRequired[str]
|
|
225
|
+
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."""
|
|
226
|
+
pq_max_file_size: NotRequired[str]
|
|
227
|
+
r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
|
|
228
|
+
pq_max_size: NotRequired[str]
|
|
229
|
+
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."""
|
|
230
|
+
pq_path: NotRequired[str]
|
|
231
|
+
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
|
|
232
|
+
pq_compress: NotRequired[OutputSentinelCompression]
|
|
233
|
+
r"""Codec to use to compress the persisted data"""
|
|
234
|
+
pq_on_backpressure: NotRequired[OutputSentinelQueueFullBehavior]
|
|
235
|
+
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."""
|
|
236
|
+
pq_mode: NotRequired[OutputSentinelMode]
|
|
237
|
+
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."""
|
|
238
|
+
pq_controls: NotRequired[OutputSentinelPqControlsTypedDict]
|
|
239
|
+
url: NotRequired[str]
|
|
240
|
+
r"""URL to send events to. Can be overwritten by an event's __url field."""
|
|
241
|
+
dcr_id: NotRequired[str]
|
|
242
|
+
r"""Immutable ID for the Data Collection Rule (DCR)"""
|
|
243
|
+
dce_endpoint: NotRequired[str]
|
|
244
|
+
r"""Data collection endpoint (DCE) URL. In the format: `https://<Endpoint-Name>-<Identifier>.<Region>.ingest.monitor.azure.com`"""
|
|
245
|
+
stream_name: NotRequired[str]
|
|
246
|
+
r"""The name of the stream (Sentinel table) in which to store the events"""
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
class OutputSentinel(BaseModel):
|
|
250
|
+
login_url: Annotated[str, pydantic.Field(alias="loginUrl")]
|
|
251
|
+
r"""URL for OAuth"""
|
|
252
|
+
|
|
253
|
+
secret: str
|
|
254
|
+
r"""Secret parameter value to pass in request body"""
|
|
255
|
+
|
|
256
|
+
client_id: str
|
|
257
|
+
r"""JavaScript expression to compute the Client ID for the Azure application. Can be a constant."""
|
|
258
|
+
|
|
259
|
+
id: Optional[str] = None
|
|
260
|
+
r"""Unique ID for this output"""
|
|
261
|
+
|
|
262
|
+
type: Annotated[
|
|
263
|
+
Optional[OutputSentinelType], PlainValidator(validate_open_enum(False))
|
|
264
|
+
] = None
|
|
265
|
+
|
|
266
|
+
pipeline: Optional[str] = None
|
|
267
|
+
r"""Pipeline to process data before sending out to this output"""
|
|
268
|
+
|
|
269
|
+
system_fields: Annotated[
|
|
270
|
+
Optional[List[str]], pydantic.Field(alias="systemFields")
|
|
271
|
+
] = None
|
|
272
|
+
r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
|
|
273
|
+
|
|
274
|
+
environment: Optional[str] = None
|
|
275
|
+
r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
|
|
276
|
+
|
|
277
|
+
streamtags: Optional[List[str]] = None
|
|
278
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
279
|
+
|
|
280
|
+
keep_alive: Annotated[Optional[bool], pydantic.Field(alias="keepAlive")] = True
|
|
281
|
+
r"""Disable to close the connection immediately after sending the outgoing request"""
|
|
282
|
+
|
|
283
|
+
concurrency: Optional[float] = 5
|
|
284
|
+
r"""Maximum number of ongoing requests before blocking"""
|
|
285
|
+
|
|
286
|
+
max_payload_size_kb: Annotated[
|
|
287
|
+
Optional[float], pydantic.Field(alias="maxPayloadSizeKB")
|
|
288
|
+
] = 1000
|
|
289
|
+
r"""Maximum size (KB) of the request body (defaults to the API's maximum limit of 1000 KB)"""
|
|
290
|
+
|
|
291
|
+
max_payload_events: Annotated[
|
|
292
|
+
Optional[float], pydantic.Field(alias="maxPayloadEvents")
|
|
293
|
+
] = 0
|
|
294
|
+
r"""Maximum number of events to include in the request body. Default is 0 (unlimited)."""
|
|
295
|
+
|
|
296
|
+
compress: Optional[bool] = True
|
|
297
|
+
r"""Compress the payload body before sending"""
|
|
298
|
+
|
|
299
|
+
reject_unauthorized: Annotated[
|
|
300
|
+
Optional[bool], pydantic.Field(alias="rejectUnauthorized")
|
|
301
|
+
] = True
|
|
302
|
+
r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's).
|
|
303
|
+
Enabled by default. When this setting is also present in TLS Settings (Client Side),
|
|
304
|
+
that value will take precedence.
|
|
305
|
+
"""
|
|
306
|
+
|
|
307
|
+
timeout_sec: Annotated[Optional[float], pydantic.Field(alias="timeoutSec")] = 30
|
|
308
|
+
r"""Amount of time, in seconds, to wait for a request to complete before canceling it"""
|
|
309
|
+
|
|
310
|
+
flush_period_sec: Annotated[
|
|
311
|
+
Optional[float], pydantic.Field(alias="flushPeriodSec")
|
|
312
|
+
] = 1
|
|
313
|
+
r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
|
|
314
|
+
|
|
315
|
+
extra_http_headers: Annotated[
|
|
316
|
+
Optional[List[OutputSentinelExtraHTTPHeader]],
|
|
317
|
+
pydantic.Field(alias="extraHttpHeaders"),
|
|
318
|
+
] = None
|
|
319
|
+
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)."""
|
|
320
|
+
|
|
321
|
+
use_round_robin_dns: Annotated[
|
|
322
|
+
Optional[bool], pydantic.Field(alias="useRoundRobinDns")
|
|
323
|
+
] = False
|
|
324
|
+
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."""
|
|
325
|
+
|
|
326
|
+
failed_request_logging_mode: Annotated[
|
|
327
|
+
Annotated[
|
|
328
|
+
Optional[OutputSentinelFailedRequestLoggingMode],
|
|
329
|
+
PlainValidator(validate_open_enum(False)),
|
|
330
|
+
],
|
|
331
|
+
pydantic.Field(alias="failedRequestLoggingMode"),
|
|
332
|
+
] = OutputSentinelFailedRequestLoggingMode.NONE
|
|
333
|
+
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
334
|
+
|
|
335
|
+
safe_headers: Annotated[
|
|
336
|
+
Optional[List[str]], pydantic.Field(alias="safeHeaders")
|
|
337
|
+
] = None
|
|
338
|
+
r"""List of headers that are safe to log in plain text"""
|
|
339
|
+
|
|
340
|
+
response_retry_settings: Annotated[
|
|
341
|
+
Optional[List[OutputSentinelResponseRetrySetting]],
|
|
342
|
+
pydantic.Field(alias="responseRetrySettings"),
|
|
343
|
+
] = None
|
|
344
|
+
r"""Automatically retry after unsuccessful response status codes, such as 429 (Too Many Requests) or 503 (Service Unavailable)"""
|
|
345
|
+
|
|
346
|
+
timeout_retry_settings: Annotated[
|
|
347
|
+
Optional[OutputSentinelTimeoutRetrySettings],
|
|
348
|
+
pydantic.Field(alias="timeoutRetrySettings"),
|
|
349
|
+
] = None
|
|
350
|
+
|
|
351
|
+
response_honor_retry_after_header: Annotated[
|
|
352
|
+
Optional[bool], pydantic.Field(alias="responseHonorRetryAfterHeader")
|
|
353
|
+
] = False
|
|
354
|
+
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."""
|
|
355
|
+
|
|
356
|
+
on_backpressure: Annotated[
|
|
357
|
+
Annotated[
|
|
358
|
+
Optional[OutputSentinelBackpressureBehavior],
|
|
359
|
+
PlainValidator(validate_open_enum(False)),
|
|
360
|
+
],
|
|
361
|
+
pydantic.Field(alias="onBackpressure"),
|
|
362
|
+
] = OutputSentinelBackpressureBehavior.BLOCK
|
|
363
|
+
r"""How to handle events when all receivers are exerting backpressure"""
|
|
364
|
+
|
|
365
|
+
auth_type: Annotated[
|
|
366
|
+
Annotated[Optional[AuthType], PlainValidator(validate_open_enum(False))],
|
|
367
|
+
pydantic.Field(alias="authType"),
|
|
368
|
+
] = None
|
|
369
|
+
|
|
370
|
+
scope: Optional[str] = "https://monitor.azure.com/.default"
|
|
371
|
+
r"""Scope to pass in the OAuth request"""
|
|
372
|
+
|
|
373
|
+
endpoint_url_configuration: Annotated[
|
|
374
|
+
Annotated[
|
|
375
|
+
Optional[EndpointConfiguration], PlainValidator(validate_open_enum(False))
|
|
376
|
+
],
|
|
377
|
+
pydantic.Field(alias="endpointURLConfiguration"),
|
|
378
|
+
] = EndpointConfiguration.URL
|
|
379
|
+
r"""Enter the data collection endpoint URL or the individual ID"""
|
|
380
|
+
|
|
381
|
+
total_memory_limit_kb: Annotated[
|
|
382
|
+
Optional[float], pydantic.Field(alias="totalMemoryLimitKB")
|
|
383
|
+
] = None
|
|
384
|
+
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."""
|
|
385
|
+
|
|
386
|
+
description: Optional[str] = None
|
|
387
|
+
|
|
388
|
+
format_: Annotated[
|
|
389
|
+
Annotated[
|
|
390
|
+
Optional[OutputSentinelFormat], PlainValidator(validate_open_enum(False))
|
|
391
|
+
],
|
|
392
|
+
pydantic.Field(alias="format"),
|
|
393
|
+
] = None
|
|
394
|
+
|
|
395
|
+
custom_source_expression: Annotated[
|
|
396
|
+
Optional[str], pydantic.Field(alias="customSourceExpression")
|
|
397
|
+
] = "__httpOut"
|
|
398
|
+
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."""
|
|
399
|
+
|
|
400
|
+
custom_drop_when_null: Annotated[
|
|
401
|
+
Optional[bool], pydantic.Field(alias="customDropWhenNull")
|
|
402
|
+
] = False
|
|
403
|
+
r"""Whether to drop events when the source expression evaluates to null"""
|
|
404
|
+
|
|
405
|
+
custom_event_delimiter: Annotated[
|
|
406
|
+
Optional[str], pydantic.Field(alias="customEventDelimiter")
|
|
407
|
+
] = "\n"
|
|
408
|
+
r"""Delimiter string to insert between individual events. Defaults to newline character."""
|
|
409
|
+
|
|
410
|
+
custom_content_type: Annotated[
|
|
411
|
+
Optional[str], pydantic.Field(alias="customContentType")
|
|
412
|
+
] = "application/x-ndjson"
|
|
413
|
+
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."""
|
|
414
|
+
|
|
415
|
+
custom_payload_expression: Annotated[
|
|
416
|
+
Optional[str], pydantic.Field(alias="customPayloadExpression")
|
|
417
|
+
] = "`${events}`"
|
|
418
|
+
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."""
|
|
419
|
+
|
|
420
|
+
advanced_content_type: Annotated[
|
|
421
|
+
Optional[str], pydantic.Field(alias="advancedContentType")
|
|
422
|
+
] = "application/json"
|
|
423
|
+
r"""HTTP content-type header value"""
|
|
424
|
+
|
|
425
|
+
format_event_code: Annotated[
|
|
426
|
+
Optional[str], pydantic.Field(alias="formatEventCode")
|
|
427
|
+
] = None
|
|
428
|
+
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."""
|
|
429
|
+
|
|
430
|
+
format_payload_code: Annotated[
|
|
431
|
+
Optional[str], pydantic.Field(alias="formatPayloadCode")
|
|
432
|
+
] = None
|
|
433
|
+
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."""
|
|
434
|
+
|
|
435
|
+
pq_max_file_size: Annotated[
|
|
436
|
+
Optional[str], pydantic.Field(alias="pqMaxFileSize")
|
|
437
|
+
] = "1 MB"
|
|
438
|
+
r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
|
|
439
|
+
|
|
440
|
+
pq_max_size: Annotated[Optional[str], pydantic.Field(alias="pqMaxSize")] = "5GB"
|
|
441
|
+
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."""
|
|
442
|
+
|
|
443
|
+
pq_path: Annotated[Optional[str], pydantic.Field(alias="pqPath")] = (
|
|
444
|
+
"$CRIBL_HOME/state/queues"
|
|
445
|
+
)
|
|
446
|
+
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
|
|
447
|
+
|
|
448
|
+
pq_compress: Annotated[
|
|
449
|
+
Annotated[
|
|
450
|
+
Optional[OutputSentinelCompression],
|
|
451
|
+
PlainValidator(validate_open_enum(False)),
|
|
452
|
+
],
|
|
453
|
+
pydantic.Field(alias="pqCompress"),
|
|
454
|
+
] = OutputSentinelCompression.NONE
|
|
455
|
+
r"""Codec to use to compress the persisted data"""
|
|
456
|
+
|
|
457
|
+
pq_on_backpressure: Annotated[
|
|
458
|
+
Annotated[
|
|
459
|
+
Optional[OutputSentinelQueueFullBehavior],
|
|
460
|
+
PlainValidator(validate_open_enum(False)),
|
|
461
|
+
],
|
|
462
|
+
pydantic.Field(alias="pqOnBackpressure"),
|
|
463
|
+
] = OutputSentinelQueueFullBehavior.BLOCK
|
|
464
|
+
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."""
|
|
465
|
+
|
|
466
|
+
pq_mode: Annotated[
|
|
467
|
+
Annotated[
|
|
468
|
+
Optional[OutputSentinelMode], PlainValidator(validate_open_enum(False))
|
|
469
|
+
],
|
|
470
|
+
pydantic.Field(alias="pqMode"),
|
|
471
|
+
] = OutputSentinelMode.ERROR
|
|
472
|
+
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."""
|
|
473
|
+
|
|
474
|
+
pq_controls: Annotated[
|
|
475
|
+
Optional[OutputSentinelPqControls], pydantic.Field(alias="pqControls")
|
|
476
|
+
] = None
|
|
477
|
+
|
|
478
|
+
url: Optional[str] = None
|
|
479
|
+
r"""URL to send events to. Can be overwritten by an event's __url field."""
|
|
480
|
+
|
|
481
|
+
dcr_id: Annotated[Optional[str], pydantic.Field(alias="dcrID")] = None
|
|
482
|
+
r"""Immutable ID for the Data Collection Rule (DCR)"""
|
|
483
|
+
|
|
484
|
+
dce_endpoint: Annotated[Optional[str], pydantic.Field(alias="dceEndpoint")] = None
|
|
485
|
+
r"""Data collection endpoint (DCE) URL. In the format: `https://<Endpoint-Name>-<Identifier>.<Region>.ingest.monitor.azure.com`"""
|
|
486
|
+
|
|
487
|
+
stream_name: Annotated[Optional[str], pydantic.Field(alias="streamName")] = None
|
|
488
|
+
r"""The name of the stream (Sentinel table) in which to store the events"""
|