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,449 @@
|
|
|
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 InputOffice365MsgTraceType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
15
|
+
OFFICE365_MSG_TRACE = "office365_msg_trace"
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class InputOffice365MsgTraceConnectionTypedDict(TypedDict):
|
|
19
|
+
output: str
|
|
20
|
+
pipeline: NotRequired[str]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class InputOffice365MsgTraceConnection(BaseModel):
|
|
24
|
+
output: str
|
|
25
|
+
|
|
26
|
+
pipeline: Optional[str] = None
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class InputOffice365MsgTraceMode(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
30
|
+
r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
|
|
31
|
+
|
|
32
|
+
SMART = "smart"
|
|
33
|
+
ALWAYS = "always"
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class InputOffice365MsgTraceCompression(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
37
|
+
r"""Codec to use to compress the persisted data"""
|
|
38
|
+
|
|
39
|
+
NONE = "none"
|
|
40
|
+
GZIP = "gzip"
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
class InputOffice365MsgTracePqTypedDict(TypedDict):
|
|
44
|
+
mode: NotRequired[InputOffice365MsgTraceMode]
|
|
45
|
+
r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
|
|
46
|
+
max_buffer_size: NotRequired[float]
|
|
47
|
+
r"""The maximum number of events to hold in memory before writing the events to disk"""
|
|
48
|
+
commit_frequency: NotRequired[float]
|
|
49
|
+
r"""The number of events to send downstream before committing that Stream has read them"""
|
|
50
|
+
max_file_size: NotRequired[str]
|
|
51
|
+
r"""The maximum size to store in each queue file before closing and optionally compressing. Enter a numeral with units of KB, MB, etc."""
|
|
52
|
+
max_size: NotRequired[str]
|
|
53
|
+
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."""
|
|
54
|
+
path: NotRequired[str]
|
|
55
|
+
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
56
|
+
compress: NotRequired[InputOffice365MsgTraceCompression]
|
|
57
|
+
r"""Codec to use to compress the persisted data"""
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class InputOffice365MsgTracePq(BaseModel):
|
|
61
|
+
mode: Annotated[
|
|
62
|
+
Optional[InputOffice365MsgTraceMode], PlainValidator(validate_open_enum(False))
|
|
63
|
+
] = InputOffice365MsgTraceMode.ALWAYS
|
|
64
|
+
r"""With Smart mode, PQ will write events to the filesystem only when it detects backpressure from the processing engine. With Always On mode, PQ will always write events directly to the queue before forwarding them to the processing engine."""
|
|
65
|
+
|
|
66
|
+
max_buffer_size: Annotated[
|
|
67
|
+
Optional[float], pydantic.Field(alias="maxBufferSize")
|
|
68
|
+
] = 1000
|
|
69
|
+
r"""The maximum number of events to hold in memory before writing the events to disk"""
|
|
70
|
+
|
|
71
|
+
commit_frequency: Annotated[
|
|
72
|
+
Optional[float], pydantic.Field(alias="commitFrequency")
|
|
73
|
+
] = 42
|
|
74
|
+
r"""The number of events to send downstream before committing that Stream has read them"""
|
|
75
|
+
|
|
76
|
+
max_file_size: Annotated[Optional[str], pydantic.Field(alias="maxFileSize")] = (
|
|
77
|
+
"1 MB"
|
|
78
|
+
)
|
|
79
|
+
r"""The maximum size to store in each queue file before closing and optionally compressing. Enter a numeral with units of KB, MB, etc."""
|
|
80
|
+
|
|
81
|
+
max_size: Annotated[Optional[str], pydantic.Field(alias="maxSize")] = "5GB"
|
|
82
|
+
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."""
|
|
83
|
+
|
|
84
|
+
path: Optional[str] = "$CRIBL_HOME/state/queues"
|
|
85
|
+
r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/inputs/<input-id>"""
|
|
86
|
+
|
|
87
|
+
compress: Annotated[
|
|
88
|
+
Optional[InputOffice365MsgTraceCompression],
|
|
89
|
+
PlainValidator(validate_open_enum(False)),
|
|
90
|
+
] = InputOffice365MsgTraceCompression.NONE
|
|
91
|
+
r"""Codec to use to compress the persisted data"""
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
class InputOffice365MsgTraceAuthenticationMethod(
|
|
95
|
+
str, Enum, metaclass=utils.OpenEnumMeta
|
|
96
|
+
):
|
|
97
|
+
r"""Select authentication method."""
|
|
98
|
+
|
|
99
|
+
MANUAL = "manual"
|
|
100
|
+
SECRET = "secret"
|
|
101
|
+
OAUTH = "oauth"
|
|
102
|
+
OAUTH_SECRET = "oauthSecret"
|
|
103
|
+
OAUTH_CERT = "oauthCert"
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class InputOffice365MsgTraceLogLevel(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
107
|
+
r"""Log Level (verbosity) for collection runtime behavior."""
|
|
108
|
+
|
|
109
|
+
ERROR = "error"
|
|
110
|
+
WARN = "warn"
|
|
111
|
+
INFO = "info"
|
|
112
|
+
DEBUG = "debug"
|
|
113
|
+
SILLY = "silly"
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
class InputOffice365MsgTraceMetadatumTypedDict(TypedDict):
|
|
117
|
+
name: str
|
|
118
|
+
value: str
|
|
119
|
+
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
class InputOffice365MsgTraceMetadatum(BaseModel):
|
|
123
|
+
name: str
|
|
124
|
+
|
|
125
|
+
value: str
|
|
126
|
+
r"""JavaScript expression to compute field's value, enclosed in quotes or backticks. (Can evaluate to a constant.)"""
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
class InputOffice365MsgTraceRetryType(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
130
|
+
r"""The algorithm to use when performing HTTP retries"""
|
|
131
|
+
|
|
132
|
+
NONE = "none"
|
|
133
|
+
BACKOFF = "backoff"
|
|
134
|
+
STATIC = "static"
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class InputOffice365MsgTraceRetryRulesTypedDict(TypedDict):
|
|
138
|
+
type: NotRequired[InputOffice365MsgTraceRetryType]
|
|
139
|
+
r"""The algorithm to use when performing HTTP retries"""
|
|
140
|
+
interval: NotRequired[float]
|
|
141
|
+
r"""Time interval between failed request and first retry (kickoff). Maximum allowed value is 20,000 ms (1/3 minute)."""
|
|
142
|
+
limit: NotRequired[float]
|
|
143
|
+
r"""The maximum number of times to retry a failed HTTP request"""
|
|
144
|
+
multiplier: NotRequired[float]
|
|
145
|
+
r"""Base for exponential backoff, e.g., base 2 means that retries will occur after 2, then 4, then 8 seconds, and so on"""
|
|
146
|
+
codes: NotRequired[List[float]]
|
|
147
|
+
r"""List of http codes that trigger a retry. Leave empty to use the default list of 429, 500, and 503."""
|
|
148
|
+
enable_header: NotRequired[bool]
|
|
149
|
+
r"""Honor any Retry-After header that specifies a delay (in seconds) or a timestamp after which to retry the request. The delay is limited to 20 seconds, even if the Retry-After header specifies a longer delay. When disabled, all Retry-After headers are ignored."""
|
|
150
|
+
retry_connect_timeout: NotRequired[bool]
|
|
151
|
+
r"""Make a single retry attempt when a connection timeout (ETIMEDOUT) error occurs"""
|
|
152
|
+
retry_connect_reset: NotRequired[bool]
|
|
153
|
+
r"""Retry request when a connection reset (ECONNRESET) error occurs"""
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
class InputOffice365MsgTraceRetryRules(BaseModel):
|
|
157
|
+
type: Annotated[
|
|
158
|
+
Optional[InputOffice365MsgTraceRetryType],
|
|
159
|
+
PlainValidator(validate_open_enum(False)),
|
|
160
|
+
] = InputOffice365MsgTraceRetryType.BACKOFF
|
|
161
|
+
r"""The algorithm to use when performing HTTP retries"""
|
|
162
|
+
|
|
163
|
+
interval: Optional[float] = 1000
|
|
164
|
+
r"""Time interval between failed request and first retry (kickoff). Maximum allowed value is 20,000 ms (1/3 minute)."""
|
|
165
|
+
|
|
166
|
+
limit: Optional[float] = 5
|
|
167
|
+
r"""The maximum number of times to retry a failed HTTP request"""
|
|
168
|
+
|
|
169
|
+
multiplier: Optional[float] = 2
|
|
170
|
+
r"""Base for exponential backoff, e.g., base 2 means that retries will occur after 2, then 4, then 8 seconds, and so on"""
|
|
171
|
+
|
|
172
|
+
codes: Optional[List[float]] = None
|
|
173
|
+
r"""List of http codes that trigger a retry. Leave empty to use the default list of 429, 500, and 503."""
|
|
174
|
+
|
|
175
|
+
enable_header: Annotated[Optional[bool], pydantic.Field(alias="enableHeader")] = (
|
|
176
|
+
True
|
|
177
|
+
)
|
|
178
|
+
r"""Honor any Retry-After header that specifies a delay (in seconds) or a timestamp after which to retry the request. The delay is limited to 20 seconds, even if the Retry-After header specifies a longer delay. When disabled, all Retry-After headers are ignored."""
|
|
179
|
+
|
|
180
|
+
retry_connect_timeout: Annotated[
|
|
181
|
+
Optional[bool], pydantic.Field(alias="retryConnectTimeout")
|
|
182
|
+
] = False
|
|
183
|
+
r"""Make a single retry attempt when a connection timeout (ETIMEDOUT) error occurs"""
|
|
184
|
+
|
|
185
|
+
retry_connect_reset: Annotated[
|
|
186
|
+
Optional[bool], pydantic.Field(alias="retryConnectReset")
|
|
187
|
+
] = False
|
|
188
|
+
r"""Retry request when a connection reset (ECONNRESET) error occurs"""
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
class InputOffice365MsgTraceSubscriptionPlan(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
192
|
+
r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
|
|
193
|
+
|
|
194
|
+
ENTERPRISE_GCC = "enterprise_gcc"
|
|
195
|
+
GCC = "gcc"
|
|
196
|
+
GCC_HIGH = "gcc_high"
|
|
197
|
+
DOD = "dod"
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
class CertOptionsTypedDict(TypedDict):
|
|
201
|
+
priv_key_path: str
|
|
202
|
+
r"""Path to the private key to use. Key should be in PEM format. Can reference $ENV_VARS."""
|
|
203
|
+
cert_path: str
|
|
204
|
+
r"""Path to the certificate to use. Certificate should be in PEM format. Can reference $ENV_VARS."""
|
|
205
|
+
certificate_name: NotRequired[str]
|
|
206
|
+
r"""The name of the predefined certificate."""
|
|
207
|
+
passphrase: NotRequired[str]
|
|
208
|
+
r"""Passphrase to use to decrypt the private key."""
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
class CertOptions(BaseModel):
|
|
212
|
+
priv_key_path: Annotated[str, pydantic.Field(alias="privKeyPath")]
|
|
213
|
+
r"""Path to the private key to use. Key should be in PEM format. Can reference $ENV_VARS."""
|
|
214
|
+
|
|
215
|
+
cert_path: Annotated[str, pydantic.Field(alias="certPath")]
|
|
216
|
+
r"""Path to the certificate to use. Certificate should be in PEM format. Can reference $ENV_VARS."""
|
|
217
|
+
|
|
218
|
+
certificate_name: Annotated[
|
|
219
|
+
Optional[str], pydantic.Field(alias="certificateName")
|
|
220
|
+
] = None
|
|
221
|
+
r"""The name of the predefined certificate."""
|
|
222
|
+
|
|
223
|
+
passphrase: Optional[str] = None
|
|
224
|
+
r"""Passphrase to use to decrypt the private key."""
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
class InputOffice365MsgTraceTypedDict(TypedDict):
|
|
228
|
+
type: InputOffice365MsgTraceType
|
|
229
|
+
id: NotRequired[str]
|
|
230
|
+
r"""Unique ID for this input"""
|
|
231
|
+
disabled: NotRequired[bool]
|
|
232
|
+
pipeline: NotRequired[str]
|
|
233
|
+
r"""Pipeline to process data from this Source before sending it through the Routes"""
|
|
234
|
+
send_to_routes: NotRequired[bool]
|
|
235
|
+
r"""Select whether to send data to Routes, or directly to Destinations."""
|
|
236
|
+
environment: NotRequired[str]
|
|
237
|
+
r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
|
|
238
|
+
pq_enabled: NotRequired[bool]
|
|
239
|
+
r"""Use a disk queue to minimize data loss when connected services block. See [Cribl Docs](https://docs.cribl.io/stream/persistent-queues) for PQ defaults (Cribl-managed Cloud Workers) and configuration options (on-prem and hybrid Workers)."""
|
|
240
|
+
streamtags: NotRequired[List[str]]
|
|
241
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
242
|
+
connections: NotRequired[List[InputOffice365MsgTraceConnectionTypedDict]]
|
|
243
|
+
r"""Direct connections to Destinations, and optionally via a Pipeline or a Pack"""
|
|
244
|
+
pq: NotRequired[InputOffice365MsgTracePqTypedDict]
|
|
245
|
+
url: NotRequired[str]
|
|
246
|
+
r"""URL to use when retrieving report data."""
|
|
247
|
+
interval: NotRequired[float]
|
|
248
|
+
r"""How often (in minutes) to run the report. Must divide evenly into 60 minutes to create a predictable schedule, or Save will fail."""
|
|
249
|
+
start_date: NotRequired[str]
|
|
250
|
+
r"""Backward offset for the search range's head. (E.g.: -3h@h) Message Trace data is delayed; this parameter (with Date range end) compensates for delay and gaps."""
|
|
251
|
+
end_date: NotRequired[str]
|
|
252
|
+
r"""Backward offset for the search range's tail. (E.g.: -2h@h) Message Trace data is delayed; this parameter (with Date range start) compensates for delay and gaps."""
|
|
253
|
+
timeout: NotRequired[float]
|
|
254
|
+
r"""HTTP request inactivity timeout. Maximum is 2400 (40 minutes); enter 0 to wait indefinitely."""
|
|
255
|
+
disable_time_filter: NotRequired[bool]
|
|
256
|
+
r"""Disables time filtering of events when a date range is specified."""
|
|
257
|
+
auth_type: NotRequired[InputOffice365MsgTraceAuthenticationMethod]
|
|
258
|
+
r"""Select authentication method."""
|
|
259
|
+
reschedule_dropped_tasks: NotRequired[bool]
|
|
260
|
+
r"""Reschedule tasks that failed with non-fatal errors"""
|
|
261
|
+
max_task_reschedule: NotRequired[float]
|
|
262
|
+
r"""Maximum number of times a task can be rescheduled"""
|
|
263
|
+
log_level: NotRequired[InputOffice365MsgTraceLogLevel]
|
|
264
|
+
r"""Log Level (verbosity) for collection runtime behavior."""
|
|
265
|
+
job_timeout: NotRequired[str]
|
|
266
|
+
r"""Maximum time the job is allowed to run (e.g., 30, 45s or 15m). Units are seconds, if not specified. Enter 0 for unlimited time."""
|
|
267
|
+
keep_alive_time: NotRequired[float]
|
|
268
|
+
r"""How often workers should check in with the scheduler to keep job subscription alive"""
|
|
269
|
+
max_missed_keep_alives: NotRequired[float]
|
|
270
|
+
r"""The number of Keep Alive Time periods before an inactive worker will have its job subscription revoked."""
|
|
271
|
+
ttl: NotRequired[str]
|
|
272
|
+
r"""Time to keep the job's artifacts on disk after job completion. This also affects how long a job is listed in the Job Inspector."""
|
|
273
|
+
ignore_group_jobs_limit: NotRequired[bool]
|
|
274
|
+
r"""When enabled, this job's artifacts are not counted toward the Worker Group's finished job artifacts limit. Artifacts will be removed only after the Collector's configured time to live."""
|
|
275
|
+
metadata: NotRequired[List[InputOffice365MsgTraceMetadatumTypedDict]]
|
|
276
|
+
r"""Fields to add to events from this input"""
|
|
277
|
+
retry_rules: NotRequired[InputOffice365MsgTraceRetryRulesTypedDict]
|
|
278
|
+
description: NotRequired[str]
|
|
279
|
+
username: NotRequired[str]
|
|
280
|
+
r"""Username to run Message Trace API call."""
|
|
281
|
+
password: NotRequired[str]
|
|
282
|
+
r"""Password to run Message Trace API call."""
|
|
283
|
+
credentials_secret: NotRequired[str]
|
|
284
|
+
r"""Select or create a secret that references your credentials."""
|
|
285
|
+
client_secret: NotRequired[str]
|
|
286
|
+
r"""client_secret to pass in the OAuth request parameter."""
|
|
287
|
+
tenant_id: NotRequired[str]
|
|
288
|
+
r"""Directory ID (tenant identifier) in Azure Active Directory."""
|
|
289
|
+
client_id: NotRequired[str]
|
|
290
|
+
r"""client_id to pass in the OAuth request parameter."""
|
|
291
|
+
resource: NotRequired[str]
|
|
292
|
+
r"""Resource to pass in the OAuth request parameter."""
|
|
293
|
+
plan_type: NotRequired[InputOffice365MsgTraceSubscriptionPlan]
|
|
294
|
+
r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
|
|
295
|
+
text_secret: NotRequired[str]
|
|
296
|
+
r"""Select or create a secret that references your client_secret to pass in the OAuth request parameter."""
|
|
297
|
+
cert_options: NotRequired[CertOptionsTypedDict]
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
class InputOffice365MsgTrace(BaseModel):
|
|
301
|
+
type: Annotated[
|
|
302
|
+
InputOffice365MsgTraceType, PlainValidator(validate_open_enum(False))
|
|
303
|
+
]
|
|
304
|
+
|
|
305
|
+
id: Optional[str] = None
|
|
306
|
+
r"""Unique ID for this input"""
|
|
307
|
+
|
|
308
|
+
disabled: Optional[bool] = False
|
|
309
|
+
|
|
310
|
+
pipeline: Optional[str] = None
|
|
311
|
+
r"""Pipeline to process data from this Source before sending it through the Routes"""
|
|
312
|
+
|
|
313
|
+
send_to_routes: Annotated[Optional[bool], pydantic.Field(alias="sendToRoutes")] = (
|
|
314
|
+
True
|
|
315
|
+
)
|
|
316
|
+
r"""Select whether to send data to Routes, or directly to Destinations."""
|
|
317
|
+
|
|
318
|
+
environment: Optional[str] = None
|
|
319
|
+
r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
|
|
320
|
+
|
|
321
|
+
pq_enabled: Annotated[Optional[bool], pydantic.Field(alias="pqEnabled")] = False
|
|
322
|
+
r"""Use a disk queue to minimize data loss when connected services block. See [Cribl Docs](https://docs.cribl.io/stream/persistent-queues) for PQ defaults (Cribl-managed Cloud Workers) and configuration options (on-prem and hybrid Workers)."""
|
|
323
|
+
|
|
324
|
+
streamtags: Optional[List[str]] = None
|
|
325
|
+
r"""Tags for filtering and grouping in @{product}"""
|
|
326
|
+
|
|
327
|
+
connections: Optional[List[InputOffice365MsgTraceConnection]] = None
|
|
328
|
+
r"""Direct connections to Destinations, and optionally via a Pipeline or a Pack"""
|
|
329
|
+
|
|
330
|
+
pq: Optional[InputOffice365MsgTracePq] = None
|
|
331
|
+
|
|
332
|
+
url: Optional[str] = (
|
|
333
|
+
"https://reports.office365.com/ecp/reportingwebservice/reporting.svc/MessageTrace"
|
|
334
|
+
)
|
|
335
|
+
r"""URL to use when retrieving report data."""
|
|
336
|
+
|
|
337
|
+
interval: Optional[float] = 60
|
|
338
|
+
r"""How often (in minutes) to run the report. Must divide evenly into 60 minutes to create a predictable schedule, or Save will fail."""
|
|
339
|
+
|
|
340
|
+
start_date: Annotated[Optional[str], pydantic.Field(alias="startDate")] = None
|
|
341
|
+
r"""Backward offset for the search range's head. (E.g.: -3h@h) Message Trace data is delayed; this parameter (with Date range end) compensates for delay and gaps."""
|
|
342
|
+
|
|
343
|
+
end_date: Annotated[Optional[str], pydantic.Field(alias="endDate")] = None
|
|
344
|
+
r"""Backward offset for the search range's tail. (E.g.: -2h@h) Message Trace data is delayed; this parameter (with Date range start) compensates for delay and gaps."""
|
|
345
|
+
|
|
346
|
+
timeout: Optional[float] = 300
|
|
347
|
+
r"""HTTP request inactivity timeout. Maximum is 2400 (40 minutes); enter 0 to wait indefinitely."""
|
|
348
|
+
|
|
349
|
+
disable_time_filter: Annotated[
|
|
350
|
+
Optional[bool], pydantic.Field(alias="disableTimeFilter")
|
|
351
|
+
] = True
|
|
352
|
+
r"""Disables time filtering of events when a date range is specified."""
|
|
353
|
+
|
|
354
|
+
auth_type: Annotated[
|
|
355
|
+
Annotated[
|
|
356
|
+
Optional[InputOffice365MsgTraceAuthenticationMethod],
|
|
357
|
+
PlainValidator(validate_open_enum(False)),
|
|
358
|
+
],
|
|
359
|
+
pydantic.Field(alias="authType"),
|
|
360
|
+
] = InputOffice365MsgTraceAuthenticationMethod.OAUTH
|
|
361
|
+
r"""Select authentication method."""
|
|
362
|
+
|
|
363
|
+
reschedule_dropped_tasks: Annotated[
|
|
364
|
+
Optional[bool], pydantic.Field(alias="rescheduleDroppedTasks")
|
|
365
|
+
] = True
|
|
366
|
+
r"""Reschedule tasks that failed with non-fatal errors"""
|
|
367
|
+
|
|
368
|
+
max_task_reschedule: Annotated[
|
|
369
|
+
Optional[float], pydantic.Field(alias="maxTaskReschedule")
|
|
370
|
+
] = 1
|
|
371
|
+
r"""Maximum number of times a task can be rescheduled"""
|
|
372
|
+
|
|
373
|
+
log_level: Annotated[
|
|
374
|
+
Annotated[
|
|
375
|
+
Optional[InputOffice365MsgTraceLogLevel],
|
|
376
|
+
PlainValidator(validate_open_enum(False)),
|
|
377
|
+
],
|
|
378
|
+
pydantic.Field(alias="logLevel"),
|
|
379
|
+
] = InputOffice365MsgTraceLogLevel.INFO
|
|
380
|
+
r"""Log Level (verbosity) for collection runtime behavior."""
|
|
381
|
+
|
|
382
|
+
job_timeout: Annotated[Optional[str], pydantic.Field(alias="jobTimeout")] = "0"
|
|
383
|
+
r"""Maximum time the job is allowed to run (e.g., 30, 45s or 15m). Units are seconds, if not specified. Enter 0 for unlimited time."""
|
|
384
|
+
|
|
385
|
+
keep_alive_time: Annotated[
|
|
386
|
+
Optional[float], pydantic.Field(alias="keepAliveTime")
|
|
387
|
+
] = 30
|
|
388
|
+
r"""How often workers should check in with the scheduler to keep job subscription alive"""
|
|
389
|
+
|
|
390
|
+
max_missed_keep_alives: Annotated[
|
|
391
|
+
Optional[float], pydantic.Field(alias="maxMissedKeepAlives")
|
|
392
|
+
] = 3
|
|
393
|
+
r"""The number of Keep Alive Time periods before an inactive worker will have its job subscription revoked."""
|
|
394
|
+
|
|
395
|
+
ttl: Optional[str] = "4h"
|
|
396
|
+
r"""Time to keep the job's artifacts on disk after job completion. This also affects how long a job is listed in the Job Inspector."""
|
|
397
|
+
|
|
398
|
+
ignore_group_jobs_limit: Annotated[
|
|
399
|
+
Optional[bool], pydantic.Field(alias="ignoreGroupJobsLimit")
|
|
400
|
+
] = False
|
|
401
|
+
r"""When enabled, this job's artifacts are not counted toward the Worker Group's finished job artifacts limit. Artifacts will be removed only after the Collector's configured time to live."""
|
|
402
|
+
|
|
403
|
+
metadata: Optional[List[InputOffice365MsgTraceMetadatum]] = None
|
|
404
|
+
r"""Fields to add to events from this input"""
|
|
405
|
+
|
|
406
|
+
retry_rules: Annotated[
|
|
407
|
+
Optional[InputOffice365MsgTraceRetryRules], pydantic.Field(alias="retryRules")
|
|
408
|
+
] = None
|
|
409
|
+
|
|
410
|
+
description: Optional[str] = None
|
|
411
|
+
|
|
412
|
+
username: Optional[str] = None
|
|
413
|
+
r"""Username to run Message Trace API call."""
|
|
414
|
+
|
|
415
|
+
password: Optional[str] = None
|
|
416
|
+
r"""Password to run Message Trace API call."""
|
|
417
|
+
|
|
418
|
+
credentials_secret: Annotated[
|
|
419
|
+
Optional[str], pydantic.Field(alias="credentialsSecret")
|
|
420
|
+
] = None
|
|
421
|
+
r"""Select or create a secret that references your credentials."""
|
|
422
|
+
|
|
423
|
+
client_secret: Annotated[Optional[str], pydantic.Field(alias="clientSecret")] = None
|
|
424
|
+
r"""client_secret to pass in the OAuth request parameter."""
|
|
425
|
+
|
|
426
|
+
tenant_id: Annotated[Optional[str], pydantic.Field(alias="tenantId")] = None
|
|
427
|
+
r"""Directory ID (tenant identifier) in Azure Active Directory."""
|
|
428
|
+
|
|
429
|
+
client_id: Annotated[Optional[str], pydantic.Field(alias="clientId")] = None
|
|
430
|
+
r"""client_id to pass in the OAuth request parameter."""
|
|
431
|
+
|
|
432
|
+
resource: Optional[str] = "https://outlook.office365.com"
|
|
433
|
+
r"""Resource to pass in the OAuth request parameter."""
|
|
434
|
+
|
|
435
|
+
plan_type: Annotated[
|
|
436
|
+
Annotated[
|
|
437
|
+
Optional[InputOffice365MsgTraceSubscriptionPlan],
|
|
438
|
+
PlainValidator(validate_open_enum(False)),
|
|
439
|
+
],
|
|
440
|
+
pydantic.Field(alias="planType"),
|
|
441
|
+
] = InputOffice365MsgTraceSubscriptionPlan.ENTERPRISE_GCC
|
|
442
|
+
r"""Office 365 subscription plan for your organization, typically Office 365 Enterprise"""
|
|
443
|
+
|
|
444
|
+
text_secret: Annotated[Optional[str], pydantic.Field(alias="textSecret")] = None
|
|
445
|
+
r"""Select or create a secret that references your client_secret to pass in the OAuth request parameter."""
|
|
446
|
+
|
|
447
|
+
cert_options: Annotated[
|
|
448
|
+
Optional[CertOptions], pydantic.Field(alias="certOptions")
|
|
449
|
+
] = None
|