cribl-control-plane 0.0.35__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.

@@ -65,58 +65,62 @@ from .inputwindowsmetrics import InputWindowsMetrics, InputWindowsMetricsTypedDi
65
65
  from .inputwineventlogs import InputWinEventLogs, InputWinEventLogsTypedDict
66
66
  from .inputwiz import InputWiz, InputWizTypedDict
67
67
  from .inputzscalerhec import InputZscalerHec, InputZscalerHecTypedDict
68
+ from cribl_control_plane.utils import get_discriminator
69
+ from pydantic import Discriminator, Tag
68
70
  from typing import Union
69
- from typing_extensions import TypeAliasType
71
+ from typing_extensions import Annotated, TypeAliasType
70
72
 
71
73
 
72
74
  InputTypedDict = TypeAliasType(
73
75
  "InputTypedDict",
74
76
  Union[
75
- InputDatagenTypedDict,
76
77
  InputKubeEventsTypedDict,
78
+ InputDatagenTypedDict,
77
79
  InputCriblTypedDict,
78
80
  InputCriblmetricsTypedDict,
79
81
  InputKubeMetricsTypedDict,
80
82
  InputCollectionTypedDict,
81
83
  InputSystemStateTypedDict,
82
- InputModelDrivenTelemetryTypedDict,
83
84
  InputWindowsMetricsTypedDict,
85
+ InputModelDrivenTelemetryTypedDict,
84
86
  InputSystemMetricsTypedDict,
85
87
  InputJournalFilesTypedDict,
88
+ InputKubeLogsTypedDict,
86
89
  InputRawUDPTypedDict,
87
90
  InputWinEventLogsTypedDict,
88
91
  InputExecTypedDict,
89
- InputKubeLogsTypedDict,
90
92
  InputMetricsTypedDict,
91
93
  InputSnmpTypedDict,
92
94
  InputCriblTCPTypedDict,
93
95
  InputNetflowTypedDict,
94
96
  InputTcpjsonTypedDict,
95
97
  InputGooglePubsubTypedDict,
96
- InputTCPTypedDict,
97
- InputWizTypedDict,
98
98
  InputOffice365ServiceTypedDict,
99
+ InputWizTypedDict,
100
+ InputTCPTypedDict,
99
101
  InputFirehoseTypedDict,
100
102
  InputCriblHTTPTypedDict,
101
- InputOffice365MgmtTypedDict,
102
103
  InputDatadogAgentTypedDict,
104
+ InputOffice365MgmtTypedDict,
103
105
  InputFileTypedDict,
104
106
  InputSplunkTypedDict,
105
107
  InputAppscopeTypedDict,
108
+ InputGrafanaTypedDict,
106
109
  InputWefTypedDict,
107
110
  InputHTTPRawTypedDict,
108
- InputHTTPTypedDict,
109
111
  InputCriblLakeHTTPTypedDict,
110
- InputAzureBlobTypedDict,
111
- InputSqsTypedDict,
112
+ InputHTTPTypedDict,
112
113
  InputZscalerHecTypedDict,
113
- InputEventhubTypedDict,
114
+ InputSyslogTypedDict,
115
+ InputSqsTypedDict,
116
+ InputAzureBlobTypedDict,
117
+ InputConfluentCloudTypedDict,
114
118
  InputKinesisTypedDict,
119
+ InputEventhubTypedDict,
115
120
  InputKafkaTypedDict,
116
- InputConfluentCloudTypedDict,
117
121
  InputElasticTypedDict,
118
- InputOffice365MsgTraceTypedDict,
119
122
  InputSplunkHecTypedDict,
123
+ InputOffice365MsgTraceTypedDict,
120
124
  InputPrometheusRwTypedDict,
121
125
  InputLokiTypedDict,
122
126
  InputPrometheusTypedDict,
@@ -128,72 +132,70 @@ InputTypedDict = TypeAliasType(
128
132
  InputMskTypedDict,
129
133
  InputS3InventoryTypedDict,
130
134
  InputSplunkSearchTypedDict,
131
- InputSyslogTypedDict,
132
- InputGrafanaTypedDict,
133
135
  ],
134
136
  )
135
137
 
136
138
 
137
- Input = TypeAliasType(
138
- "Input",
139
+ Input = Annotated[
139
140
  Union[
140
- InputDatagen,
141
- InputKubeEvents,
142
- InputCribl,
143
- InputCriblmetrics,
144
- InputKubeMetrics,
145
- InputCollection,
146
- InputSystemState,
147
- InputModelDrivenTelemetry,
148
- InputWindowsMetrics,
149
- InputSystemMetrics,
150
- InputJournalFiles,
151
- InputRawUDP,
152
- InputWinEventLogs,
153
- InputExec,
154
- InputKubeLogs,
155
- InputMetrics,
156
- InputSnmp,
157
- InputCriblTCP,
158
- InputNetflow,
159
- InputTcpjson,
160
- InputGooglePubsub,
161
- InputTCP,
162
- InputWiz,
163
- InputOffice365Service,
164
- InputFirehose,
165
- InputCriblHTTP,
166
- InputOffice365Mgmt,
167
- InputDatadogAgent,
168
- InputFile,
169
- InputSplunk,
170
- InputAppscope,
171
- InputWef,
172
- InputHTTPRaw,
173
- InputHTTP,
174
- InputCriblLakeHTTP,
175
- InputAzureBlob,
176
- InputSqs,
177
- InputZscalerHec,
178
- InputEventhub,
179
- InputKinesis,
180
- InputKafka,
181
- InputConfluentCloud,
182
- InputElastic,
183
- InputOffice365MsgTrace,
184
- InputSplunkHec,
185
- InputPrometheusRw,
186
- InputLoki,
187
- InputPrometheus,
188
- InputCrowdstrike,
189
- InputEdgePrometheus,
190
- InputOpenTelemetry,
191
- InputS3,
192
- InputSecurityLake,
193
- InputMsk,
194
- InputS3Inventory,
195
- InputSplunkSearch,
196
- InputSyslog,
197
- InputGrafana,
141
+ Annotated[InputCollection, Tag("collection")],
142
+ Annotated[InputKafka, Tag("kafka")],
143
+ Annotated[InputMsk, Tag("msk")],
144
+ Annotated[InputHTTP, Tag("http")],
145
+ Annotated[InputSplunk, Tag("splunk")],
146
+ Annotated[InputSplunkSearch, Tag("splunk_search")],
147
+ Annotated[InputSplunkHec, Tag("splunk_hec")],
148
+ Annotated[InputAzureBlob, Tag("azure_blob")],
149
+ Annotated[InputElastic, Tag("elastic")],
150
+ Annotated[InputConfluentCloud, Tag("confluent_cloud")],
151
+ Annotated[InputGrafana, Tag("grafana")],
152
+ Annotated[InputLoki, Tag("loki")],
153
+ Annotated[InputPrometheusRw, Tag("prometheus_rw")],
154
+ Annotated[InputPrometheus, Tag("prometheus")],
155
+ Annotated[InputEdgePrometheus, Tag("edge_prometheus")],
156
+ Annotated[InputOffice365Mgmt, Tag("office365_mgmt")],
157
+ Annotated[InputOffice365Service, Tag("office365_service")],
158
+ Annotated[InputOffice365MsgTrace, Tag("office365_msg_trace")],
159
+ Annotated[InputEventhub, Tag("eventhub")],
160
+ Annotated[InputExec, Tag("exec")],
161
+ Annotated[InputFirehose, Tag("firehose")],
162
+ Annotated[InputGooglePubsub, Tag("google_pubsub")],
163
+ Annotated[InputCribl, Tag("cribl")],
164
+ Annotated[InputCriblTCP, Tag("cribl_tcp")],
165
+ Annotated[InputCriblHTTP, Tag("cribl_http")],
166
+ Annotated[InputCriblLakeHTTP, Tag("cribl_lake_http")],
167
+ Annotated[InputTcpjson, Tag("tcpjson")],
168
+ Annotated[InputSystemMetrics, Tag("system_metrics")],
169
+ Annotated[InputSystemState, Tag("system_state")],
170
+ Annotated[InputKubeMetrics, Tag("kube_metrics")],
171
+ Annotated[InputKubeLogs, Tag("kube_logs")],
172
+ Annotated[InputKubeEvents, Tag("kube_events")],
173
+ Annotated[InputWindowsMetrics, Tag("windows_metrics")],
174
+ Annotated[InputCrowdstrike, Tag("crowdstrike")],
175
+ Annotated[InputDatadogAgent, Tag("datadog_agent")],
176
+ Annotated[InputDatagen, Tag("datagen")],
177
+ Annotated[InputHTTPRaw, Tag("http_raw")],
178
+ Annotated[InputKinesis, Tag("kinesis")],
179
+ Annotated[InputCriblmetrics, Tag("criblmetrics")],
180
+ Annotated[InputMetrics, Tag("metrics")],
181
+ Annotated[InputS3, Tag("s3")],
182
+ Annotated[InputS3Inventory, Tag("s3_inventory")],
183
+ Annotated[InputSnmp, Tag("snmp")],
184
+ Annotated[InputOpenTelemetry, Tag("open_telemetry")],
185
+ Annotated[InputModelDrivenTelemetry, Tag("model_driven_telemetry")],
186
+ Annotated[InputSqs, Tag("sqs")],
187
+ Annotated[InputSyslog, Tag("syslog")],
188
+ Annotated[InputFile, Tag("file")],
189
+ Annotated[InputTCP, Tag("tcp")],
190
+ Annotated[InputAppscope, Tag("appscope")],
191
+ Annotated[InputWef, Tag("wef")],
192
+ Annotated[InputWinEventLogs, Tag("win_event_logs")],
193
+ Annotated[InputRawUDP, Tag("raw_udp")],
194
+ Annotated[InputJournalFiles, Tag("journal_files")],
195
+ Annotated[InputWiz, Tag("wiz")],
196
+ Annotated[InputNetflow, Tag("netflow")],
197
+ Annotated[InputSecurityLake, Tag("security_lake")],
198
+ Annotated[InputZscalerHec, Tag("zscaler_hec")],
198
199
  ],
199
- )
200
+ Discriminator(lambda m: get_discriminator(m, "type", "type")),
201
+ ]