cribl-control-plane 0.0.36__py3-none-any.whl → 0.0.37a1__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.

@@ -80,8 +80,10 @@ from .outputtcpjson import OutputTcpjson, OutputTcpjsonTypedDict
80
80
  from .outputwavefront import OutputWavefront, OutputWavefrontTypedDict
81
81
  from .outputwebhook import OutputWebhook, OutputWebhookTypedDict
82
82
  from .outputxsiam import OutputXsiam, OutputXsiamTypedDict
83
+ from cribl_control_plane.utils import get_discriminator
84
+ from pydantic import Discriminator, Tag
83
85
  from typing import Union
84
- from typing_extensions import TypeAliasType
86
+ from typing_extensions import Annotated, TypeAliasType
85
87
 
86
88
 
87
89
  OutputTypedDict = TypeAliasType(
@@ -90,25 +92,25 @@ OutputTypedDict = TypeAliasType(
90
92
  OutputDevnullTypedDict,
91
93
  OutputDefaultTypedDict,
92
94
  OutputRouterTypedDict,
93
- OutputNetflowTypedDict,
94
95
  OutputSnmpTypedDict,
96
+ OutputNetflowTypedDict,
95
97
  OutputDiskSpoolTypedDict,
96
98
  OutputRingTypedDict,
97
- OutputStatsdExtTypedDict,
98
99
  OutputGraphiteTypedDict,
99
100
  OutputStatsdTypedDict,
101
+ OutputStatsdExtTypedDict,
100
102
  OutputGooglePubsubTypedDict,
101
103
  OutputCriblTCPTypedDict,
102
- OutputSnsTypedDict,
103
104
  OutputSplunkTypedDict,
105
+ OutputSnsTypedDict,
104
106
  OutputCloudwatchTypedDict,
105
107
  OutputSyslogTypedDict,
106
108
  OutputAzureEventhubTypedDict,
107
109
  OutputWavefrontTypedDict,
108
110
  OutputSignalfxTypedDict,
109
111
  OutputHoneycombTypedDict,
110
- OutputSumoLogicTypedDict,
111
112
  OutputTcpjsonTypedDict,
113
+ OutputSumoLogicTypedDict,
112
114
  OutputHumioHecTypedDict,
113
115
  OutputElasticCloudTypedDict,
114
116
  OutputCrowdstrikeNextGenSiemTypedDict,
@@ -122,6 +124,7 @@ OutputTypedDict = TypeAliasType(
122
124
  OutputSqsTypedDict,
123
125
  OutputNewrelicTypedDict,
124
126
  OutputCriblHTTPTypedDict,
127
+ OutputGrafanaCloudTypedDict,
125
128
  OutputXsiamTypedDict,
126
129
  OutputFilesystemTypedDict,
127
130
  OutputDatasetTypedDict,
@@ -130,10 +133,10 @@ OutputTypedDict = TypeAliasType(
130
133
  OutputServiceNowTypedDict,
131
134
  OutputLokiTypedDict,
132
135
  OutputDynatraceOtlpTypedDict,
133
- OutputGoogleChronicleTypedDict,
134
136
  OutputElasticTypedDict,
135
- OutputDatadogTypedDict,
137
+ OutputGoogleChronicleTypedDict,
136
138
  OutputCriblLakeTypedDict,
139
+ OutputDatadogTypedDict,
137
140
  OutputPrometheusTypedDict,
138
141
  OutputMskTypedDict,
139
142
  OutputSentinelOneAiSiemTypedDict,
@@ -150,77 +153,76 @@ OutputTypedDict = TypeAliasType(
150
153
  OutputAzureDataExplorerTypedDict,
151
154
  OutputWebhookTypedDict,
152
155
  OutputGoogleCloudLoggingTypedDict,
153
- OutputGrafanaCloudTypedDict,
154
156
  ],
155
157
  )
156
158
 
157
159
 
158
- Output = TypeAliasType(
159
- "Output",
160
+ Output = Annotated[
160
161
  Union[
161
- OutputDevnull,
162
- OutputDefault,
163
- OutputRouter,
164
- OutputNetflow,
165
- OutputSnmp,
166
- OutputDiskSpool,
167
- OutputRing,
168
- OutputStatsdExt,
169
- OutputGraphite,
170
- OutputStatsd,
171
- OutputGooglePubsub,
172
- OutputCriblTCP,
173
- OutputSns,
174
- OutputSplunk,
175
- OutputCloudwatch,
176
- OutputSyslog,
177
- OutputAzureEventhub,
178
- OutputWavefront,
179
- OutputSignalfx,
180
- OutputHoneycomb,
181
- OutputSumoLogic,
182
- OutputTcpjson,
183
- OutputHumioHec,
184
- OutputElasticCloud,
185
- OutputCrowdstrikeNextGenSiem,
186
- OutputKinesis,
187
- OutputConfluentCloud,
188
- OutputKafka,
189
- OutputExabeam,
190
- OutputNewrelicEvents,
191
- OutputAzureLogs,
192
- OutputSplunkLb,
193
- OutputSqs,
194
- OutputNewrelic,
195
- OutputCriblHTTP,
196
- OutputXsiam,
197
- OutputFilesystem,
198
- OutputDataset,
199
- OutputSplunkHec,
200
- OutputDynatraceHTTP,
201
- OutputServiceNow,
202
- OutputLoki,
203
- OutputDynatraceOtlp,
204
- OutputGoogleChronicle,
205
- OutputElastic,
206
- OutputDatadog,
207
- OutputCriblLake,
208
- OutputPrometheus,
209
- OutputMsk,
210
- OutputSentinelOneAiSiem,
211
- OutputSentinel,
212
- OutputInfluxdb,
213
- OutputGoogleCloudStorage,
214
- OutputAzureBlob,
215
- OutputOpenTelemetry,
216
- OutputMinio,
217
- OutputClickHouse,
218
- OutputSecurityLake,
219
- OutputDlS3,
220
- OutputS3,
221
- OutputAzureDataExplorer,
222
- OutputWebhook,
223
- OutputGoogleCloudLogging,
224
- OutputGrafanaCloud,
162
+ Annotated[OutputDefault, Tag("default")],
163
+ Annotated[OutputWebhook, Tag("webhook")],
164
+ Annotated[OutputSentinel, Tag("sentinel")],
165
+ Annotated[OutputDevnull, Tag("devnull")],
166
+ Annotated[OutputSyslog, Tag("syslog")],
167
+ Annotated[OutputSplunk, Tag("splunk")],
168
+ Annotated[OutputSplunkLb, Tag("splunk_lb")],
169
+ Annotated[OutputSplunkHec, Tag("splunk_hec")],
170
+ Annotated[OutputTcpjson, Tag("tcpjson")],
171
+ Annotated[OutputWavefront, Tag("wavefront")],
172
+ Annotated[OutputSignalfx, Tag("signalfx")],
173
+ Annotated[OutputFilesystem, Tag("filesystem")],
174
+ Annotated[OutputS3, Tag("s3")],
175
+ Annotated[OutputAzureBlob, Tag("azure_blob")],
176
+ Annotated[OutputAzureDataExplorer, Tag("azure_data_explorer")],
177
+ Annotated[OutputAzureLogs, Tag("azure_logs")],
178
+ Annotated[OutputKinesis, Tag("kinesis")],
179
+ Annotated[OutputHoneycomb, Tag("honeycomb")],
180
+ Annotated[OutputAzureEventhub, Tag("azure_eventhub")],
181
+ Annotated[OutputGoogleChronicle, Tag("google_chronicle")],
182
+ Annotated[OutputGoogleCloudStorage, Tag("google_cloud_storage")],
183
+ Annotated[OutputGoogleCloudLogging, Tag("google_cloud_logging")],
184
+ Annotated[OutputGooglePubsub, Tag("google_pubsub")],
185
+ Annotated[OutputExabeam, Tag("exabeam")],
186
+ Annotated[OutputKafka, Tag("kafka")],
187
+ Annotated[OutputConfluentCloud, Tag("confluent_cloud")],
188
+ Annotated[OutputMsk, Tag("msk")],
189
+ Annotated[OutputElastic, Tag("elastic")],
190
+ Annotated[OutputElasticCloud, Tag("elastic_cloud")],
191
+ Annotated[OutputNewrelic, Tag("newrelic")],
192
+ Annotated[OutputNewrelicEvents, Tag("newrelic_events")],
193
+ Annotated[OutputInfluxdb, Tag("influxdb")],
194
+ Annotated[OutputCloudwatch, Tag("cloudwatch")],
195
+ Annotated[OutputMinio, Tag("minio")],
196
+ Annotated[OutputStatsd, Tag("statsd")],
197
+ Annotated[OutputStatsdExt, Tag("statsd_ext")],
198
+ Annotated[OutputGraphite, Tag("graphite")],
199
+ Annotated[OutputRouter, Tag("router")],
200
+ Annotated[OutputSns, Tag("sns")],
201
+ Annotated[OutputSqs, Tag("sqs")],
202
+ Annotated[OutputSnmp, Tag("snmp")],
203
+ Annotated[OutputSumoLogic, Tag("sumo_logic")],
204
+ Annotated[OutputDatadog, Tag("datadog")],
205
+ Annotated[OutputGrafanaCloud, Tag("grafana_cloud")],
206
+ Annotated[OutputLoki, Tag("loki")],
207
+ Annotated[OutputPrometheus, Tag("prometheus")],
208
+ Annotated[OutputRing, Tag("ring")],
209
+ Annotated[OutputOpenTelemetry, Tag("open_telemetry")],
210
+ Annotated[OutputServiceNow, Tag("service_now")],
211
+ Annotated[OutputDataset, Tag("dataset")],
212
+ Annotated[OutputCriblTCP, Tag("cribl_tcp")],
213
+ Annotated[OutputCriblHTTP, Tag("cribl_http")],
214
+ Annotated[OutputHumioHec, Tag("humio_hec")],
215
+ Annotated[OutputCrowdstrikeNextGenSiem, Tag("crowdstrike_next_gen_siem")],
216
+ Annotated[OutputDlS3, Tag("dl_s3")],
217
+ Annotated[OutputSecurityLake, Tag("security_lake")],
218
+ Annotated[OutputCriblLake, Tag("cribl_lake")],
219
+ Annotated[OutputDiskSpool, Tag("disk_spool")],
220
+ Annotated[OutputClickHouse, Tag("click_house")],
221
+ Annotated[OutputXsiam, Tag("xsiam")],
222
+ Annotated[OutputNetflow, Tag("netflow")],
223
+ Annotated[OutputDynatraceHTTP, Tag("dynatrace_http")],
224
+ Annotated[OutputDynatraceOtlp, Tag("dynatrace_otlp")],
225
+ Annotated[OutputSentinelOneAiSiem, Tag("sentinel_one_ai_siem")],
225
226
  ],
226
- )
227
+ Discriminator(lambda m: get_discriminator(m, "type", "type")),
228
+ ]