cribl-control-plane 0.0.37a1__py3-none-any.whl → 0.0.38a1__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 (46) hide show
  1. cribl_control_plane/_version.py +3 -3
  2. cribl_control_plane/commits.py +4 -4
  3. cribl_control_plane/cribl.py +513 -0
  4. cribl_control_plane/destinations.py +3 -3
  5. cribl_control_plane/{samples.py → destinations_samples.py} +1 -1
  6. cribl_control_plane/models/__init__.py +829 -189
  7. cribl_control_plane/models/authconfig.py +43 -0
  8. cribl_control_plane/models/commonservicelimitconfigs.py +14 -0
  9. cribl_control_plane/models/edgeheartbeatmetricsmode.py +11 -0
  10. cribl_control_plane/models/getpacksbyidop.py +37 -0
  11. cribl_control_plane/models/getsystemsettingsauthop.py +24 -0
  12. cribl_control_plane/models/getsystemsettingsconfop.py +24 -0
  13. cribl_control_plane/models/getsystemsettingsgitsettingsop.py +24 -0
  14. cribl_control_plane/models/gitopstype.py +10 -0
  15. cribl_control_plane/models/gitrevertparams.py +3 -3
  16. cribl_control_plane/models/gitsettings.py +70 -0
  17. cribl_control_plane/models/input.py +77 -76
  18. cribl_control_plane/models/inputgrafana.py +678 -67
  19. cribl_control_plane/models/inputsyslog.py +406 -37
  20. cribl_control_plane/models/inputwizwebhook.py +393 -0
  21. cribl_control_plane/models/jobsettings.py +83 -0
  22. cribl_control_plane/models/limits.py +127 -0
  23. cribl_control_plane/models/output.py +75 -77
  24. cribl_control_plane/models/outputgrafanacloud.py +565 -69
  25. cribl_control_plane/models/rediscachelimits.py +38 -0
  26. cribl_control_plane/models/redisconnectionlimits.py +20 -0
  27. cribl_control_plane/models/redislimits.py +14 -0
  28. cribl_control_plane/models/searchsettings.py +71 -0
  29. cribl_control_plane/models/serviceslimits.py +23 -0
  30. cribl_control_plane/models/systemsettings.py +358 -0
  31. cribl_control_plane/models/systemsettingsconf.py +311 -0
  32. cribl_control_plane/models/updatesystemsettingsauthop.py +24 -0
  33. cribl_control_plane/models/updatesystemsettingsconfop.py +24 -0
  34. cribl_control_plane/models/updatesystemsettingsgitsettingsop.py +24 -0
  35. cribl_control_plane/models/upgradegroupsettings.py +24 -0
  36. cribl_control_plane/models/upgradepackageurls.py +20 -0
  37. cribl_control_plane/models/upgradesettings.py +36 -0
  38. cribl_control_plane/packs.py +174 -0
  39. cribl_control_plane/sdk.py +3 -0
  40. cribl_control_plane/settings.py +23 -0
  41. cribl_control_plane/settings_auth.py +339 -0
  42. cribl_control_plane/settings_git.py +339 -0
  43. cribl_control_plane/system_sdk.py +17 -0
  44. {cribl_control_plane-0.0.37a1.dist-info → cribl_control_plane-0.0.38a1.dist-info}/METADATA +22 -5
  45. {cribl_control_plane-0.0.37a1.dist-info → cribl_control_plane-0.0.38a1.dist-info}/RECORD +46 -16
  46. {cribl_control_plane-0.0.37a1.dist-info → cribl_control_plane-0.0.38a1.dist-info}/WHEEL +0 -0
@@ -0,0 +1,43 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from cribl_control_plane.types import BaseModel
5
+ from enum import Enum
6
+ import pydantic
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class AuthConfigType(str, Enum):
12
+ LDAP = "ldap"
13
+ SPLUNK = "splunk"
14
+ LOCAL = "local"
15
+ SAML = "saml"
16
+ OPENID = "openid"
17
+ SAAS = "saas"
18
+
19
+
20
+ class AuthConfigTypedDict(TypedDict):
21
+ fallback: bool
22
+ fallback_bad_login: bool
23
+ host: str
24
+ port: float
25
+ ssl: bool
26
+ type: AuthConfigType
27
+ filter_type: NotRequired[str]
28
+
29
+
30
+ class AuthConfig(BaseModel):
31
+ fallback: bool
32
+
33
+ fallback_bad_login: Annotated[bool, pydantic.Field(alias="fallbackBadLogin")]
34
+
35
+ host: str
36
+
37
+ port: float
38
+
39
+ ssl: bool
40
+
41
+ type: AuthConfigType
42
+
43
+ filter_type: Optional[str] = None
@@ -0,0 +1,14 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from cribl_control_plane.types import BaseModel
5
+ import pydantic
6
+ from typing_extensions import Annotated, TypedDict
7
+
8
+
9
+ class CommonServiceLimitConfigsTypedDict(TypedDict):
10
+ memory_limit: str
11
+
12
+
13
+ class CommonServiceLimitConfigs(BaseModel):
14
+ memory_limit: Annotated[str, pydantic.Field(alias="memoryLimit")]
@@ -0,0 +1,11 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+
6
+
7
+ class EdgeHeartbeatMetricsMode(str, Enum):
8
+ MINIMAL = "minimal"
9
+ BASIC = "basic"
10
+ ALL = "all"
11
+ CUSTOM = "custom"
@@ -0,0 +1,37 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .packinfo import PackInfo, PackInfoTypedDict
5
+ from cribl_control_plane.types import BaseModel
6
+ from cribl_control_plane.utils import FieldMetadata, PathParamMetadata
7
+ from typing import List, Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class GetPacksByIDRequestTypedDict(TypedDict):
12
+ id: str
13
+ r"""The <code>id</code> of the Pack to get."""
14
+
15
+
16
+ class GetPacksByIDRequest(BaseModel):
17
+ id: Annotated[
18
+ str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False))
19
+ ]
20
+ r"""The <code>id</code> of the Pack to get."""
21
+
22
+
23
+ class GetPacksByIDResponseTypedDict(TypedDict):
24
+ r"""a list of PackInfo objects"""
25
+
26
+ count: NotRequired[int]
27
+ r"""number of items present in the items array"""
28
+ items: NotRequired[List[PackInfoTypedDict]]
29
+
30
+
31
+ class GetPacksByIDResponse(BaseModel):
32
+ r"""a list of PackInfo objects"""
33
+
34
+ count: Optional[int] = None
35
+ r"""number of items present in the items array"""
36
+
37
+ items: Optional[List[PackInfo]] = None
@@ -0,0 +1,24 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .authconfig import AuthConfig, AuthConfigTypedDict
5
+ from cribl_control_plane.types import BaseModel
6
+ from typing import List, Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class GetSystemSettingsAuthResponseTypedDict(TypedDict):
11
+ r"""a list of AuthConfig objects"""
12
+
13
+ count: NotRequired[int]
14
+ r"""number of items present in the items array"""
15
+ items: NotRequired[List[AuthConfigTypedDict]]
16
+
17
+
18
+ class GetSystemSettingsAuthResponse(BaseModel):
19
+ r"""a list of AuthConfig objects"""
20
+
21
+ count: Optional[int] = None
22
+ r"""number of items present in the items array"""
23
+
24
+ items: Optional[List[AuthConfig]] = None
@@ -0,0 +1,24 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .systemsettingsconf import SystemSettingsConf, SystemSettingsConfTypedDict
5
+ from cribl_control_plane.types import BaseModel
6
+ from typing import List, Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class GetSystemSettingsConfResponseTypedDict(TypedDict):
11
+ r"""a list of SystemSettingsConf objects"""
12
+
13
+ count: NotRequired[int]
14
+ r"""number of items present in the items array"""
15
+ items: NotRequired[List[SystemSettingsConfTypedDict]]
16
+
17
+
18
+ class GetSystemSettingsConfResponse(BaseModel):
19
+ r"""a list of SystemSettingsConf objects"""
20
+
21
+ count: Optional[int] = None
22
+ r"""number of items present in the items array"""
23
+
24
+ items: Optional[List[SystemSettingsConf]] = None
@@ -0,0 +1,24 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .gitsettings import GitSettings, GitSettingsTypedDict
5
+ from cribl_control_plane.types import BaseModel
6
+ from typing import List, Optional
7
+ from typing_extensions import NotRequired, TypedDict
8
+
9
+
10
+ class GetSystemSettingsGitSettingsResponseTypedDict(TypedDict):
11
+ r"""a list of GitSettings objects"""
12
+
13
+ count: NotRequired[int]
14
+ r"""number of items present in the items array"""
15
+ items: NotRequired[List[GitSettingsTypedDict]]
16
+
17
+
18
+ class GetSystemSettingsGitSettingsResponse(BaseModel):
19
+ r"""a list of GitSettings objects"""
20
+
21
+ count: Optional[int] = None
22
+ r"""number of items present in the items array"""
23
+
24
+ items: Optional[List[GitSettings]] = None
@@ -0,0 +1,10 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from enum import Enum
5
+
6
+
7
+ class GitOpsType(str, Enum):
8
+ NONE = "none"
9
+ PULL = "pull"
10
+ PUSH = "push"
@@ -8,13 +8,13 @@ from typing_extensions import NotRequired, TypedDict
8
8
 
9
9
  class GitRevertParamsTypedDict(TypedDict):
10
10
  commit: str
11
- message: str
12
11
  force: NotRequired[bool]
12
+ message: NotRequired[str]
13
13
 
14
14
 
15
15
  class GitRevertParams(BaseModel):
16
16
  commit: str
17
17
 
18
- message: str
19
-
20
18
  force: Optional[bool] = None
19
+
20
+ message: Optional[str] = None
@@ -0,0 +1,70 @@
1
+ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2
+
3
+ from __future__ import annotations
4
+ from .gitopstype import GitOpsType
5
+ from cribl_control_plane.types import BaseModel
6
+ import pydantic
7
+ from typing import Optional
8
+ from typing_extensions import Annotated, NotRequired, TypedDict
9
+
10
+
11
+ class GitSettingsTypedDict(TypedDict):
12
+ auth_type: NotRequired[str]
13
+ auto_action: NotRequired[str]
14
+ auto_action_message: NotRequired[str]
15
+ auto_action_schedule: NotRequired[str]
16
+ branch: NotRequired[str]
17
+ commit_deploy_single_action: NotRequired[bool]
18
+ copilot_auto_git_commit_messages: NotRequired[bool]
19
+ default_commit_message: NotRequired[str]
20
+ git_ops: NotRequired[GitOpsType]
21
+ password: NotRequired[str]
22
+ remote: NotRequired[str]
23
+ ssh_key: NotRequired[str]
24
+ strict_host_key_checking: NotRequired[bool]
25
+ timeout: NotRequired[float]
26
+ user: NotRequired[str]
27
+
28
+
29
+ class GitSettings(BaseModel):
30
+ auth_type: Annotated[Optional[str], pydantic.Field(alias="authType")] = None
31
+
32
+ auto_action: Annotated[Optional[str], pydantic.Field(alias="autoAction")] = None
33
+
34
+ auto_action_message: Annotated[
35
+ Optional[str], pydantic.Field(alias="autoActionMessage")
36
+ ] = None
37
+
38
+ auto_action_schedule: Annotated[
39
+ Optional[str], pydantic.Field(alias="autoActionSchedule")
40
+ ] = None
41
+
42
+ branch: Optional[str] = None
43
+
44
+ commit_deploy_single_action: Annotated[
45
+ Optional[bool], pydantic.Field(alias="commitDeploySingleAction")
46
+ ] = None
47
+
48
+ copilot_auto_git_commit_messages: Annotated[
49
+ Optional[bool], pydantic.Field(alias="copilotAutoGitCommitMessages")
50
+ ] = None
51
+
52
+ default_commit_message: Annotated[
53
+ Optional[str], pydantic.Field(alias="defaultCommitMessage")
54
+ ] = None
55
+
56
+ git_ops: Annotated[Optional[GitOpsType], pydantic.Field(alias="gitOps")] = None
57
+
58
+ password: Optional[str] = None
59
+
60
+ remote: Optional[str] = None
61
+
62
+ ssh_key: Annotated[Optional[str], pydantic.Field(alias="sshKey")] = None
63
+
64
+ strict_host_key_checking: Annotated[
65
+ Optional[bool], pydantic.Field(alias="strictHostKeyChecking")
66
+ ] = None
67
+
68
+ timeout: Optional[float] = None
69
+
70
+ user: Optional[str] = None
@@ -64,31 +64,30 @@ 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
67
68
  from .inputzscalerhec import InputZscalerHec, InputZscalerHecTypedDict
68
- from cribl_control_plane.utils import get_discriminator
69
- from pydantic import Discriminator, Tag
70
69
  from typing import Union
71
- from typing_extensions import Annotated, TypeAliasType
70
+ from typing_extensions import TypeAliasType
72
71
 
73
72
 
74
73
  InputTypedDict = TypeAliasType(
75
74
  "InputTypedDict",
76
75
  Union[
77
- InputKubeEventsTypedDict,
78
76
  InputDatagenTypedDict,
77
+ InputKubeEventsTypedDict,
79
78
  InputCriblTypedDict,
80
79
  InputCriblmetricsTypedDict,
81
80
  InputKubeMetricsTypedDict,
82
81
  InputCollectionTypedDict,
83
82
  InputSystemStateTypedDict,
84
- InputWindowsMetricsTypedDict,
85
83
  InputModelDrivenTelemetryTypedDict,
86
84
  InputSystemMetricsTypedDict,
85
+ InputWindowsMetricsTypedDict,
87
86
  InputJournalFilesTypedDict,
88
- InputKubeLogsTypedDict,
89
- InputRawUDPTypedDict,
90
87
  InputWinEventLogsTypedDict,
88
+ InputRawUDPTypedDict,
91
89
  InputExecTypedDict,
90
+ InputKubeLogsTypedDict,
92
91
  InputMetricsTypedDict,
93
92
  InputSnmpTypedDict,
94
93
  InputCriblTCPTypedDict,
@@ -104,23 +103,22 @@ InputTypedDict = TypeAliasType(
104
103
  InputOffice365MgmtTypedDict,
105
104
  InputFileTypedDict,
106
105
  InputSplunkTypedDict,
107
- InputAppscopeTypedDict,
108
- InputGrafanaTypedDict,
109
106
  InputWefTypedDict,
107
+ InputAppscopeTypedDict,
110
108
  InputHTTPRawTypedDict,
111
- InputCriblLakeHTTPTypedDict,
109
+ InputWizWebhookTypedDict,
112
110
  InputHTTPTypedDict,
113
- InputZscalerHecTypedDict,
114
- InputSyslogTypedDict,
115
- InputSqsTypedDict,
111
+ InputCriblLakeHTTPTypedDict,
116
112
  InputAzureBlobTypedDict,
117
- InputConfluentCloudTypedDict,
113
+ InputSqsTypedDict,
114
+ InputZscalerHecTypedDict,
118
115
  InputKinesisTypedDict,
116
+ InputConfluentCloudTypedDict,
119
117
  InputEventhubTypedDict,
120
118
  InputKafkaTypedDict,
121
119
  InputElasticTypedDict,
122
- InputSplunkHecTypedDict,
123
120
  InputOffice365MsgTraceTypedDict,
121
+ InputSplunkHecTypedDict,
124
122
  InputPrometheusRwTypedDict,
125
123
  InputLokiTypedDict,
126
124
  InputPrometheusTypedDict,
@@ -132,70 +130,73 @@ InputTypedDict = TypeAliasType(
132
130
  InputMskTypedDict,
133
131
  InputS3InventoryTypedDict,
134
132
  InputSplunkSearchTypedDict,
133
+ InputSyslogTypedDict,
134
+ InputGrafanaTypedDict,
135
135
  ],
136
136
  )
137
137
 
138
138
 
139
- Input = Annotated[
139
+ Input = TypeAliasType(
140
+ "Input",
140
141
  Union[
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")],
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,
199
201
  ],
200
- Discriminator(lambda m: get_discriminator(m, "type", "type")),
201
- ]
202
+ )