cribl-control-plane 0.2.1rc7__py3-none-any.whl → 0.3.0a1__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/_version.py +4 -4
- cribl_control_plane/errors/__init__.py +5 -8
- cribl_control_plane/errors/{healthserverstatus_error.py → healthstatus_error.py} +9 -10
- cribl_control_plane/groups_sdk.py +28 -52
- cribl_control_plane/health.py +16 -22
- cribl_control_plane/models/__init__.py +54 -217
- cribl_control_plane/models/appmode.py +14 -0
- cribl_control_plane/models/authtoken.py +1 -5
- cribl_control_plane/models/cacheconnection.py +0 -20
- cribl_control_plane/models/configgroup.py +7 -55
- cribl_control_plane/models/configgroupcloud.py +1 -11
- cribl_control_plane/models/createconfiggroupbyproductop.py +5 -17
- cribl_control_plane/models/createroutesappendbyidop.py +2 -2
- cribl_control_plane/models/createversionundoop.py +3 -3
- cribl_control_plane/models/cribllakedataset.py +1 -11
- cribl_control_plane/models/cribllakedatasetupdate.py +1 -11
- cribl_control_plane/models/datasetmetadata.py +1 -11
- cribl_control_plane/models/deleteconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/deleteoutputpqbyidop.py +2 -2
- cribl_control_plane/models/distributedsummary.py +0 -6
- cribl_control_plane/models/error.py +16 -0
- cribl_control_plane/models/getconfiggroupaclbyproductandidop.py +0 -20
- cribl_control_plane/models/getconfiggroupaclteamsbyproductandidop.py +0 -20
- cribl_control_plane/models/getconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/getconfiggroupconfigversionbyproductandidop.py +0 -11
- cribl_control_plane/models/gethealthinfoop.py +17 -0
- cribl_control_plane/models/getsummaryop.py +0 -11
- cribl_control_plane/models/hbcriblinfo.py +3 -24
- cribl_control_plane/models/{healthserverstatus.py → healthstatus.py} +8 -27
- cribl_control_plane/models/heartbeatmetadata.py +0 -3
- cribl_control_plane/models/input.py +78 -80
- cribl_control_plane/models/inputappscope.py +17 -80
- cribl_control_plane/models/inputazureblob.py +1 -33
- cribl_control_plane/models/inputcollection.py +1 -24
- cribl_control_plane/models/inputconfluentcloud.py +18 -195
- cribl_control_plane/models/inputcribl.py +1 -24
- cribl_control_plane/models/inputcriblhttp.py +17 -62
- cribl_control_plane/models/inputcribllakehttp.py +17 -62
- cribl_control_plane/models/inputcriblmetrics.py +1 -24
- cribl_control_plane/models/inputcribltcp.py +17 -62
- cribl_control_plane/models/inputcrowdstrike.py +1 -54
- cribl_control_plane/models/inputdatadogagent.py +17 -62
- cribl_control_plane/models/inputdatagen.py +1 -24
- cribl_control_plane/models/inputedgeprometheus.py +34 -147
- cribl_control_plane/models/inputelastic.py +27 -119
- cribl_control_plane/models/inputeventhub.py +1 -182
- cribl_control_plane/models/inputexec.py +1 -33
- cribl_control_plane/models/inputfile.py +3 -42
- cribl_control_plane/models/inputfirehose.py +17 -62
- cribl_control_plane/models/inputgooglepubsub.py +1 -36
- cribl_control_plane/models/inputgrafana.py +32 -157
- cribl_control_plane/models/inputhttp.py +17 -62
- cribl_control_plane/models/inputhttpraw.py +17 -62
- cribl_control_plane/models/inputjournalfiles.py +1 -24
- cribl_control_plane/models/inputkafka.py +17 -189
- cribl_control_plane/models/inputkinesis.py +1 -80
- cribl_control_plane/models/inputkubeevents.py +1 -24
- cribl_control_plane/models/inputkubelogs.py +1 -33
- cribl_control_plane/models/inputkubemetrics.py +1 -33
- cribl_control_plane/models/inputloki.py +17 -71
- cribl_control_plane/models/inputmetrics.py +17 -62
- cribl_control_plane/models/inputmodeldriventelemetry.py +17 -62
- cribl_control_plane/models/inputmsk.py +18 -81
- cribl_control_plane/models/inputnetflow.py +1 -24
- cribl_control_plane/models/inputoffice365mgmt.py +1 -67
- cribl_control_plane/models/inputoffice365msgtrace.py +1 -67
- cribl_control_plane/models/inputoffice365service.py +1 -67
- cribl_control_plane/models/inputopentelemetry.py +16 -92
- cribl_control_plane/models/inputprometheus.py +34 -138
- cribl_control_plane/models/inputprometheusrw.py +17 -71
- cribl_control_plane/models/inputrawudp.py +1 -24
- cribl_control_plane/models/inputs3.py +1 -45
- cribl_control_plane/models/inputs3inventory.py +1 -54
- cribl_control_plane/models/inputsecuritylake.py +1 -54
- cribl_control_plane/models/inputsnmp.py +1 -40
- cribl_control_plane/models/inputsplunk.py +17 -85
- cribl_control_plane/models/inputsplunkhec.py +16 -70
- cribl_control_plane/models/inputsplunksearch.py +1 -63
- cribl_control_plane/models/inputsqs.py +1 -56
- cribl_control_plane/models/inputsyslog.py +32 -121
- cribl_control_plane/models/inputsystemmetrics.py +9 -142
- cribl_control_plane/models/inputsystemstate.py +1 -33
- cribl_control_plane/models/inputtcp.py +17 -81
- cribl_control_plane/models/inputtcpjson.py +17 -71
- cribl_control_plane/models/inputwef.py +1 -71
- cribl_control_plane/models/inputwindowsmetrics.py +9 -129
- cribl_control_plane/models/inputwineventlogs.py +1 -60
- cribl_control_plane/models/inputwiz.py +1 -45
- cribl_control_plane/models/inputwizwebhook.py +17 -62
- cribl_control_plane/models/inputzscalerhec.py +16 -70
- cribl_control_plane/models/jobinfo.py +1 -4
- cribl_control_plane/models/jobstatus.py +3 -34
- cribl_control_plane/models/listconfiggroupbyproductop.py +0 -11
- cribl_control_plane/models/logininfo.py +3 -3
- cribl_control_plane/models/masterworkerentry.py +1 -11
- cribl_control_plane/models/nodeprovidedinfo.py +1 -11
- cribl_control_plane/models/nodeupgradestatus.py +0 -38
- cribl_control_plane/models/output.py +88 -93
- cribl_control_plane/models/outputazureblob.py +1 -110
- cribl_control_plane/models/outputazuredataexplorer.py +87 -452
- cribl_control_plane/models/outputazureeventhub.py +19 -281
- cribl_control_plane/models/outputazurelogs.py +19 -115
- cribl_control_plane/models/outputchronicle.py +19 -115
- cribl_control_plane/models/outputclickhouse.py +19 -155
- cribl_control_plane/models/outputcloudwatch.py +19 -106
- cribl_control_plane/models/outputconfluentcloud.py +38 -311
- cribl_control_plane/models/outputcriblhttp.py +19 -135
- cribl_control_plane/models/outputcribllake.py +1 -97
- cribl_control_plane/models/outputcribltcp.py +19 -132
- cribl_control_plane/models/outputcrowdstrikenextgensiem.py +20 -129
- cribl_control_plane/models/outputdatadog.py +19 -159
- cribl_control_plane/models/outputdataset.py +19 -143
- cribl_control_plane/models/outputdiskspool.py +1 -11
- cribl_control_plane/models/outputdls3.py +1 -152
- cribl_control_plane/models/outputdynatracehttp.py +19 -160
- cribl_control_plane/models/outputdynatraceotlp.py +19 -160
- cribl_control_plane/models/outputelastic.py +19 -163
- cribl_control_plane/models/outputelasticcloud.py +19 -140
- cribl_control_plane/models/outputexabeam.py +1 -61
- cribl_control_plane/models/outputfilesystem.py +1 -87
- cribl_control_plane/models/outputgooglechronicle.py +20 -166
- cribl_control_plane/models/outputgooglecloudlogging.py +20 -131
- cribl_control_plane/models/outputgooglecloudstorage.py +1 -136
- cribl_control_plane/models/outputgooglepubsub.py +19 -106
- cribl_control_plane/models/outputgrafanacloud.py +37 -288
- cribl_control_plane/models/outputgraphite.py +19 -105
- cribl_control_plane/models/outputhoneycomb.py +19 -115
- cribl_control_plane/models/outputhumiohec.py +19 -126
- cribl_control_plane/models/outputinfluxdb.py +19 -130
- cribl_control_plane/models/outputkafka.py +34 -302
- cribl_control_plane/models/outputkinesis.py +19 -133
- cribl_control_plane/models/outputloki.py +17 -129
- cribl_control_plane/models/outputminio.py +1 -145
- cribl_control_plane/models/outputmsk.py +34 -193
- cribl_control_plane/models/outputnewrelic.py +19 -136
- cribl_control_plane/models/outputnewrelicevents.py +20 -128
- cribl_control_plane/models/outputopentelemetry.py +19 -178
- cribl_control_plane/models/outputprometheus.py +19 -115
- cribl_control_plane/models/outputring.py +1 -31
- cribl_control_plane/models/outputs3.py +1 -152
- cribl_control_plane/models/outputsecuritylake.py +1 -114
- cribl_control_plane/models/outputsentinel.py +19 -135
- cribl_control_plane/models/outputsentineloneaisiem.py +20 -134
- cribl_control_plane/models/outputservicenow.py +19 -168
- cribl_control_plane/models/outputsignalfx.py +19 -115
- cribl_control_plane/models/outputsns.py +17 -113
- cribl_control_plane/models/outputsplunk.py +19 -153
- cribl_control_plane/models/outputsplunkhec.py +19 -208
- cribl_control_plane/models/outputsplunklb.py +19 -182
- cribl_control_plane/models/outputsqs.py +17 -124
- cribl_control_plane/models/outputstatsd.py +19 -105
- cribl_control_plane/models/outputstatsdext.py +19 -105
- cribl_control_plane/models/outputsumologic.py +19 -117
- cribl_control_plane/models/outputsyslog.py +96 -259
- cribl_control_plane/models/outputtcpjson.py +19 -141
- cribl_control_plane/models/outputwavefront.py +19 -115
- cribl_control_plane/models/outputwebhook.py +19 -161
- cribl_control_plane/models/outputxsiam.py +17 -113
- cribl_control_plane/models/packinfo.py +5 -8
- cribl_control_plane/models/packinstallinfo.py +5 -8
- cribl_control_plane/models/resourcepolicy.py +0 -11
- cribl_control_plane/models/{uploadpackresponse.py → routecloneconf.py} +4 -4
- cribl_control_plane/models/routeconf.py +4 -3
- cribl_control_plane/models/runnablejobcollection.py +9 -72
- cribl_control_plane/models/runnablejobexecutor.py +9 -32
- cribl_control_plane/models/runnablejobscheduledsearch.py +9 -23
- cribl_control_plane/models/updateconfiggroupbyproductandidop.py +0 -11
- cribl_control_plane/models/updateconfiggroupdeploybyproductandidop.py +0 -11
- cribl_control_plane/packs.py +7 -202
- cribl_control_plane/routes_sdk.py +6 -6
- cribl_control_plane/tokens.py +15 -23
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.3.0a1.dist-info}/METADATA +9 -50
- cribl_control_plane-0.3.0a1.dist-info/RECORD +330 -0
- cribl_control_plane/models/groupcreaterequest.py +0 -171
- cribl_control_plane/models/outpostnodeinfo.py +0 -16
- cribl_control_plane/models/outputdatabricks.py +0 -482
- cribl_control_plane/models/updatepacksop.py +0 -25
- cribl_control_plane-0.2.1rc7.dist-info/RECORD +0 -331
- {cribl_control_plane-0.2.1rc7.dist-info → cribl_control_plane-0.3.0a1.dist-info}/WHEEL +0 -0
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
|
-
from cribl_control_plane import
|
|
4
|
+
from cribl_control_plane import utils
|
|
5
5
|
from cribl_control_plane.types import BaseModel
|
|
6
6
|
from cribl_control_plane.utils import validate_open_enum
|
|
7
7
|
from enum import Enum
|
|
8
8
|
import pydantic
|
|
9
|
-
from pydantic import field_serializer
|
|
10
9
|
from pydantic.functional_validators import PlainValidator
|
|
11
10
|
from typing import List, Optional, Union
|
|
12
11
|
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
@@ -19,9 +18,7 @@ class OutputGrafanaCloudType2(str, Enum):
|
|
|
19
18
|
class OutputGrafanaCloudMessageFormat2(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
20
19
|
r"""Format to use when sending logs to Loki (Protobuf or JSON)"""
|
|
21
20
|
|
|
22
|
-
# Protobuf
|
|
23
21
|
PROTOBUF = "protobuf"
|
|
24
|
-
# JSON
|
|
25
22
|
JSON = "json"
|
|
26
23
|
|
|
27
24
|
|
|
@@ -39,15 +36,10 @@ class OutputGrafanaCloudLabel2(BaseModel):
|
|
|
39
36
|
class OutputGrafanaCloudPrometheusAuthAuthenticationType2(
|
|
40
37
|
str, Enum, metaclass=utils.OpenEnumMeta
|
|
41
38
|
):
|
|
42
|
-
# None
|
|
43
39
|
NONE = "none"
|
|
44
|
-
# Auth token
|
|
45
40
|
TOKEN = "token"
|
|
46
|
-
# Auth token (text secret)
|
|
47
41
|
TEXT_SECRET = "textSecret"
|
|
48
|
-
# Basic
|
|
49
42
|
BASIC = "basic"
|
|
50
|
-
# Basic (credentials secret)
|
|
51
43
|
CREDENTIALS_SECRET = "credentialsSecret"
|
|
52
44
|
|
|
53
45
|
|
|
@@ -91,28 +83,14 @@ class OutputGrafanaCloudPrometheusAuth2(BaseModel):
|
|
|
91
83
|
] = None
|
|
92
84
|
r"""Select or create a secret that references your credentials"""
|
|
93
85
|
|
|
94
|
-
@field_serializer("auth_type")
|
|
95
|
-
def serialize_auth_type(self, value):
|
|
96
|
-
if isinstance(value, str):
|
|
97
|
-
try:
|
|
98
|
-
return models.OutputGrafanaCloudPrometheusAuthAuthenticationType2(value)
|
|
99
|
-
except ValueError:
|
|
100
|
-
return value
|
|
101
|
-
return value
|
|
102
|
-
|
|
103
86
|
|
|
104
87
|
class OutputGrafanaCloudLokiAuthAuthenticationType2(
|
|
105
88
|
str, Enum, metaclass=utils.OpenEnumMeta
|
|
106
89
|
):
|
|
107
|
-
# None
|
|
108
90
|
NONE = "none"
|
|
109
|
-
# Auth token
|
|
110
91
|
TOKEN = "token"
|
|
111
|
-
# Auth token (text secret)
|
|
112
92
|
TEXT_SECRET = "textSecret"
|
|
113
|
-
# Basic
|
|
114
93
|
BASIC = "basic"
|
|
115
|
-
# Basic (credentials secret)
|
|
116
94
|
CREDENTIALS_SECRET = "credentialsSecret"
|
|
117
95
|
|
|
118
96
|
|
|
@@ -156,15 +134,6 @@ class OutputGrafanaCloudLokiAuth2(BaseModel):
|
|
|
156
134
|
] = None
|
|
157
135
|
r"""Select or create a secret that references your credentials"""
|
|
158
136
|
|
|
159
|
-
@field_serializer("auth_type")
|
|
160
|
-
def serialize_auth_type(self, value):
|
|
161
|
-
if isinstance(value, str):
|
|
162
|
-
try:
|
|
163
|
-
return models.OutputGrafanaCloudLokiAuthAuthenticationType2(value)
|
|
164
|
-
except ValueError:
|
|
165
|
-
return value
|
|
166
|
-
return value
|
|
167
|
-
|
|
168
137
|
|
|
169
138
|
class OutputGrafanaCloudExtraHTTPHeader2TypedDict(TypedDict):
|
|
170
139
|
value: str
|
|
@@ -182,11 +151,8 @@ class OutputGrafanaCloudFailedRequestLoggingMode2(
|
|
|
182
151
|
):
|
|
183
152
|
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
184
153
|
|
|
185
|
-
# Payload
|
|
186
154
|
PAYLOAD = "payload"
|
|
187
|
-
# Payload + Headers
|
|
188
155
|
PAYLOAD_AND_HEADERS = "payloadAndHeaders"
|
|
189
|
-
# None
|
|
190
156
|
NONE = "none"
|
|
191
157
|
|
|
192
158
|
|
|
@@ -247,43 +213,33 @@ class OutputGrafanaCloudTimeoutRetrySettings2(BaseModel):
|
|
|
247
213
|
class OutputGrafanaCloudBackpressureBehavior2(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
248
214
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
249
215
|
|
|
250
|
-
# Block
|
|
251
216
|
BLOCK = "block"
|
|
252
|
-
# Drop
|
|
253
217
|
DROP = "drop"
|
|
254
|
-
# Persistent Queue
|
|
255
218
|
QUEUE = "queue"
|
|
256
219
|
|
|
257
220
|
|
|
258
|
-
class OutputGrafanaCloudMode2(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
259
|
-
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."""
|
|
260
|
-
|
|
261
|
-
# Error
|
|
262
|
-
ERROR = "error"
|
|
263
|
-
# Backpressure
|
|
264
|
-
ALWAYS = "always"
|
|
265
|
-
# Always On
|
|
266
|
-
BACKPRESSURE = "backpressure"
|
|
267
|
-
|
|
268
|
-
|
|
269
221
|
class OutputGrafanaCloudCompression2(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
270
222
|
r"""Codec to use to compress the persisted data"""
|
|
271
223
|
|
|
272
|
-
# None
|
|
273
224
|
NONE = "none"
|
|
274
|
-
# Gzip
|
|
275
225
|
GZIP = "gzip"
|
|
276
226
|
|
|
277
227
|
|
|
278
228
|
class OutputGrafanaCloudQueueFullBehavior2(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
279
229
|
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."""
|
|
280
230
|
|
|
281
|
-
# Block
|
|
282
231
|
BLOCK = "block"
|
|
283
|
-
# Drop new data
|
|
284
232
|
DROP = "drop"
|
|
285
233
|
|
|
286
234
|
|
|
235
|
+
class OutputGrafanaCloudMode2(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
236
|
+
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."""
|
|
237
|
+
|
|
238
|
+
ERROR = "error"
|
|
239
|
+
BACKPRESSURE = "backpressure"
|
|
240
|
+
ALWAYS = "always"
|
|
241
|
+
|
|
242
|
+
|
|
287
243
|
class OutputGrafanaCloudPqControls2TypedDict(TypedDict):
|
|
288
244
|
pass
|
|
289
245
|
|
|
@@ -357,16 +313,6 @@ class OutputGrafanaCloudGrafanaCloud2TypedDict(TypedDict):
|
|
|
357
313
|
description: NotRequired[str]
|
|
358
314
|
compress: NotRequired[bool]
|
|
359
315
|
r"""Compress the payload body before sending. Applies only to JSON payloads; the Protobuf variant for both Prometheus and Loki are snappy-compressed by default."""
|
|
360
|
-
pq_strict_ordering: NotRequired[bool]
|
|
361
|
-
r"""Use FIFO (first in, first out) processing. Disable to forward new events to receivers before queue is flushed."""
|
|
362
|
-
pq_rate_per_sec: NotRequired[float]
|
|
363
|
-
r"""Throttling rate (in events per second) to impose while writing to Destinations from PQ. Defaults to 0, which disables throttling."""
|
|
364
|
-
pq_mode: NotRequired[OutputGrafanaCloudMode2]
|
|
365
|
-
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."""
|
|
366
|
-
pq_max_buffer_size: NotRequired[float]
|
|
367
|
-
r"""The maximum number of events to hold in memory before writing the events to disk"""
|
|
368
|
-
pq_max_backpressure_sec: NotRequired[float]
|
|
369
|
-
r"""How long (in seconds) to wait for backpressure to resolve before engaging the queue"""
|
|
370
316
|
pq_max_file_size: NotRequired[str]
|
|
371
317
|
r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
|
|
372
318
|
pq_max_size: NotRequired[str]
|
|
@@ -377,6 +323,8 @@ class OutputGrafanaCloudGrafanaCloud2TypedDict(TypedDict):
|
|
|
377
323
|
r"""Codec to use to compress the persisted data"""
|
|
378
324
|
pq_on_backpressure: NotRequired[OutputGrafanaCloudQueueFullBehavior2]
|
|
379
325
|
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."""
|
|
326
|
+
pq_mode: NotRequired[OutputGrafanaCloudMode2]
|
|
327
|
+
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."""
|
|
380
328
|
pq_controls: NotRequired[OutputGrafanaCloudPqControls2TypedDict]
|
|
381
329
|
|
|
382
330
|
|
|
@@ -519,34 +467,6 @@ class OutputGrafanaCloudGrafanaCloud2(BaseModel):
|
|
|
519
467
|
compress: Optional[bool] = True
|
|
520
468
|
r"""Compress the payload body before sending. Applies only to JSON payloads; the Protobuf variant for both Prometheus and Loki are snappy-compressed by default."""
|
|
521
469
|
|
|
522
|
-
pq_strict_ordering: Annotated[
|
|
523
|
-
Optional[bool], pydantic.Field(alias="pqStrictOrdering")
|
|
524
|
-
] = True
|
|
525
|
-
r"""Use FIFO (first in, first out) processing. Disable to forward new events to receivers before queue is flushed."""
|
|
526
|
-
|
|
527
|
-
pq_rate_per_sec: Annotated[
|
|
528
|
-
Optional[float], pydantic.Field(alias="pqRatePerSec")
|
|
529
|
-
] = 0
|
|
530
|
-
r"""Throttling rate (in events per second) to impose while writing to Destinations from PQ. Defaults to 0, which disables throttling."""
|
|
531
|
-
|
|
532
|
-
pq_mode: Annotated[
|
|
533
|
-
Annotated[
|
|
534
|
-
Optional[OutputGrafanaCloudMode2], PlainValidator(validate_open_enum(False))
|
|
535
|
-
],
|
|
536
|
-
pydantic.Field(alias="pqMode"),
|
|
537
|
-
] = OutputGrafanaCloudMode2.ERROR
|
|
538
|
-
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."""
|
|
539
|
-
|
|
540
|
-
pq_max_buffer_size: Annotated[
|
|
541
|
-
Optional[float], pydantic.Field(alias="pqMaxBufferSize")
|
|
542
|
-
] = 42
|
|
543
|
-
r"""The maximum number of events to hold in memory before writing the events to disk"""
|
|
544
|
-
|
|
545
|
-
pq_max_backpressure_sec: Annotated[
|
|
546
|
-
Optional[float], pydantic.Field(alias="pqMaxBackpressureSec")
|
|
547
|
-
] = 30
|
|
548
|
-
r"""How long (in seconds) to wait for backpressure to resolve before engaging the queue"""
|
|
549
|
-
|
|
550
470
|
pq_max_file_size: Annotated[
|
|
551
471
|
Optional[str], pydantic.Field(alias="pqMaxFileSize")
|
|
552
472
|
] = "1 MB"
|
|
@@ -578,64 +498,18 @@ class OutputGrafanaCloudGrafanaCloud2(BaseModel):
|
|
|
578
498
|
] = OutputGrafanaCloudQueueFullBehavior2.BLOCK
|
|
579
499
|
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."""
|
|
580
500
|
|
|
501
|
+
pq_mode: Annotated[
|
|
502
|
+
Annotated[
|
|
503
|
+
Optional[OutputGrafanaCloudMode2], PlainValidator(validate_open_enum(False))
|
|
504
|
+
],
|
|
505
|
+
pydantic.Field(alias="pqMode"),
|
|
506
|
+
] = OutputGrafanaCloudMode2.ERROR
|
|
507
|
+
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."""
|
|
508
|
+
|
|
581
509
|
pq_controls: Annotated[
|
|
582
510
|
Optional[OutputGrafanaCloudPqControls2], pydantic.Field(alias="pqControls")
|
|
583
511
|
] = None
|
|
584
512
|
|
|
585
|
-
@field_serializer("message_format")
|
|
586
|
-
def serialize_message_format(self, value):
|
|
587
|
-
if isinstance(value, str):
|
|
588
|
-
try:
|
|
589
|
-
return models.OutputGrafanaCloudMessageFormat2(value)
|
|
590
|
-
except ValueError:
|
|
591
|
-
return value
|
|
592
|
-
return value
|
|
593
|
-
|
|
594
|
-
@field_serializer("failed_request_logging_mode")
|
|
595
|
-
def serialize_failed_request_logging_mode(self, value):
|
|
596
|
-
if isinstance(value, str):
|
|
597
|
-
try:
|
|
598
|
-
return models.OutputGrafanaCloudFailedRequestLoggingMode2(value)
|
|
599
|
-
except ValueError:
|
|
600
|
-
return value
|
|
601
|
-
return value
|
|
602
|
-
|
|
603
|
-
@field_serializer("on_backpressure")
|
|
604
|
-
def serialize_on_backpressure(self, value):
|
|
605
|
-
if isinstance(value, str):
|
|
606
|
-
try:
|
|
607
|
-
return models.OutputGrafanaCloudBackpressureBehavior2(value)
|
|
608
|
-
except ValueError:
|
|
609
|
-
return value
|
|
610
|
-
return value
|
|
611
|
-
|
|
612
|
-
@field_serializer("pq_mode")
|
|
613
|
-
def serialize_pq_mode(self, value):
|
|
614
|
-
if isinstance(value, str):
|
|
615
|
-
try:
|
|
616
|
-
return models.OutputGrafanaCloudMode2(value)
|
|
617
|
-
except ValueError:
|
|
618
|
-
return value
|
|
619
|
-
return value
|
|
620
|
-
|
|
621
|
-
@field_serializer("pq_compress")
|
|
622
|
-
def serialize_pq_compress(self, value):
|
|
623
|
-
if isinstance(value, str):
|
|
624
|
-
try:
|
|
625
|
-
return models.OutputGrafanaCloudCompression2(value)
|
|
626
|
-
except ValueError:
|
|
627
|
-
return value
|
|
628
|
-
return value
|
|
629
|
-
|
|
630
|
-
@field_serializer("pq_on_backpressure")
|
|
631
|
-
def serialize_pq_on_backpressure(self, value):
|
|
632
|
-
if isinstance(value, str):
|
|
633
|
-
try:
|
|
634
|
-
return models.OutputGrafanaCloudQueueFullBehavior2(value)
|
|
635
|
-
except ValueError:
|
|
636
|
-
return value
|
|
637
|
-
return value
|
|
638
|
-
|
|
639
513
|
|
|
640
514
|
class OutputGrafanaCloudType1(str, Enum):
|
|
641
515
|
GRAFANA_CLOUD = "grafana_cloud"
|
|
@@ -644,9 +518,7 @@ class OutputGrafanaCloudType1(str, Enum):
|
|
|
644
518
|
class OutputGrafanaCloudMessageFormat1(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
645
519
|
r"""Format to use when sending logs to Loki (Protobuf or JSON)"""
|
|
646
520
|
|
|
647
|
-
# Protobuf
|
|
648
521
|
PROTOBUF = "protobuf"
|
|
649
|
-
# JSON
|
|
650
522
|
JSON = "json"
|
|
651
523
|
|
|
652
524
|
|
|
@@ -664,15 +536,10 @@ class OutputGrafanaCloudLabel1(BaseModel):
|
|
|
664
536
|
class OutputGrafanaCloudPrometheusAuthAuthenticationType1(
|
|
665
537
|
str, Enum, metaclass=utils.OpenEnumMeta
|
|
666
538
|
):
|
|
667
|
-
# None
|
|
668
539
|
NONE = "none"
|
|
669
|
-
# Auth token
|
|
670
540
|
TOKEN = "token"
|
|
671
|
-
# Auth token (text secret)
|
|
672
541
|
TEXT_SECRET = "textSecret"
|
|
673
|
-
# Basic
|
|
674
542
|
BASIC = "basic"
|
|
675
|
-
# Basic (credentials secret)
|
|
676
543
|
CREDENTIALS_SECRET = "credentialsSecret"
|
|
677
544
|
|
|
678
545
|
|
|
@@ -716,28 +583,14 @@ class OutputGrafanaCloudPrometheusAuth1(BaseModel):
|
|
|
716
583
|
] = None
|
|
717
584
|
r"""Select or create a secret that references your credentials"""
|
|
718
585
|
|
|
719
|
-
@field_serializer("auth_type")
|
|
720
|
-
def serialize_auth_type(self, value):
|
|
721
|
-
if isinstance(value, str):
|
|
722
|
-
try:
|
|
723
|
-
return models.OutputGrafanaCloudPrometheusAuthAuthenticationType1(value)
|
|
724
|
-
except ValueError:
|
|
725
|
-
return value
|
|
726
|
-
return value
|
|
727
|
-
|
|
728
586
|
|
|
729
587
|
class OutputGrafanaCloudLokiAuthAuthenticationType1(
|
|
730
588
|
str, Enum, metaclass=utils.OpenEnumMeta
|
|
731
589
|
):
|
|
732
|
-
# None
|
|
733
590
|
NONE = "none"
|
|
734
|
-
# Auth token
|
|
735
591
|
TOKEN = "token"
|
|
736
|
-
# Auth token (text secret)
|
|
737
592
|
TEXT_SECRET = "textSecret"
|
|
738
|
-
# Basic
|
|
739
593
|
BASIC = "basic"
|
|
740
|
-
# Basic (credentials secret)
|
|
741
594
|
CREDENTIALS_SECRET = "credentialsSecret"
|
|
742
595
|
|
|
743
596
|
|
|
@@ -781,15 +634,6 @@ class OutputGrafanaCloudLokiAuth1(BaseModel):
|
|
|
781
634
|
] = None
|
|
782
635
|
r"""Select or create a secret that references your credentials"""
|
|
783
636
|
|
|
784
|
-
@field_serializer("auth_type")
|
|
785
|
-
def serialize_auth_type(self, value):
|
|
786
|
-
if isinstance(value, str):
|
|
787
|
-
try:
|
|
788
|
-
return models.OutputGrafanaCloudLokiAuthAuthenticationType1(value)
|
|
789
|
-
except ValueError:
|
|
790
|
-
return value
|
|
791
|
-
return value
|
|
792
|
-
|
|
793
637
|
|
|
794
638
|
class OutputGrafanaCloudExtraHTTPHeader1TypedDict(TypedDict):
|
|
795
639
|
value: str
|
|
@@ -807,11 +651,8 @@ class OutputGrafanaCloudFailedRequestLoggingMode1(
|
|
|
807
651
|
):
|
|
808
652
|
r"""Data to log when a request fails. All headers are redacted by default, unless listed as safe headers below."""
|
|
809
653
|
|
|
810
|
-
# Payload
|
|
811
654
|
PAYLOAD = "payload"
|
|
812
|
-
# Payload + Headers
|
|
813
655
|
PAYLOAD_AND_HEADERS = "payloadAndHeaders"
|
|
814
|
-
# None
|
|
815
656
|
NONE = "none"
|
|
816
657
|
|
|
817
658
|
|
|
@@ -872,43 +713,33 @@ class OutputGrafanaCloudTimeoutRetrySettings1(BaseModel):
|
|
|
872
713
|
class OutputGrafanaCloudBackpressureBehavior1(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
873
714
|
r"""How to handle events when all receivers are exerting backpressure"""
|
|
874
715
|
|
|
875
|
-
# Block
|
|
876
716
|
BLOCK = "block"
|
|
877
|
-
# Drop
|
|
878
717
|
DROP = "drop"
|
|
879
|
-
# Persistent Queue
|
|
880
718
|
QUEUE = "queue"
|
|
881
719
|
|
|
882
720
|
|
|
883
|
-
class OutputGrafanaCloudMode1(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
884
|
-
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."""
|
|
885
|
-
|
|
886
|
-
# Error
|
|
887
|
-
ERROR = "error"
|
|
888
|
-
# Backpressure
|
|
889
|
-
ALWAYS = "always"
|
|
890
|
-
# Always On
|
|
891
|
-
BACKPRESSURE = "backpressure"
|
|
892
|
-
|
|
893
|
-
|
|
894
721
|
class OutputGrafanaCloudCompression1(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
895
722
|
r"""Codec to use to compress the persisted data"""
|
|
896
723
|
|
|
897
|
-
# None
|
|
898
724
|
NONE = "none"
|
|
899
|
-
# Gzip
|
|
900
725
|
GZIP = "gzip"
|
|
901
726
|
|
|
902
727
|
|
|
903
728
|
class OutputGrafanaCloudQueueFullBehavior1(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
904
729
|
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."""
|
|
905
730
|
|
|
906
|
-
# Block
|
|
907
731
|
BLOCK = "block"
|
|
908
|
-
# Drop new data
|
|
909
732
|
DROP = "drop"
|
|
910
733
|
|
|
911
734
|
|
|
735
|
+
class OutputGrafanaCloudMode1(str, Enum, metaclass=utils.OpenEnumMeta):
|
|
736
|
+
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."""
|
|
737
|
+
|
|
738
|
+
ERROR = "error"
|
|
739
|
+
BACKPRESSURE = "backpressure"
|
|
740
|
+
ALWAYS = "always"
|
|
741
|
+
|
|
742
|
+
|
|
912
743
|
class OutputGrafanaCloudPqControls1TypedDict(TypedDict):
|
|
913
744
|
pass
|
|
914
745
|
|
|
@@ -982,16 +813,6 @@ class OutputGrafanaCloudGrafanaCloud1TypedDict(TypedDict):
|
|
|
982
813
|
description: NotRequired[str]
|
|
983
814
|
compress: NotRequired[bool]
|
|
984
815
|
r"""Compress the payload body before sending. Applies only to JSON payloads; the Protobuf variant for both Prometheus and Loki are snappy-compressed by default."""
|
|
985
|
-
pq_strict_ordering: NotRequired[bool]
|
|
986
|
-
r"""Use FIFO (first in, first out) processing. Disable to forward new events to receivers before queue is flushed."""
|
|
987
|
-
pq_rate_per_sec: NotRequired[float]
|
|
988
|
-
r"""Throttling rate (in events per second) to impose while writing to Destinations from PQ. Defaults to 0, which disables throttling."""
|
|
989
|
-
pq_mode: NotRequired[OutputGrafanaCloudMode1]
|
|
990
|
-
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."""
|
|
991
|
-
pq_max_buffer_size: NotRequired[float]
|
|
992
|
-
r"""The maximum number of events to hold in memory before writing the events to disk"""
|
|
993
|
-
pq_max_backpressure_sec: NotRequired[float]
|
|
994
|
-
r"""How long (in seconds) to wait for backpressure to resolve before engaging the queue"""
|
|
995
816
|
pq_max_file_size: NotRequired[str]
|
|
996
817
|
r"""The maximum size to store in each queue file before closing and optionally compressing (KB, MB, etc.)"""
|
|
997
818
|
pq_max_size: NotRequired[str]
|
|
@@ -1002,6 +823,8 @@ class OutputGrafanaCloudGrafanaCloud1TypedDict(TypedDict):
|
|
|
1002
823
|
r"""Codec to use to compress the persisted data"""
|
|
1003
824
|
pq_on_backpressure: NotRequired[OutputGrafanaCloudQueueFullBehavior1]
|
|
1004
825
|
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."""
|
|
826
|
+
pq_mode: NotRequired[OutputGrafanaCloudMode1]
|
|
827
|
+
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."""
|
|
1005
828
|
pq_controls: NotRequired[OutputGrafanaCloudPqControls1TypedDict]
|
|
1006
829
|
|
|
1007
830
|
|
|
@@ -1146,34 +969,6 @@ class OutputGrafanaCloudGrafanaCloud1(BaseModel):
|
|
|
1146
969
|
compress: Optional[bool] = True
|
|
1147
970
|
r"""Compress the payload body before sending. Applies only to JSON payloads; the Protobuf variant for both Prometheus and Loki are snappy-compressed by default."""
|
|
1148
971
|
|
|
1149
|
-
pq_strict_ordering: Annotated[
|
|
1150
|
-
Optional[bool], pydantic.Field(alias="pqStrictOrdering")
|
|
1151
|
-
] = True
|
|
1152
|
-
r"""Use FIFO (first in, first out) processing. Disable to forward new events to receivers before queue is flushed."""
|
|
1153
|
-
|
|
1154
|
-
pq_rate_per_sec: Annotated[
|
|
1155
|
-
Optional[float], pydantic.Field(alias="pqRatePerSec")
|
|
1156
|
-
] = 0
|
|
1157
|
-
r"""Throttling rate (in events per second) to impose while writing to Destinations from PQ. Defaults to 0, which disables throttling."""
|
|
1158
|
-
|
|
1159
|
-
pq_mode: Annotated[
|
|
1160
|
-
Annotated[
|
|
1161
|
-
Optional[OutputGrafanaCloudMode1], PlainValidator(validate_open_enum(False))
|
|
1162
|
-
],
|
|
1163
|
-
pydantic.Field(alias="pqMode"),
|
|
1164
|
-
] = OutputGrafanaCloudMode1.ERROR
|
|
1165
|
-
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."""
|
|
1166
|
-
|
|
1167
|
-
pq_max_buffer_size: Annotated[
|
|
1168
|
-
Optional[float], pydantic.Field(alias="pqMaxBufferSize")
|
|
1169
|
-
] = 42
|
|
1170
|
-
r"""The maximum number of events to hold in memory before writing the events to disk"""
|
|
1171
|
-
|
|
1172
|
-
pq_max_backpressure_sec: Annotated[
|
|
1173
|
-
Optional[float], pydantic.Field(alias="pqMaxBackpressureSec")
|
|
1174
|
-
] = 30
|
|
1175
|
-
r"""How long (in seconds) to wait for backpressure to resolve before engaging the queue"""
|
|
1176
|
-
|
|
1177
972
|
pq_max_file_size: Annotated[
|
|
1178
973
|
Optional[str], pydantic.Field(alias="pqMaxFileSize")
|
|
1179
974
|
] = "1 MB"
|
|
@@ -1205,64 +1000,18 @@ class OutputGrafanaCloudGrafanaCloud1(BaseModel):
|
|
|
1205
1000
|
] = OutputGrafanaCloudQueueFullBehavior1.BLOCK
|
|
1206
1001
|
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."""
|
|
1207
1002
|
|
|
1003
|
+
pq_mode: Annotated[
|
|
1004
|
+
Annotated[
|
|
1005
|
+
Optional[OutputGrafanaCloudMode1], PlainValidator(validate_open_enum(False))
|
|
1006
|
+
],
|
|
1007
|
+
pydantic.Field(alias="pqMode"),
|
|
1008
|
+
] = OutputGrafanaCloudMode1.ERROR
|
|
1009
|
+
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."""
|
|
1010
|
+
|
|
1208
1011
|
pq_controls: Annotated[
|
|
1209
1012
|
Optional[OutputGrafanaCloudPqControls1], pydantic.Field(alias="pqControls")
|
|
1210
1013
|
] = None
|
|
1211
1014
|
|
|
1212
|
-
@field_serializer("message_format")
|
|
1213
|
-
def serialize_message_format(self, value):
|
|
1214
|
-
if isinstance(value, str):
|
|
1215
|
-
try:
|
|
1216
|
-
return models.OutputGrafanaCloudMessageFormat1(value)
|
|
1217
|
-
except ValueError:
|
|
1218
|
-
return value
|
|
1219
|
-
return value
|
|
1220
|
-
|
|
1221
|
-
@field_serializer("failed_request_logging_mode")
|
|
1222
|
-
def serialize_failed_request_logging_mode(self, value):
|
|
1223
|
-
if isinstance(value, str):
|
|
1224
|
-
try:
|
|
1225
|
-
return models.OutputGrafanaCloudFailedRequestLoggingMode1(value)
|
|
1226
|
-
except ValueError:
|
|
1227
|
-
return value
|
|
1228
|
-
return value
|
|
1229
|
-
|
|
1230
|
-
@field_serializer("on_backpressure")
|
|
1231
|
-
def serialize_on_backpressure(self, value):
|
|
1232
|
-
if isinstance(value, str):
|
|
1233
|
-
try:
|
|
1234
|
-
return models.OutputGrafanaCloudBackpressureBehavior1(value)
|
|
1235
|
-
except ValueError:
|
|
1236
|
-
return value
|
|
1237
|
-
return value
|
|
1238
|
-
|
|
1239
|
-
@field_serializer("pq_mode")
|
|
1240
|
-
def serialize_pq_mode(self, value):
|
|
1241
|
-
if isinstance(value, str):
|
|
1242
|
-
try:
|
|
1243
|
-
return models.OutputGrafanaCloudMode1(value)
|
|
1244
|
-
except ValueError:
|
|
1245
|
-
return value
|
|
1246
|
-
return value
|
|
1247
|
-
|
|
1248
|
-
@field_serializer("pq_compress")
|
|
1249
|
-
def serialize_pq_compress(self, value):
|
|
1250
|
-
if isinstance(value, str):
|
|
1251
|
-
try:
|
|
1252
|
-
return models.OutputGrafanaCloudCompression1(value)
|
|
1253
|
-
except ValueError:
|
|
1254
|
-
return value
|
|
1255
|
-
return value
|
|
1256
|
-
|
|
1257
|
-
@field_serializer("pq_on_backpressure")
|
|
1258
|
-
def serialize_pq_on_backpressure(self, value):
|
|
1259
|
-
if isinstance(value, str):
|
|
1260
|
-
try:
|
|
1261
|
-
return models.OutputGrafanaCloudQueueFullBehavior1(value)
|
|
1262
|
-
except ValueError:
|
|
1263
|
-
return value
|
|
1264
|
-
return value
|
|
1265
|
-
|
|
1266
1015
|
|
|
1267
1016
|
OutputGrafanaCloudTypedDict = TypeAliasType(
|
|
1268
1017
|
"OutputGrafanaCloudTypedDict",
|