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.

@@ -8,13 +8,13 @@ from typing_extensions import NotRequired, TypedDict
8
8
 
9
9
  class GitRevertParamsTypedDict(TypedDict):
10
10
  commit: str
11
+ message: str
11
12
  force: NotRequired[bool]
12
- message: NotRequired[str]
13
13
 
14
14
 
15
15
  class GitRevertParams(BaseModel):
16
16
  commit: str
17
17
 
18
- force: Optional[bool] = None
18
+ message: str
19
19
 
20
- message: Optional[str] = None
20
+ force: Optional[bool] = None
@@ -64,30 +64,31 @@ from .inputwef import InputWef, InputWefTypedDict
64
64
  from .inputwindowsmetrics import InputWindowsMetrics, InputWindowsMetricsTypedDict
65
65
  from .inputwineventlogs import InputWinEventLogs, InputWinEventLogsTypedDict
66
66
  from .inputwiz import InputWiz, InputWizTypedDict
67
- from .inputwizwebhook import InputWizWebhook, InputWizWebhookTypedDict
68
67
  from .inputzscalerhec import InputZscalerHec, InputZscalerHecTypedDict
68
+ from cribl_control_plane.utils import get_discriminator
69
+ from pydantic import Discriminator, Tag
69
70
  from typing import Union
70
- from typing_extensions import TypeAliasType
71
+ from typing_extensions import Annotated, TypeAliasType
71
72
 
72
73
 
73
74
  InputTypedDict = TypeAliasType(
74
75
  "InputTypedDict",
75
76
  Union[
76
- InputDatagenTypedDict,
77
77
  InputKubeEventsTypedDict,
78
+ InputDatagenTypedDict,
78
79
  InputCriblTypedDict,
79
80
  InputCriblmetricsTypedDict,
80
81
  InputKubeMetricsTypedDict,
81
82
  InputCollectionTypedDict,
82
83
  InputSystemStateTypedDict,
84
+ InputWindowsMetricsTypedDict,
83
85
  InputModelDrivenTelemetryTypedDict,
84
86
  InputSystemMetricsTypedDict,
85
- InputWindowsMetricsTypedDict,
86
87
  InputJournalFilesTypedDict,
87
- InputWinEventLogsTypedDict,
88
+ InputKubeLogsTypedDict,
88
89
  InputRawUDPTypedDict,
90
+ InputWinEventLogsTypedDict,
89
91
  InputExecTypedDict,
90
- InputKubeLogsTypedDict,
91
92
  InputMetricsTypedDict,
92
93
  InputSnmpTypedDict,
93
94
  InputCriblTCPTypedDict,
@@ -103,22 +104,23 @@ InputTypedDict = TypeAliasType(
103
104
  InputOffice365MgmtTypedDict,
104
105
  InputFileTypedDict,
105
106
  InputSplunkTypedDict,
106
- InputWefTypedDict,
107
107
  InputAppscopeTypedDict,
108
+ InputGrafanaTypedDict,
109
+ InputWefTypedDict,
108
110
  InputHTTPRawTypedDict,
109
- InputWizWebhookTypedDict,
110
- InputHTTPTypedDict,
111
111
  InputCriblLakeHTTPTypedDict,
112
- InputAzureBlobTypedDict,
113
- InputSqsTypedDict,
112
+ InputHTTPTypedDict,
114
113
  InputZscalerHecTypedDict,
115
- InputKinesisTypedDict,
114
+ InputSyslogTypedDict,
115
+ InputSqsTypedDict,
116
+ InputAzureBlobTypedDict,
116
117
  InputConfluentCloudTypedDict,
118
+ InputKinesisTypedDict,
117
119
  InputEventhubTypedDict,
118
120
  InputKafkaTypedDict,
119
121
  InputElasticTypedDict,
120
- InputOffice365MsgTraceTypedDict,
121
122
  InputSplunkHecTypedDict,
123
+ InputOffice365MsgTraceTypedDict,
122
124
  InputPrometheusRwTypedDict,
123
125
  InputLokiTypedDict,
124
126
  InputPrometheusTypedDict,
@@ -130,73 +132,70 @@ InputTypedDict = TypeAliasType(
130
132
  InputMskTypedDict,
131
133
  InputS3InventoryTypedDict,
132
134
  InputSplunkSearchTypedDict,
133
- InputSyslogTypedDict,
134
- InputGrafanaTypedDict,
135
135
  ],
136
136
  )
137
137
 
138
138
 
139
- Input = TypeAliasType(
140
- "Input",
139
+ Input = Annotated[
141
140
  Union[
142
- InputDatagen,
143
- InputKubeEvents,
144
- InputCribl,
145
- InputCriblmetrics,
146
- InputKubeMetrics,
147
- InputCollection,
148
- InputSystemState,
149
- InputModelDrivenTelemetry,
150
- InputSystemMetrics,
151
- InputWindowsMetrics,
152
- InputJournalFiles,
153
- InputWinEventLogs,
154
- InputRawUDP,
155
- InputExec,
156
- InputKubeLogs,
157
- InputMetrics,
158
- InputSnmp,
159
- InputCriblTCP,
160
- InputNetflow,
161
- InputTcpjson,
162
- InputGooglePubsub,
163
- InputOffice365Service,
164
- InputWiz,
165
- InputTCP,
166
- InputFirehose,
167
- InputCriblHTTP,
168
- InputDatadogAgent,
169
- InputOffice365Mgmt,
170
- InputFile,
171
- InputSplunk,
172
- InputWef,
173
- InputAppscope,
174
- InputHTTPRaw,
175
- InputWizWebhook,
176
- InputHTTP,
177
- InputCriblLakeHTTP,
178
- InputAzureBlob,
179
- InputSqs,
180
- InputZscalerHec,
181
- InputKinesis,
182
- InputConfluentCloud,
183
- InputEventhub,
184
- InputKafka,
185
- InputElastic,
186
- InputOffice365MsgTrace,
187
- InputSplunkHec,
188
- InputPrometheusRw,
189
- InputLoki,
190
- InputPrometheus,
191
- InputCrowdstrike,
192
- InputEdgePrometheus,
193
- InputOpenTelemetry,
194
- InputS3,
195
- InputSecurityLake,
196
- InputMsk,
197
- InputS3Inventory,
198
- InputSplunkSearch,
199
- InputSyslog,
200
- 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")],
201
199
  ],
202
- )
200
+ Discriminator(lambda m: get_discriminator(m, "type", "type")),
201
+ ]