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.

Files changed (197) hide show
  1. cribl_control_plane/__init__.py +17 -0
  2. cribl_control_plane/_hooks/__init__.py +5 -0
  3. cribl_control_plane/_hooks/clientcredentials.py +211 -0
  4. cribl_control_plane/_hooks/registration.py +13 -0
  5. cribl_control_plane/_hooks/sdkhooks.py +81 -0
  6. cribl_control_plane/_hooks/types.py +112 -0
  7. cribl_control_plane/_version.py +15 -0
  8. cribl_control_plane/auth_sdk.py +184 -0
  9. cribl_control_plane/basesdk.py +358 -0
  10. cribl_control_plane/errors/__init__.py +60 -0
  11. cribl_control_plane/errors/apierror.py +38 -0
  12. cribl_control_plane/errors/criblcontrolplaneerror.py +26 -0
  13. cribl_control_plane/errors/error.py +24 -0
  14. cribl_control_plane/errors/healthstatus_error.py +38 -0
  15. cribl_control_plane/errors/no_response_error.py +13 -0
  16. cribl_control_plane/errors/responsevalidationerror.py +25 -0
  17. cribl_control_plane/health.py +166 -0
  18. cribl_control_plane/httpclient.py +126 -0
  19. cribl_control_plane/models/__init__.py +7305 -0
  20. cribl_control_plane/models/addhectokenrequest.py +34 -0
  21. cribl_control_plane/models/authtoken.py +13 -0
  22. cribl_control_plane/models/createinputhectokenbyidop.py +45 -0
  23. cribl_control_plane/models/createinputop.py +24 -0
  24. cribl_control_plane/models/createoutputop.py +24 -0
  25. cribl_control_plane/models/createoutputtestbyidop.py +46 -0
  26. cribl_control_plane/models/criblevent.py +14 -0
  27. cribl_control_plane/models/deleteinputbyidop.py +37 -0
  28. cribl_control_plane/models/deleteoutputbyidop.py +37 -0
  29. cribl_control_plane/models/deleteoutputpqbyidop.py +36 -0
  30. cribl_control_plane/models/getinputbyidop.py +37 -0
  31. cribl_control_plane/models/getoutputbyidop.py +37 -0
  32. cribl_control_plane/models/getoutputpqbyidop.py +36 -0
  33. cribl_control_plane/models/getoutputsamplesbyidop.py +37 -0
  34. cribl_control_plane/models/healthstatus.py +36 -0
  35. cribl_control_plane/models/input.py +199 -0
  36. cribl_control_plane/models/inputappscope.py +448 -0
  37. cribl_control_plane/models/inputazureblob.py +308 -0
  38. cribl_control_plane/models/inputcollection.py +208 -0
  39. cribl_control_plane/models/inputconfluentcloud.py +585 -0
  40. cribl_control_plane/models/inputcribl.py +165 -0
  41. cribl_control_plane/models/inputcriblhttp.py +341 -0
  42. cribl_control_plane/models/inputcribllakehttp.py +342 -0
  43. cribl_control_plane/models/inputcriblmetrics.py +175 -0
  44. cribl_control_plane/models/inputcribltcp.py +299 -0
  45. cribl_control_plane/models/inputcrowdstrike.py +410 -0
  46. cribl_control_plane/models/inputdatadogagent.py +364 -0
  47. cribl_control_plane/models/inputdatagen.py +180 -0
  48. cribl_control_plane/models/inputedgeprometheus.py +551 -0
  49. cribl_control_plane/models/inputelastic.py +494 -0
  50. cribl_control_plane/models/inputeventhub.py +360 -0
  51. cribl_control_plane/models/inputexec.py +213 -0
  52. cribl_control_plane/models/inputfile.py +259 -0
  53. cribl_control_plane/models/inputfirehose.py +341 -0
  54. cribl_control_plane/models/inputgooglepubsub.py +247 -0
  55. cribl_control_plane/models/inputgrafana_union.py +1247 -0
  56. cribl_control_plane/models/inputhttp.py +403 -0
  57. cribl_control_plane/models/inputhttpraw.py +407 -0
  58. cribl_control_plane/models/inputjournalfiles.py +208 -0
  59. cribl_control_plane/models/inputkafka.py +581 -0
  60. cribl_control_plane/models/inputkinesis.py +363 -0
  61. cribl_control_plane/models/inputkubeevents.py +182 -0
  62. cribl_control_plane/models/inputkubelogs.py +256 -0
  63. cribl_control_plane/models/inputkubemetrics.py +233 -0
  64. cribl_control_plane/models/inputloki.py +468 -0
  65. cribl_control_plane/models/inputmetrics.py +290 -0
  66. cribl_control_plane/models/inputmodeldriventelemetry.py +274 -0
  67. cribl_control_plane/models/inputmsk.py +654 -0
  68. cribl_control_plane/models/inputnetflow.py +224 -0
  69. cribl_control_plane/models/inputoffice365mgmt.py +384 -0
  70. cribl_control_plane/models/inputoffice365msgtrace.py +449 -0
  71. cribl_control_plane/models/inputoffice365service.py +377 -0
  72. cribl_control_plane/models/inputopentelemetry.py +516 -0
  73. cribl_control_plane/models/inputprometheus.py +464 -0
  74. cribl_control_plane/models/inputprometheusrw.py +470 -0
  75. cribl_control_plane/models/inputrawudp.py +207 -0
  76. cribl_control_plane/models/inputs3.py +416 -0
  77. cribl_control_plane/models/inputs3inventory.py +440 -0
  78. cribl_control_plane/models/inputsecuritylake.py +425 -0
  79. cribl_control_plane/models/inputsnmp.py +274 -0
  80. cribl_control_plane/models/inputsplunk.py +387 -0
  81. cribl_control_plane/models/inputsplunkhec.py +478 -0
  82. cribl_control_plane/models/inputsplunksearch.py +537 -0
  83. cribl_control_plane/models/inputsqs.py +320 -0
  84. cribl_control_plane/models/inputsyslog_union.py +759 -0
  85. cribl_control_plane/models/inputsystemmetrics.py +533 -0
  86. cribl_control_plane/models/inputsystemstate.py +417 -0
  87. cribl_control_plane/models/inputtcp.py +359 -0
  88. cribl_control_plane/models/inputtcpjson.py +334 -0
  89. cribl_control_plane/models/inputwef.py +498 -0
  90. cribl_control_plane/models/inputwindowsmetrics.py +457 -0
  91. cribl_control_plane/models/inputwineventlogs.py +222 -0
  92. cribl_control_plane/models/inputwiz.py +334 -0
  93. cribl_control_plane/models/inputzscalerhec.py +439 -0
  94. cribl_control_plane/models/listinputop.py +24 -0
  95. cribl_control_plane/models/listoutputop.py +24 -0
  96. cribl_control_plane/models/logininfo.py +16 -0
  97. cribl_control_plane/models/output.py +229 -0
  98. cribl_control_plane/models/outputazureblob.py +471 -0
  99. cribl_control_plane/models/outputazuredataexplorer.py +660 -0
  100. cribl_control_plane/models/outputazureeventhub.py +321 -0
  101. cribl_control_plane/models/outputazurelogs.py +386 -0
  102. cribl_control_plane/models/outputclickhouse.py +650 -0
  103. cribl_control_plane/models/outputcloudwatch.py +273 -0
  104. cribl_control_plane/models/outputconfluentcloud.py +591 -0
  105. cribl_control_plane/models/outputcriblhttp.py +494 -0
  106. cribl_control_plane/models/outputcribllake.py +396 -0
  107. cribl_control_plane/models/outputcribltcp.py +387 -0
  108. cribl_control_plane/models/outputcrowdstrikenextgensiem.py +410 -0
  109. cribl_control_plane/models/outputdatadog.py +472 -0
  110. cribl_control_plane/models/outputdataset.py +437 -0
  111. cribl_control_plane/models/outputdefault.py +55 -0
  112. cribl_control_plane/models/outputdevnull.py +50 -0
  113. cribl_control_plane/models/outputdiskspool.py +89 -0
  114. cribl_control_plane/models/outputdls3.py +560 -0
  115. cribl_control_plane/models/outputdynatracehttp.py +454 -0
  116. cribl_control_plane/models/outputdynatraceotlp.py +486 -0
  117. cribl_control_plane/models/outputelastic.py +494 -0
  118. cribl_control_plane/models/outputelasticcloud.py +407 -0
  119. cribl_control_plane/models/outputexabeam.py +297 -0
  120. cribl_control_plane/models/outputfilesystem.py +357 -0
  121. cribl_control_plane/models/outputgooglechronicle.py +486 -0
  122. cribl_control_plane/models/outputgooglecloudlogging.py +557 -0
  123. cribl_control_plane/models/outputgooglecloudstorage.py +499 -0
  124. cribl_control_plane/models/outputgooglepubsub.py +274 -0
  125. cribl_control_plane/models/outputgrafanacloud_union.py +1024 -0
  126. cribl_control_plane/models/outputgraphite.py +225 -0
  127. cribl_control_plane/models/outputhoneycomb.py +369 -0
  128. cribl_control_plane/models/outputhumiohec.py +389 -0
  129. cribl_control_plane/models/outputinfluxdb.py +523 -0
  130. cribl_control_plane/models/outputkafka.py +581 -0
  131. cribl_control_plane/models/outputkinesis.py +312 -0
  132. cribl_control_plane/models/outputloki.py +425 -0
  133. cribl_control_plane/models/outputminio.py +512 -0
  134. cribl_control_plane/models/outputmsk.py +654 -0
  135. cribl_control_plane/models/outputnetflow.py +80 -0
  136. cribl_control_plane/models/outputnewrelic.py +424 -0
  137. cribl_control_plane/models/outputnewrelicevents.py +401 -0
  138. cribl_control_plane/models/outputopentelemetry.py +669 -0
  139. cribl_control_plane/models/outputprometheus.py +485 -0
  140. cribl_control_plane/models/outputring.py +121 -0
  141. cribl_control_plane/models/outputrouter.py +83 -0
  142. cribl_control_plane/models/outputs3.py +556 -0
  143. cribl_control_plane/models/outputsamplesresponse.py +14 -0
  144. cribl_control_plane/models/outputsecuritylake.py +505 -0
  145. cribl_control_plane/models/outputsentinel.py +488 -0
  146. cribl_control_plane/models/outputsentineloneaisiem.py +505 -0
  147. cribl_control_plane/models/outputservicenow.py +543 -0
  148. cribl_control_plane/models/outputsignalfx.py +369 -0
  149. cribl_control_plane/models/outputsnmp.py +80 -0
  150. cribl_control_plane/models/outputsns.py +274 -0
  151. cribl_control_plane/models/outputsplunk.py +383 -0
  152. cribl_control_plane/models/outputsplunkhec.py +434 -0
  153. cribl_control_plane/models/outputsplunklb.py +558 -0
  154. cribl_control_plane/models/outputsqs.py +328 -0
  155. cribl_control_plane/models/outputstatsd.py +224 -0
  156. cribl_control_plane/models/outputstatsdext.py +225 -0
  157. cribl_control_plane/models/outputsumologic.py +378 -0
  158. cribl_control_plane/models/outputsyslog.py +415 -0
  159. cribl_control_plane/models/outputtcpjson.py +413 -0
  160. cribl_control_plane/models/outputtestrequest.py +15 -0
  161. cribl_control_plane/models/outputtestresponse.py +29 -0
  162. cribl_control_plane/models/outputwavefront.py +369 -0
  163. cribl_control_plane/models/outputwebhook.py +689 -0
  164. cribl_control_plane/models/outputxsiam.py +415 -0
  165. cribl_control_plane/models/schemeclientoauth.py +24 -0
  166. cribl_control_plane/models/security.py +36 -0
  167. cribl_control_plane/models/updatehectokenrequest.py +31 -0
  168. cribl_control_plane/models/updateinputbyidop.py +44 -0
  169. cribl_control_plane/models/updateinputhectokenbyidandtokenop.py +52 -0
  170. cribl_control_plane/models/updateoutputbyidop.py +44 -0
  171. cribl_control_plane/outputs.py +1615 -0
  172. cribl_control_plane/py.typed +1 -0
  173. cribl_control_plane/sdk.py +164 -0
  174. cribl_control_plane/sdkconfiguration.py +36 -0
  175. cribl_control_plane/sources.py +1355 -0
  176. cribl_control_plane/types/__init__.py +21 -0
  177. cribl_control_plane/types/basemodel.py +39 -0
  178. cribl_control_plane/utils/__init__.py +187 -0
  179. cribl_control_plane/utils/annotations.py +55 -0
  180. cribl_control_plane/utils/datetimes.py +23 -0
  181. cribl_control_plane/utils/enums.py +74 -0
  182. cribl_control_plane/utils/eventstreaming.py +238 -0
  183. cribl_control_plane/utils/forms.py +223 -0
  184. cribl_control_plane/utils/headers.py +136 -0
  185. cribl_control_plane/utils/logger.py +27 -0
  186. cribl_control_plane/utils/metadata.py +118 -0
  187. cribl_control_plane/utils/queryparams.py +205 -0
  188. cribl_control_plane/utils/requestbodies.py +66 -0
  189. cribl_control_plane/utils/retries.py +217 -0
  190. cribl_control_plane/utils/security.py +207 -0
  191. cribl_control_plane/utils/serializers.py +249 -0
  192. cribl_control_plane/utils/unmarshal_json_response.py +24 -0
  193. cribl_control_plane/utils/url.py +155 -0
  194. cribl_control_plane/utils/values.py +137 -0
  195. cribl_control_plane-0.0.13.dist-info/METADATA +489 -0
  196. cribl_control_plane-0.0.13.dist-info/RECORD +197 -0
  197. cribl_control_plane-0.0.13.dist-info/WHEEL +4 -0
@@ -0,0 +1,543 @@
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 OutputServiceNowType(str, Enum, metaclass=utils.OpenEnumMeta):
15
+ SERVICE_NOW = "service_now"
16
+
17
+
18
+ class OutputServiceNowOTLPVersion(str, Enum, metaclass=utils.OpenEnumMeta):
19
+ r"""The version of OTLP Protobuf definitions to use when structuring data to send"""
20
+
21
+ ONE_DOT_3_DOT_1 = "1.3.1"
22
+
23
+
24
+ class OutputServiceNowProtocol(str, Enum, metaclass=utils.OpenEnumMeta):
25
+ r"""Select a transport option for OpenTelemetry"""
26
+
27
+ GRPC = "grpc"
28
+ HTTP = "http"
29
+
30
+
31
+ class OutputServiceNowCompressCompression(str, Enum, metaclass=utils.OpenEnumMeta):
32
+ r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
33
+
34
+ NONE = "none"
35
+ DEFLATE = "deflate"
36
+ GZIP = "gzip"
37
+
38
+
39
+ class OutputServiceNowHTTPCompressCompression(str, Enum, metaclass=utils.OpenEnumMeta):
40
+ r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
41
+
42
+ NONE = "none"
43
+ GZIP = "gzip"
44
+
45
+
46
+ class OutputServiceNowMetadatumTypedDict(TypedDict):
47
+ value: str
48
+ key: NotRequired[str]
49
+
50
+
51
+ class OutputServiceNowMetadatum(BaseModel):
52
+ value: str
53
+
54
+ key: Optional[str] = ""
55
+
56
+
57
+ class OutputServiceNowFailedRequestLoggingMode(str, Enum, metaclass=utils.OpenEnumMeta):
58
+ r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
59
+
60
+ PAYLOAD = "payload"
61
+ PAYLOAD_AND_HEADERS = "payloadAndHeaders"
62
+ NONE = "none"
63
+
64
+
65
+ class OutputServiceNowBackpressureBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
66
+ r"""How to handle events when all receivers are exerting backpressure"""
67
+
68
+ BLOCK = "block"
69
+ DROP = "drop"
70
+ QUEUE = "queue"
71
+
72
+
73
+ class OutputServiceNowExtraHTTPHeaderTypedDict(TypedDict):
74
+ value: str
75
+ name: NotRequired[str]
76
+
77
+
78
+ class OutputServiceNowExtraHTTPHeader(BaseModel):
79
+ value: str
80
+
81
+ name: Optional[str] = None
82
+
83
+
84
+ class OutputServiceNowResponseRetrySettingTypedDict(TypedDict):
85
+ http_status: float
86
+ r"""The HTTP response status code that will trigger retries"""
87
+ initial_backoff: NotRequired[float]
88
+ r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
89
+ backoff_rate: NotRequired[float]
90
+ 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."""
91
+ max_backoff: NotRequired[float]
92
+ 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)."""
93
+
94
+
95
+ class OutputServiceNowResponseRetrySetting(BaseModel):
96
+ http_status: Annotated[float, pydantic.Field(alias="httpStatus")]
97
+ r"""The HTTP response status code that will trigger retries"""
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 OutputServiceNowTimeoutRetrySettingsTypedDict(TypedDict):
112
+ timeout_retry: NotRequired[bool]
113
+ initial_backoff: NotRequired[float]
114
+ r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
115
+ backoff_rate: NotRequired[float]
116
+ 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."""
117
+ max_backoff: NotRequired[float]
118
+ 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)."""
119
+
120
+
121
+ class OutputServiceNowTimeoutRetrySettings(BaseModel):
122
+ timeout_retry: Annotated[Optional[bool], pydantic.Field(alias="timeoutRetry")] = (
123
+ False
124
+ )
125
+
126
+ initial_backoff: Annotated[
127
+ Optional[float], pydantic.Field(alias="initialBackoff")
128
+ ] = 1000
129
+ r"""How long, in milliseconds, Cribl Stream should wait before initiating backoff. Maximum interval is 600,000 ms (10 minutes)."""
130
+
131
+ backoff_rate: Annotated[Optional[float], pydantic.Field(alias="backoffRate")] = 2
132
+ 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."""
133
+
134
+ max_backoff: Annotated[Optional[float], pydantic.Field(alias="maxBackoff")] = 10000
135
+ 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)."""
136
+
137
+
138
+ class OutputServiceNowMinimumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
139
+ TL_SV1 = "TLSv1"
140
+ TL_SV1_1 = "TLSv1.1"
141
+ TL_SV1_2 = "TLSv1.2"
142
+ TL_SV1_3 = "TLSv1.3"
143
+
144
+
145
+ class OutputServiceNowMaximumTLSVersion(str, Enum, metaclass=utils.OpenEnumMeta):
146
+ TL_SV1 = "TLSv1"
147
+ TL_SV1_1 = "TLSv1.1"
148
+ TL_SV1_2 = "TLSv1.2"
149
+ TL_SV1_3 = "TLSv1.3"
150
+
151
+
152
+ class OutputServiceNowTLSSettingsClientSideTypedDict(TypedDict):
153
+ disabled: NotRequired[bool]
154
+ reject_unauthorized: NotRequired[bool]
155
+ r"""Reject certificates that are not authorized by a CA in the CA certificate path, or by another
156
+ trusted CA (such as the system's). Defaults to Enabled. Overrides the toggle from Advanced Settings, when also present.
157
+ """
158
+ certificate_name: NotRequired[str]
159
+ r"""The name of the predefined certificate"""
160
+ ca_path: NotRequired[str]
161
+ r"""Path on client in which to find CA certificates to verify the server's cert. PEM format. Can reference $ENV_VARS."""
162
+ priv_key_path: NotRequired[str]
163
+ r"""Path on client in which to find the private key to use. PEM format. Can reference $ENV_VARS."""
164
+ cert_path: NotRequired[str]
165
+ r"""Path on client in which to find certificates to use. PEM format. Can reference $ENV_VARS."""
166
+ passphrase: NotRequired[str]
167
+ r"""Passphrase to use to decrypt private key"""
168
+ min_version: NotRequired[OutputServiceNowMinimumTLSVersion]
169
+ max_version: NotRequired[OutputServiceNowMaximumTLSVersion]
170
+
171
+
172
+ class OutputServiceNowTLSSettingsClientSide(BaseModel):
173
+ disabled: Optional[bool] = True
174
+
175
+ reject_unauthorized: Annotated[
176
+ Optional[bool], pydantic.Field(alias="rejectUnauthorized")
177
+ ] = True
178
+ r"""Reject certificates that are not authorized by a CA in the CA certificate path, or by another
179
+ trusted CA (such as the system's). Defaults to Enabled. Overrides the toggle from Advanced Settings, when also present.
180
+ """
181
+
182
+ certificate_name: Annotated[
183
+ Optional[str], pydantic.Field(alias="certificateName")
184
+ ] = None
185
+ r"""The name of the predefined certificate"""
186
+
187
+ ca_path: Annotated[Optional[str], pydantic.Field(alias="caPath")] = None
188
+ r"""Path on client in which to find CA certificates to verify the server's cert. PEM format. Can reference $ENV_VARS."""
189
+
190
+ priv_key_path: Annotated[Optional[str], pydantic.Field(alias="privKeyPath")] = None
191
+ r"""Path on client in which to find the private key to use. PEM format. Can reference $ENV_VARS."""
192
+
193
+ cert_path: Annotated[Optional[str], pydantic.Field(alias="certPath")] = None
194
+ r"""Path on client in which to find certificates to use. PEM format. Can reference $ENV_VARS."""
195
+
196
+ passphrase: Optional[str] = None
197
+ r"""Passphrase to use to decrypt private key"""
198
+
199
+ min_version: Annotated[
200
+ Annotated[
201
+ Optional[OutputServiceNowMinimumTLSVersion],
202
+ PlainValidator(validate_open_enum(False)),
203
+ ],
204
+ pydantic.Field(alias="minVersion"),
205
+ ] = None
206
+
207
+ max_version: Annotated[
208
+ Annotated[
209
+ Optional[OutputServiceNowMaximumTLSVersion],
210
+ PlainValidator(validate_open_enum(False)),
211
+ ],
212
+ pydantic.Field(alias="maxVersion"),
213
+ ] = None
214
+
215
+
216
+ class OutputServiceNowPqCompressCompression(str, Enum, metaclass=utils.OpenEnumMeta):
217
+ r"""Codec to use to compress the persisted data"""
218
+
219
+ NONE = "none"
220
+ GZIP = "gzip"
221
+
222
+
223
+ class OutputServiceNowQueueFullBehavior(str, Enum, metaclass=utils.OpenEnumMeta):
224
+ 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."""
225
+
226
+ BLOCK = "block"
227
+ DROP = "drop"
228
+
229
+
230
+ class OutputServiceNowMode(str, Enum, metaclass=utils.OpenEnumMeta):
231
+ 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."""
232
+
233
+ ERROR = "error"
234
+ BACKPRESSURE = "backpressure"
235
+ ALWAYS = "always"
236
+
237
+
238
+ class OutputServiceNowPqControlsTypedDict(TypedDict):
239
+ pass
240
+
241
+
242
+ class OutputServiceNowPqControls(BaseModel):
243
+ pass
244
+
245
+
246
+ class OutputServiceNowTypedDict(TypedDict):
247
+ token_secret: str
248
+ r"""Select or create a stored text secret"""
249
+ id: NotRequired[str]
250
+ r"""Unique ID for this output"""
251
+ type: NotRequired[OutputServiceNowType]
252
+ pipeline: NotRequired[str]
253
+ r"""Pipeline to process data before sending out to this output"""
254
+ system_fields: NotRequired[List[str]]
255
+ r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
256
+ environment: NotRequired[str]
257
+ r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
258
+ streamtags: NotRequired[List[str]]
259
+ r"""Tags for filtering and grouping in @{product}"""
260
+ endpoint: NotRequired[str]
261
+ r"""The endpoint where ServiceNow events will be sent. Enter any valid URL or an IP address (IPv4 or IPv6; enclose IPv6 addresses in square brackets)"""
262
+ auth_token_name: NotRequired[str]
263
+ otlp_version: NotRequired[OutputServiceNowOTLPVersion]
264
+ r"""The version of OTLP Protobuf definitions to use when structuring data to send"""
265
+ max_payload_size_kb: NotRequired[float]
266
+ r"""Maximum size, in KB, of the request body"""
267
+ protocol: NotRequired[OutputServiceNowProtocol]
268
+ r"""Select a transport option for OpenTelemetry"""
269
+ compress: NotRequired[OutputServiceNowCompressCompression]
270
+ r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
271
+ http_compress: NotRequired[OutputServiceNowHTTPCompressCompression]
272
+ r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
273
+ http_traces_endpoint_override: NotRequired[str]
274
+ r"""If you want to send traces to the default `{endpoint}/v1/traces` endpoint, leave this field empty; otherwise, specify the desired endpoint"""
275
+ http_metrics_endpoint_override: NotRequired[str]
276
+ r"""If you want to send metrics to the default `{endpoint}/v1/metrics` endpoint, leave this field empty; otherwise, specify the desired endpoint"""
277
+ http_logs_endpoint_override: NotRequired[str]
278
+ r"""If you want to send logs to the default `{endpoint}/v1/logs` endpoint, leave this field empty; otherwise, specify the desired endpoint"""
279
+ metadata: NotRequired[List[OutputServiceNowMetadatumTypedDict]]
280
+ r"""List of key-value pairs to send with each gRPC request. Value supports JavaScript expressions that are evaluated just once, when the destination gets started. To pass credentials as metadata, use 'C.Secret'."""
281
+ concurrency: NotRequired[float]
282
+ r"""Maximum number of ongoing requests before blocking"""
283
+ timeout_sec: NotRequired[float]
284
+ r"""Amount of time, in seconds, to wait for a request to complete before canceling it"""
285
+ flush_period_sec: NotRequired[float]
286
+ r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
287
+ failed_request_logging_mode: NotRequired[OutputServiceNowFailedRequestLoggingMode]
288
+ r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
289
+ connection_timeout: NotRequired[float]
290
+ r"""Amount of time (milliseconds) to wait for the connection to establish before retrying"""
291
+ keep_alive_time: NotRequired[float]
292
+ r"""How often the sender should ping the peer to keep the connection open"""
293
+ keep_alive: NotRequired[bool]
294
+ r"""Disable to close the connection immediately after sending the outgoing request"""
295
+ on_backpressure: NotRequired[OutputServiceNowBackpressureBehavior]
296
+ r"""How to handle events when all receivers are exerting backpressure"""
297
+ description: NotRequired[str]
298
+ reject_unauthorized: NotRequired[bool]
299
+ r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's).
300
+ Enabled by default. When this setting is also present in TLS Settings (Client Side),
301
+ that value will take precedence.
302
+ """
303
+ use_round_robin_dns: NotRequired[bool]
304
+ 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."""
305
+ extra_http_headers: NotRequired[List[OutputServiceNowExtraHTTPHeaderTypedDict]]
306
+ r"""Headers to add to all events"""
307
+ safe_headers: NotRequired[List[str]]
308
+ r"""List of headers that are safe to log in plain text"""
309
+ response_retry_settings: NotRequired[
310
+ List[OutputServiceNowResponseRetrySettingTypedDict]
311
+ ]
312
+ r"""Automatically retry after unsuccessful response status codes, such as 429 (Too Many Requests) or 503 (Service Unavailable)"""
313
+ timeout_retry_settings: NotRequired[OutputServiceNowTimeoutRetrySettingsTypedDict]
314
+ response_honor_retry_after_header: NotRequired[bool]
315
+ 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."""
316
+ tls: NotRequired[OutputServiceNowTLSSettingsClientSideTypedDict]
317
+ pq_max_file_size: NotRequired[str]
318
+ r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
319
+ pq_max_size: NotRequired[str]
320
+ 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."""
321
+ pq_path: NotRequired[str]
322
+ r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
323
+ pq_compress: NotRequired[OutputServiceNowPqCompressCompression]
324
+ r"""Codec to use to compress the persisted data"""
325
+ pq_on_backpressure: NotRequired[OutputServiceNowQueueFullBehavior]
326
+ 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."""
327
+ pq_mode: NotRequired[OutputServiceNowMode]
328
+ 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."""
329
+ pq_controls: NotRequired[OutputServiceNowPqControlsTypedDict]
330
+
331
+
332
+ class OutputServiceNow(BaseModel):
333
+ token_secret: Annotated[str, pydantic.Field(alias="tokenSecret")]
334
+ r"""Select or create a stored text secret"""
335
+
336
+ id: Optional[str] = None
337
+ r"""Unique ID for this output"""
338
+
339
+ type: Annotated[
340
+ Optional[OutputServiceNowType], PlainValidator(validate_open_enum(False))
341
+ ] = None
342
+
343
+ pipeline: Optional[str] = None
344
+ r"""Pipeline to process data before sending out to this output"""
345
+
346
+ system_fields: Annotated[
347
+ Optional[List[str]], pydantic.Field(alias="systemFields")
348
+ ] = None
349
+ r"""Fields to automatically add to events, such as cribl_pipe. Supports wildcards."""
350
+
351
+ environment: Optional[str] = None
352
+ r"""Optionally, enable this config only on a specified Git branch. If empty, will be enabled everywhere."""
353
+
354
+ streamtags: Optional[List[str]] = None
355
+ r"""Tags for filtering and grouping in @{product}"""
356
+
357
+ endpoint: Optional[str] = "ingest.lightstep.com:443"
358
+ r"""The endpoint where ServiceNow events will be sent. Enter any valid URL or an IP address (IPv4 or IPv6; enclose IPv6 addresses in square brackets)"""
359
+
360
+ auth_token_name: Annotated[Optional[str], pydantic.Field(alias="authTokenName")] = (
361
+ "lightstep-access-token"
362
+ )
363
+
364
+ otlp_version: Annotated[
365
+ Annotated[
366
+ Optional[OutputServiceNowOTLPVersion],
367
+ PlainValidator(validate_open_enum(False)),
368
+ ],
369
+ pydantic.Field(alias="otlpVersion"),
370
+ ] = OutputServiceNowOTLPVersion.ONE_DOT_3_DOT_1
371
+ r"""The version of OTLP Protobuf definitions to use when structuring data to send"""
372
+
373
+ max_payload_size_kb: Annotated[
374
+ Optional[float], pydantic.Field(alias="maxPayloadSizeKB")
375
+ ] = 2048
376
+ r"""Maximum size, in KB, of the request body"""
377
+
378
+ protocol: Annotated[
379
+ Optional[OutputServiceNowProtocol], PlainValidator(validate_open_enum(False))
380
+ ] = OutputServiceNowProtocol.GRPC
381
+ r"""Select a transport option for OpenTelemetry"""
382
+
383
+ compress: Annotated[
384
+ Optional[OutputServiceNowCompressCompression],
385
+ PlainValidator(validate_open_enum(False)),
386
+ ] = OutputServiceNowCompressCompression.GZIP
387
+ r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
388
+
389
+ http_compress: Annotated[
390
+ Annotated[
391
+ Optional[OutputServiceNowHTTPCompressCompression],
392
+ PlainValidator(validate_open_enum(False)),
393
+ ],
394
+ pydantic.Field(alias="httpCompress"),
395
+ ] = OutputServiceNowHTTPCompressCompression.GZIP
396
+ r"""Type of compression to apply to messages sent to the OpenTelemetry endpoint"""
397
+
398
+ http_traces_endpoint_override: Annotated[
399
+ Optional[str], pydantic.Field(alias="httpTracesEndpointOverride")
400
+ ] = None
401
+ r"""If you want to send traces to the default `{endpoint}/v1/traces` endpoint, leave this field empty; otherwise, specify the desired endpoint"""
402
+
403
+ http_metrics_endpoint_override: Annotated[
404
+ Optional[str], pydantic.Field(alias="httpMetricsEndpointOverride")
405
+ ] = None
406
+ r"""If you want to send metrics to the default `{endpoint}/v1/metrics` endpoint, leave this field empty; otherwise, specify the desired endpoint"""
407
+
408
+ http_logs_endpoint_override: Annotated[
409
+ Optional[str], pydantic.Field(alias="httpLogsEndpointOverride")
410
+ ] = None
411
+ r"""If you want to send logs to the default `{endpoint}/v1/logs` endpoint, leave this field empty; otherwise, specify the desired endpoint"""
412
+
413
+ metadata: Optional[List[OutputServiceNowMetadatum]] = None
414
+ r"""List of key-value pairs to send with each gRPC request. Value supports JavaScript expressions that are evaluated just once, when the destination gets started. To pass credentials as metadata, use 'C.Secret'."""
415
+
416
+ concurrency: Optional[float] = 5
417
+ r"""Maximum number of ongoing requests before blocking"""
418
+
419
+ timeout_sec: Annotated[Optional[float], pydantic.Field(alias="timeoutSec")] = 30
420
+ r"""Amount of time, in seconds, to wait for a request to complete before canceling it"""
421
+
422
+ flush_period_sec: Annotated[
423
+ Optional[float], pydantic.Field(alias="flushPeriodSec")
424
+ ] = 1
425
+ r"""Maximum time between requests. Small values could cause the payload size to be smaller than the configured Body size limit."""
426
+
427
+ failed_request_logging_mode: Annotated[
428
+ Annotated[
429
+ Optional[OutputServiceNowFailedRequestLoggingMode],
430
+ PlainValidator(validate_open_enum(False)),
431
+ ],
432
+ pydantic.Field(alias="failedRequestLoggingMode"),
433
+ ] = OutputServiceNowFailedRequestLoggingMode.NONE
434
+ r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
435
+
436
+ connection_timeout: Annotated[
437
+ Optional[float], pydantic.Field(alias="connectionTimeout")
438
+ ] = 10000
439
+ r"""Amount of time (milliseconds) to wait for the connection to establish before retrying"""
440
+
441
+ keep_alive_time: Annotated[
442
+ Optional[float], pydantic.Field(alias="keepAliveTime")
443
+ ] = 30
444
+ r"""How often the sender should ping the peer to keep the connection open"""
445
+
446
+ keep_alive: Annotated[Optional[bool], pydantic.Field(alias="keepAlive")] = True
447
+ r"""Disable to close the connection immediately after sending the outgoing request"""
448
+
449
+ on_backpressure: Annotated[
450
+ Annotated[
451
+ Optional[OutputServiceNowBackpressureBehavior],
452
+ PlainValidator(validate_open_enum(False)),
453
+ ],
454
+ pydantic.Field(alias="onBackpressure"),
455
+ ] = OutputServiceNowBackpressureBehavior.BLOCK
456
+ r"""How to handle events when all receivers are exerting backpressure"""
457
+
458
+ description: Optional[str] = None
459
+
460
+ reject_unauthorized: Annotated[
461
+ Optional[bool], pydantic.Field(alias="rejectUnauthorized")
462
+ ] = True
463
+ r"""Reject certificates not authorized by a CA in the CA certificate path or by another trusted CA (such as the system's).
464
+ Enabled by default. When this setting is also present in TLS Settings (Client Side),
465
+ that value will take precedence.
466
+ """
467
+
468
+ use_round_robin_dns: Annotated[
469
+ Optional[bool], pydantic.Field(alias="useRoundRobinDns")
470
+ ] = False
471
+ 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."""
472
+
473
+ extra_http_headers: Annotated[
474
+ Optional[List[OutputServiceNowExtraHTTPHeader]],
475
+ pydantic.Field(alias="extraHttpHeaders"),
476
+ ] = None
477
+ r"""Headers to add to all events"""
478
+
479
+ safe_headers: Annotated[
480
+ Optional[List[str]], pydantic.Field(alias="safeHeaders")
481
+ ] = None
482
+ r"""List of headers that are safe to log in plain text"""
483
+
484
+ response_retry_settings: Annotated[
485
+ Optional[List[OutputServiceNowResponseRetrySetting]],
486
+ pydantic.Field(alias="responseRetrySettings"),
487
+ ] = None
488
+ r"""Automatically retry after unsuccessful response status codes, such as 429 (Too Many Requests) or 503 (Service Unavailable)"""
489
+
490
+ timeout_retry_settings: Annotated[
491
+ Optional[OutputServiceNowTimeoutRetrySettings],
492
+ pydantic.Field(alias="timeoutRetrySettings"),
493
+ ] = None
494
+
495
+ response_honor_retry_after_header: Annotated[
496
+ Optional[bool], pydantic.Field(alias="responseHonorRetryAfterHeader")
497
+ ] = False
498
+ 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."""
499
+
500
+ tls: Optional[OutputServiceNowTLSSettingsClientSide] = None
501
+
502
+ pq_max_file_size: Annotated[
503
+ Optional[str], pydantic.Field(alias="pqMaxFileSize")
504
+ ] = "1 MB"
505
+ r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
506
+
507
+ pq_max_size: Annotated[Optional[str], pydantic.Field(alias="pqMaxSize")] = "5GB"
508
+ 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."""
509
+
510
+ pq_path: Annotated[Optional[str], pydantic.Field(alias="pqPath")] = (
511
+ "$CRIBL_HOME/state/queues"
512
+ )
513
+ r"""The location for the persistent queue files. To this field's value, the system will append: /<worker-id>/<output-id>."""
514
+
515
+ pq_compress: Annotated[
516
+ Annotated[
517
+ Optional[OutputServiceNowPqCompressCompression],
518
+ PlainValidator(validate_open_enum(False)),
519
+ ],
520
+ pydantic.Field(alias="pqCompress"),
521
+ ] = OutputServiceNowPqCompressCompression.NONE
522
+ r"""Codec to use to compress the persisted data"""
523
+
524
+ pq_on_backpressure: Annotated[
525
+ Annotated[
526
+ Optional[OutputServiceNowQueueFullBehavior],
527
+ PlainValidator(validate_open_enum(False)),
528
+ ],
529
+ pydantic.Field(alias="pqOnBackpressure"),
530
+ ] = OutputServiceNowQueueFullBehavior.BLOCK
531
+ 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."""
532
+
533
+ pq_mode: Annotated[
534
+ Annotated[
535
+ Optional[OutputServiceNowMode], PlainValidator(validate_open_enum(False))
536
+ ],
537
+ pydantic.Field(alias="pqMode"),
538
+ ] = OutputServiceNowMode.ERROR
539
+ 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."""
540
+
541
+ pq_controls: Annotated[
542
+ Optional[OutputServiceNowPqControls], pydantic.Field(alias="pqControls")
543
+ ] = None