cribl-control-plane 0.0.17__py3-none-any.whl → 0.0.19__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 +3 -3
- cribl_control_plane/distributed.py +187 -0
- cribl_control_plane/errors/healthstatus_error.py +1 -1
- cribl_control_plane/groups_sdk.py +1291 -0
- cribl_control_plane/lake.py +479 -0
- cribl_control_plane/models/__init__.py +843 -3
- cribl_control_plane/models/appmode.py +13 -0
- cribl_control_plane/models/cacheconnection.py +44 -0
- cribl_control_plane/models/cacheconnectionbackfillstatus.py +12 -0
- cribl_control_plane/models/cloudprovider.py +9 -0
- cribl_control_plane/models/commit.py +30 -0
- cribl_control_plane/models/configgroup.py +116 -0
- cribl_control_plane/models/configgroupcloud.py +48 -0
- cribl_control_plane/models/configgrouplookups.py +34 -0
- cribl_control_plane/models/createcribllakedatasetbylakeidop.py +48 -0
- cribl_control_plane/models/createpacksop.py +24 -0
- cribl_control_plane/models/createproductsgroupsbyproductop.py +54 -0
- cribl_control_plane/models/createversioncommitop.py +24 -0
- cribl_control_plane/models/createversionpushop.py +23 -0
- cribl_control_plane/models/createversionrevertop.py +47 -0
- cribl_control_plane/models/createversionsyncop.py +23 -0
- cribl_control_plane/models/createversionundoop.py +37 -0
- cribl_control_plane/models/cribllakedataset.py +74 -0
- cribl_control_plane/models/datasetmetadata.py +39 -0
- cribl_control_plane/models/datasetmetadataruninfo.py +28 -0
- cribl_control_plane/models/deployrequest.py +18 -0
- cribl_control_plane/models/deployrequestlookups.py +28 -0
- cribl_control_plane/models/distributedsummary.py +63 -0
- cribl_control_plane/models/getcribllakedatasetbylakeidop.py +40 -0
- cribl_control_plane/models/getgroupsaclbyidop.py +63 -0
- cribl_control_plane/models/getgroupsbyidop.py +49 -0
- cribl_control_plane/models/getgroupsconfigversionbyidop.py +36 -0
- cribl_control_plane/models/getpacksop.py +40 -0
- cribl_control_plane/models/getproductsgroupsaclteamsbyproductandidop.py +78 -0
- cribl_control_plane/models/getproductsgroupsbyproductop.py +58 -0
- cribl_control_plane/models/getsummaryop.py +46 -0
- cribl_control_plane/models/getsummaryworkersop.py +39 -0
- cribl_control_plane/models/getversionbranchop.py +23 -0
- cribl_control_plane/models/getversioncountop.py +47 -0
- cribl_control_plane/models/getversioncurrentbranchop.py +23 -0
- cribl_control_plane/models/getversiondiffop.py +63 -0
- cribl_control_plane/models/getversionfilesop.py +48 -0
- cribl_control_plane/models/getversioninfoop.py +24 -0
- cribl_control_plane/models/getversionshowop.py +63 -0
- cribl_control_plane/models/getversionstatusop.py +38 -0
- cribl_control_plane/models/getworkersop.py +82 -0
- cribl_control_plane/models/gitcommitparams.py +23 -0
- cribl_control_plane/models/gitcommitsummary.py +68 -0
- cribl_control_plane/models/gitfile.py +20 -0
- cribl_control_plane/models/gitfilesresponse.py +22 -0
- cribl_control_plane/models/gitinfo.py +23 -0
- cribl_control_plane/models/gitrevertparams.py +20 -0
- cribl_control_plane/models/gitrevertresult.py +48 -0
- cribl_control_plane/models/gitstatusresult.py +73 -0
- cribl_control_plane/models/hbcriblinfo.py +80 -0
- cribl_control_plane/models/hbleaderinfo.py +23 -0
- cribl_control_plane/models/healthstatus.py +3 -3
- cribl_control_plane/models/heartbeatmetadata.py +122 -0
- cribl_control_plane/models/lakedatasetsearchconfig.py +18 -0
- cribl_control_plane/models/lakehouseconnectiontype.py +9 -0
- cribl_control_plane/models/lookupversions.py +13 -0
- cribl_control_plane/models/masterworkerentry.py +84 -0
- cribl_control_plane/models/nodeactiveupgradestatus.py +10 -0
- cribl_control_plane/models/nodefailedupgradestatus.py +9 -0
- cribl_control_plane/models/nodeprovidedinfo.py +184 -0
- cribl_control_plane/models/nodeskippedupgradestatus.py +11 -0
- cribl_control_plane/models/nodeupgradestate.py +11 -0
- cribl_control_plane/models/nodeupgradestatus.py +30 -0
- cribl_control_plane/models/packinfo.py +73 -0
- cribl_control_plane/models/packinstallinfo.py +76 -0
- cribl_control_plane/models/packrequestbody.py +75 -0
- cribl_control_plane/models/rbacresource.py +14 -0
- cribl_control_plane/models/resourcepolicy.py +24 -0
- cribl_control_plane/models/restartresponse.py +26 -0
- cribl_control_plane/models/teamaccesscontrollist.py +18 -0
- cribl_control_plane/models/updategroupsdeploybyidop.py +46 -0
- cribl_control_plane/models/updatepacksop.py +37 -0
- cribl_control_plane/models/updateworkersrestartop.py +24 -0
- cribl_control_plane/models/useraccesscontrollist.py +18 -0
- cribl_control_plane/packs.py +623 -0
- cribl_control_plane/sdk.py +28 -0
- cribl_control_plane/teams.py +203 -0
- cribl_control_plane/versioning.py +2309 -0
- cribl_control_plane/workers_sdk.py +555 -0
- {cribl_control_plane-0.0.17.dist-info → cribl_control_plane-0.0.19.dist-info}/METADATA +58 -8
- {cribl_control_plane-0.0.17.dist-info → cribl_control_plane-0.0.19.dist-info}/RECORD +87 -8
- {cribl_control_plane-0.0.17.dist-info → cribl_control_plane-0.0.19.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
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 import List
|
|
7
|
+
from typing_extensions import Annotated, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class FileTypedDict(TypedDict):
|
|
11
|
+
index: str
|
|
12
|
+
path: str
|
|
13
|
+
working_dir: str
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class File(BaseModel):
|
|
17
|
+
index: str
|
|
18
|
+
|
|
19
|
+
path: str
|
|
20
|
+
|
|
21
|
+
working_dir: str
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class RenamedTypedDict(TypedDict):
|
|
25
|
+
from_: str
|
|
26
|
+
to: str
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class Renamed(BaseModel):
|
|
30
|
+
from_: Annotated[str, pydantic.Field(alias="from")]
|
|
31
|
+
|
|
32
|
+
to: str
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class GitStatusResultTypedDict(TypedDict):
|
|
36
|
+
ahead: float
|
|
37
|
+
behind: float
|
|
38
|
+
conflicted: List[str]
|
|
39
|
+
created: List[str]
|
|
40
|
+
current: str
|
|
41
|
+
deleted: List[str]
|
|
42
|
+
files: List[FileTypedDict]
|
|
43
|
+
modified: List[str]
|
|
44
|
+
not_added: List[str]
|
|
45
|
+
renamed: List[RenamedTypedDict]
|
|
46
|
+
staged: List[str]
|
|
47
|
+
tracking: str
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
class GitStatusResult(BaseModel):
|
|
51
|
+
ahead: float
|
|
52
|
+
|
|
53
|
+
behind: float
|
|
54
|
+
|
|
55
|
+
conflicted: List[str]
|
|
56
|
+
|
|
57
|
+
created: List[str]
|
|
58
|
+
|
|
59
|
+
current: str
|
|
60
|
+
|
|
61
|
+
deleted: List[str]
|
|
62
|
+
|
|
63
|
+
files: List[File]
|
|
64
|
+
|
|
65
|
+
modified: List[str]
|
|
66
|
+
|
|
67
|
+
not_added: List[str]
|
|
68
|
+
|
|
69
|
+
renamed: List[Renamed]
|
|
70
|
+
|
|
71
|
+
staged: List[str]
|
|
72
|
+
|
|
73
|
+
tracking: str
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .appmode import AppMode
|
|
5
|
+
from .hbleaderinfo import HBLeaderInfo, HBLeaderInfoTypedDict
|
|
6
|
+
from .lookupversions import LookupVersions, LookupVersionsTypedDict
|
|
7
|
+
from cribl_control_plane.types import BaseModel
|
|
8
|
+
import pydantic
|
|
9
|
+
from typing import List, Optional
|
|
10
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ConfigTypedDict(TypedDict):
|
|
14
|
+
features_rev: NotRequired[str]
|
|
15
|
+
hb_period_seconds: NotRequired[float]
|
|
16
|
+
log_stream_env: NotRequired[str]
|
|
17
|
+
policy_rev: NotRequired[str]
|
|
18
|
+
version: NotRequired[str]
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class Config(BaseModel):
|
|
22
|
+
features_rev: Annotated[Optional[str], pydantic.Field(alias="featuresRev")] = None
|
|
23
|
+
|
|
24
|
+
hb_period_seconds: Annotated[
|
|
25
|
+
Optional[float], pydantic.Field(alias="hbPeriodSeconds")
|
|
26
|
+
] = None
|
|
27
|
+
|
|
28
|
+
log_stream_env: Annotated[Optional[str], pydantic.Field(alias="logStreamEnv")] = (
|
|
29
|
+
None
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
policy_rev: Annotated[Optional[str], pydantic.Field(alias="policyRev")] = None
|
|
33
|
+
|
|
34
|
+
version: Optional[str] = None
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class HBCriblInfoTypedDict(TypedDict):
|
|
38
|
+
config: ConfigTypedDict
|
|
39
|
+
dist_mode: AppMode
|
|
40
|
+
group: str
|
|
41
|
+
guid: str
|
|
42
|
+
start_time: float
|
|
43
|
+
tags: List[str]
|
|
44
|
+
deployment_id: NotRequired[str]
|
|
45
|
+
edge_nodes: NotRequired[float]
|
|
46
|
+
install_type: NotRequired[str]
|
|
47
|
+
lookup_versions: NotRequired[LookupVersionsTypedDict]
|
|
48
|
+
master: NotRequired[HBLeaderInfoTypedDict]
|
|
49
|
+
pid: NotRequired[float]
|
|
50
|
+
version: NotRequired[str]
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class HBCriblInfo(BaseModel):
|
|
54
|
+
config: Config
|
|
55
|
+
|
|
56
|
+
dist_mode: Annotated[AppMode, pydantic.Field(alias="distMode")]
|
|
57
|
+
|
|
58
|
+
group: str
|
|
59
|
+
|
|
60
|
+
guid: str
|
|
61
|
+
|
|
62
|
+
start_time: Annotated[float, pydantic.Field(alias="startTime")]
|
|
63
|
+
|
|
64
|
+
tags: List[str]
|
|
65
|
+
|
|
66
|
+
deployment_id: Annotated[Optional[str], pydantic.Field(alias="deploymentId")] = None
|
|
67
|
+
|
|
68
|
+
edge_nodes: Annotated[Optional[float], pydantic.Field(alias="edgeNodes")] = None
|
|
69
|
+
|
|
70
|
+
install_type: Annotated[Optional[str], pydantic.Field(alias="installType")] = None
|
|
71
|
+
|
|
72
|
+
lookup_versions: Annotated[
|
|
73
|
+
Optional[LookupVersions], pydantic.Field(alias="lookupVersions")
|
|
74
|
+
] = None
|
|
75
|
+
|
|
76
|
+
master: Optional[HBLeaderInfo] = None
|
|
77
|
+
|
|
78
|
+
pid: Optional[float] = None
|
|
79
|
+
|
|
80
|
+
version: Optional[str] = None
|
|
@@ -0,0 +1,23 @@
|
|
|
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 typing import Optional
|
|
6
|
+
from typing_extensions import NotRequired, TypedDict
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class HBLeaderInfoTypedDict(TypedDict):
|
|
10
|
+
host: str
|
|
11
|
+
port: float
|
|
12
|
+
servername: NotRequired[str]
|
|
13
|
+
tls: NotRequired[bool]
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class HBLeaderInfo(BaseModel):
|
|
17
|
+
host: str
|
|
18
|
+
|
|
19
|
+
port: float
|
|
20
|
+
|
|
21
|
+
servername: Optional[str] = None
|
|
22
|
+
|
|
23
|
+
tls: Optional[bool] = None
|
|
@@ -13,20 +13,20 @@ class Role(str, Enum):
|
|
|
13
13
|
STANDBY = "standby"
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class HealthStatusStatus(str, Enum):
|
|
17
17
|
HEALTHY = "healthy"
|
|
18
18
|
SHUTTING_DOWN = "shutting down"
|
|
19
19
|
STANDBY = "standby"
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
class HealthStatusTypedDict(TypedDict):
|
|
23
|
-
status:
|
|
23
|
+
status: HealthStatusStatus
|
|
24
24
|
start_time: float
|
|
25
25
|
role: NotRequired[Role]
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
class HealthStatus(BaseModel):
|
|
29
|
-
status:
|
|
29
|
+
status: HealthStatusStatus
|
|
30
30
|
|
|
31
31
|
start_time: Annotated[float, pydantic.Field(alias="startTime")]
|
|
32
32
|
|
|
@@ -0,0 +1,122 @@
|
|
|
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 import List, Optional
|
|
7
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class HeartbeatMetadataTagsTypedDict(TypedDict):
|
|
11
|
+
pass
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class HeartbeatMetadataTags(BaseModel):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class HeartbeatMetadataAwsTypedDict(TypedDict):
|
|
19
|
+
enabled: bool
|
|
20
|
+
region: str
|
|
21
|
+
type: str
|
|
22
|
+
zone: str
|
|
23
|
+
tags: NotRequired[HeartbeatMetadataTagsTypedDict]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class HeartbeatMetadataAws(BaseModel):
|
|
27
|
+
enabled: bool
|
|
28
|
+
|
|
29
|
+
region: str
|
|
30
|
+
|
|
31
|
+
type: str
|
|
32
|
+
|
|
33
|
+
zone: str
|
|
34
|
+
|
|
35
|
+
tags: Optional[HeartbeatMetadataTags] = None
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class HeartbeatMetadataHostOsTypedDict(TypedDict):
|
|
39
|
+
addresses: List[str]
|
|
40
|
+
enabled: bool
|
|
41
|
+
id: str
|
|
42
|
+
version: str
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class HeartbeatMetadataHostOs(BaseModel):
|
|
46
|
+
addresses: List[str]
|
|
47
|
+
|
|
48
|
+
enabled: bool
|
|
49
|
+
|
|
50
|
+
id: str
|
|
51
|
+
|
|
52
|
+
version: str
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
class HeartbeatMetadataOwnerTypedDict(TypedDict):
|
|
56
|
+
kind: str
|
|
57
|
+
name: str
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
class HeartbeatMetadataOwner(BaseModel):
|
|
61
|
+
kind: str
|
|
62
|
+
|
|
63
|
+
name: str
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class HeartbeatMetadataKubeTypedDict(TypedDict):
|
|
67
|
+
enabled: bool
|
|
68
|
+
namespace: str
|
|
69
|
+
node: str
|
|
70
|
+
pod: str
|
|
71
|
+
source: str
|
|
72
|
+
owner: NotRequired[HeartbeatMetadataOwnerTypedDict]
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class HeartbeatMetadataKube(BaseModel):
|
|
76
|
+
enabled: bool
|
|
77
|
+
|
|
78
|
+
namespace: str
|
|
79
|
+
|
|
80
|
+
node: str
|
|
81
|
+
|
|
82
|
+
pod: str
|
|
83
|
+
|
|
84
|
+
source: str
|
|
85
|
+
|
|
86
|
+
owner: Optional[HeartbeatMetadataOwner] = None
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
class HeartbeatMetadataOsTypedDict(TypedDict):
|
|
90
|
+
addresses: List[str]
|
|
91
|
+
enabled: bool
|
|
92
|
+
id: str
|
|
93
|
+
version: str
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class HeartbeatMetadataOs(BaseModel):
|
|
97
|
+
addresses: List[str]
|
|
98
|
+
|
|
99
|
+
enabled: bool
|
|
100
|
+
|
|
101
|
+
id: str
|
|
102
|
+
|
|
103
|
+
version: str
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class HeartbeatMetadataTypedDict(TypedDict):
|
|
107
|
+
aws: NotRequired[HeartbeatMetadataAwsTypedDict]
|
|
108
|
+
host_os: NotRequired[HeartbeatMetadataHostOsTypedDict]
|
|
109
|
+
kube: NotRequired[HeartbeatMetadataKubeTypedDict]
|
|
110
|
+
os: NotRequired[HeartbeatMetadataOsTypedDict]
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
class HeartbeatMetadata(BaseModel):
|
|
114
|
+
aws: Optional[HeartbeatMetadataAws] = None
|
|
115
|
+
|
|
116
|
+
host_os: Annotated[
|
|
117
|
+
Optional[HeartbeatMetadataHostOs], pydantic.Field(alias="hostOs")
|
|
118
|
+
] = None
|
|
119
|
+
|
|
120
|
+
kube: Optional[HeartbeatMetadataKube] = None
|
|
121
|
+
|
|
122
|
+
os: Optional[HeartbeatMetadataOs] = None
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .datasetmetadata import DatasetMetadata, DatasetMetadataTypedDict
|
|
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 LakeDatasetSearchConfigTypedDict(TypedDict):
|
|
11
|
+
datatypes: NotRequired[List[str]]
|
|
12
|
+
metadata: NotRequired[DatasetMetadataTypedDict]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class LakeDatasetSearchConfig(BaseModel):
|
|
16
|
+
datatypes: Optional[List[str]] = None
|
|
17
|
+
|
|
18
|
+
metadata: Optional[DatasetMetadata] = None
|
|
@@ -0,0 +1,13 @@
|
|
|
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 typing_extensions import TypedDict
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class LookupVersionsTypedDict(TypedDict):
|
|
9
|
+
pass
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class LookupVersions(BaseModel):
|
|
13
|
+
pass
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .heartbeatmetadata import HeartbeatMetadata, HeartbeatMetadataTypedDict
|
|
5
|
+
from .nodeprovidedinfo import NodeProvidedInfo, NodeProvidedInfoTypedDict
|
|
6
|
+
from .nodeupgradestatus import NodeUpgradeStatus, NodeUpgradeStatusTypedDict
|
|
7
|
+
from cribl_control_plane.types import BaseModel
|
|
8
|
+
from enum import Enum
|
|
9
|
+
import pydantic
|
|
10
|
+
from typing import Optional
|
|
11
|
+
from typing_extensions import Annotated, NotRequired, TypedDict
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class LastMetricsTypedDict(TypedDict):
|
|
15
|
+
pass
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class LastMetrics(BaseModel):
|
|
19
|
+
pass
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class MasterWorkerEntryType(str, Enum):
|
|
23
|
+
INFO = "info"
|
|
24
|
+
REQ = "req"
|
|
25
|
+
RESP = "resp"
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class MasterWorkerEntryWorkersTypedDict(TypedDict):
|
|
29
|
+
count: float
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class MasterWorkerEntryWorkers(BaseModel):
|
|
33
|
+
count: float
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
class MasterWorkerEntryTypedDict(TypedDict):
|
|
37
|
+
first_msg_time: float
|
|
38
|
+
group: str
|
|
39
|
+
id: str
|
|
40
|
+
info: NodeProvidedInfoTypedDict
|
|
41
|
+
last_msg_time: float
|
|
42
|
+
worker_processes: float
|
|
43
|
+
deployable: NotRequired[bool]
|
|
44
|
+
disconnected: NotRequired[bool]
|
|
45
|
+
last_metrics: NotRequired[LastMetricsTypedDict]
|
|
46
|
+
metadata: NotRequired[HeartbeatMetadataTypedDict]
|
|
47
|
+
node_upgrade_status: NotRequired[NodeUpgradeStatusTypedDict]
|
|
48
|
+
status: NotRequired[str]
|
|
49
|
+
type: NotRequired[MasterWorkerEntryType]
|
|
50
|
+
workers: NotRequired[MasterWorkerEntryWorkersTypedDict]
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class MasterWorkerEntry(BaseModel):
|
|
54
|
+
first_msg_time: Annotated[float, pydantic.Field(alias="firstMsgTime")]
|
|
55
|
+
|
|
56
|
+
group: str
|
|
57
|
+
|
|
58
|
+
id: str
|
|
59
|
+
|
|
60
|
+
info: NodeProvidedInfo
|
|
61
|
+
|
|
62
|
+
last_msg_time: Annotated[float, pydantic.Field(alias="lastMsgTime")]
|
|
63
|
+
|
|
64
|
+
worker_processes: Annotated[float, pydantic.Field(alias="workerProcesses")]
|
|
65
|
+
|
|
66
|
+
deployable: Optional[bool] = None
|
|
67
|
+
|
|
68
|
+
disconnected: Optional[bool] = None
|
|
69
|
+
|
|
70
|
+
last_metrics: Annotated[
|
|
71
|
+
Optional[LastMetrics], pydantic.Field(alias="lastMetrics")
|
|
72
|
+
] = None
|
|
73
|
+
|
|
74
|
+
metadata: Optional[HeartbeatMetadata] = None
|
|
75
|
+
|
|
76
|
+
node_upgrade_status: Annotated[
|
|
77
|
+
Optional[NodeUpgradeStatus], pydantic.Field(alias="nodeUpgradeStatus")
|
|
78
|
+
] = None
|
|
79
|
+
|
|
80
|
+
status: Optional[str] = None
|
|
81
|
+
|
|
82
|
+
type: Optional[MasterWorkerEntryType] = None
|
|
83
|
+
|
|
84
|
+
workers: Optional[MasterWorkerEntryWorkers] = None
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
from .hbcriblinfo import HBCriblInfo, HBCriblInfoTypedDict
|
|
5
|
+
from .heartbeatmetadata import HeartbeatMetadata, HeartbeatMetadataTypedDict
|
|
6
|
+
from cribl_control_plane.types import BaseModel
|
|
7
|
+
import pydantic
|
|
8
|
+
from typing import List, Optional, Union
|
|
9
|
+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
class NodeProvidedInfoTagsTypedDict(TypedDict):
|
|
13
|
+
pass
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class NodeProvidedInfoTags(BaseModel):
|
|
17
|
+
pass
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class NodeProvidedInfoAwsTypedDict(TypedDict):
|
|
21
|
+
enabled: bool
|
|
22
|
+
region: str
|
|
23
|
+
type: str
|
|
24
|
+
zone: str
|
|
25
|
+
tags: NotRequired[NodeProvidedInfoTagsTypedDict]
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class NodeProvidedInfoAws(BaseModel):
|
|
29
|
+
enabled: bool
|
|
30
|
+
|
|
31
|
+
region: str
|
|
32
|
+
|
|
33
|
+
type: str
|
|
34
|
+
|
|
35
|
+
zone: str
|
|
36
|
+
|
|
37
|
+
tags: Optional[NodeProvidedInfoTags] = None
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
class NodeProvidedInfoHostOsTypedDict(TypedDict):
|
|
41
|
+
addresses: List[str]
|
|
42
|
+
enabled: bool
|
|
43
|
+
id: str
|
|
44
|
+
version: str
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
class NodeProvidedInfoHostOs(BaseModel):
|
|
48
|
+
addresses: List[str]
|
|
49
|
+
|
|
50
|
+
enabled: bool
|
|
51
|
+
|
|
52
|
+
id: str
|
|
53
|
+
|
|
54
|
+
version: str
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class NodeProvidedInfoOwnerTypedDict(TypedDict):
|
|
58
|
+
kind: str
|
|
59
|
+
name: str
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
class NodeProvidedInfoOwner(BaseModel):
|
|
63
|
+
kind: str
|
|
64
|
+
|
|
65
|
+
name: str
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class NodeProvidedInfoKubeTypedDict(TypedDict):
|
|
69
|
+
enabled: bool
|
|
70
|
+
namespace: str
|
|
71
|
+
node: str
|
|
72
|
+
pod: str
|
|
73
|
+
source: str
|
|
74
|
+
owner: NotRequired[NodeProvidedInfoOwnerTypedDict]
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
class NodeProvidedInfoKube(BaseModel):
|
|
78
|
+
enabled: bool
|
|
79
|
+
|
|
80
|
+
namespace: str
|
|
81
|
+
|
|
82
|
+
node: str
|
|
83
|
+
|
|
84
|
+
pod: str
|
|
85
|
+
|
|
86
|
+
source: str
|
|
87
|
+
|
|
88
|
+
owner: Optional[NodeProvidedInfoOwner] = None
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
class NodeProvidedInfoOs2TypedDict(TypedDict):
|
|
92
|
+
addresses: List[str]
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
class NodeProvidedInfoOs2(BaseModel):
|
|
96
|
+
addresses: List[str]
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
class NodeProvidedInfoOs1TypedDict(TypedDict):
|
|
100
|
+
addresses: List[str]
|
|
101
|
+
enabled: bool
|
|
102
|
+
id: str
|
|
103
|
+
version: str
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class NodeProvidedInfoOs1(BaseModel):
|
|
107
|
+
addresses: List[str]
|
|
108
|
+
|
|
109
|
+
enabled: bool
|
|
110
|
+
|
|
111
|
+
id: str
|
|
112
|
+
|
|
113
|
+
version: str
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
OsTypedDict = TypeAliasType(
|
|
117
|
+
"OsTypedDict", Union[NodeProvidedInfoOs2TypedDict, NodeProvidedInfoOs1TypedDict]
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
Os = TypeAliasType("Os", Union[NodeProvidedInfoOs2, NodeProvidedInfoOs1])
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
class NodeProvidedInfoTypedDict(TypedDict):
|
|
125
|
+
architecture: str
|
|
126
|
+
cpus: float
|
|
127
|
+
cribl: HBCriblInfoTypedDict
|
|
128
|
+
free_disk_space: float
|
|
129
|
+
hostname: str
|
|
130
|
+
node: str
|
|
131
|
+
platform: str
|
|
132
|
+
release: str
|
|
133
|
+
total_disk_space: float
|
|
134
|
+
totalmem: float
|
|
135
|
+
aws: NotRequired[NodeProvidedInfoAwsTypedDict]
|
|
136
|
+
conn_ip: NotRequired[str]
|
|
137
|
+
host_os: NotRequired[NodeProvidedInfoHostOsTypedDict]
|
|
138
|
+
is_saas_worker: NotRequired[bool]
|
|
139
|
+
kube: NotRequired[NodeProvidedInfoKubeTypedDict]
|
|
140
|
+
local_time: NotRequired[float]
|
|
141
|
+
metadata: NotRequired[HeartbeatMetadataTypedDict]
|
|
142
|
+
os: NotRequired[OsTypedDict]
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
class NodeProvidedInfo(BaseModel):
|
|
146
|
+
architecture: str
|
|
147
|
+
|
|
148
|
+
cpus: float
|
|
149
|
+
|
|
150
|
+
cribl: HBCriblInfo
|
|
151
|
+
|
|
152
|
+
free_disk_space: Annotated[float, pydantic.Field(alias="freeDiskSpace")]
|
|
153
|
+
|
|
154
|
+
hostname: str
|
|
155
|
+
|
|
156
|
+
node: str
|
|
157
|
+
|
|
158
|
+
platform: str
|
|
159
|
+
|
|
160
|
+
release: str
|
|
161
|
+
|
|
162
|
+
total_disk_space: Annotated[float, pydantic.Field(alias="totalDiskSpace")]
|
|
163
|
+
|
|
164
|
+
totalmem: float
|
|
165
|
+
|
|
166
|
+
aws: Optional[NodeProvidedInfoAws] = None
|
|
167
|
+
|
|
168
|
+
conn_ip: Optional[str] = None
|
|
169
|
+
|
|
170
|
+
host_os: Annotated[
|
|
171
|
+
Optional[NodeProvidedInfoHostOs], pydantic.Field(alias="hostOs")
|
|
172
|
+
] = None
|
|
173
|
+
|
|
174
|
+
is_saas_worker: Annotated[Optional[bool], pydantic.Field(alias="isSaasWorker")] = (
|
|
175
|
+
None
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
kube: Optional[NodeProvidedInfoKube] = None
|
|
179
|
+
|
|
180
|
+
local_time: Annotated[Optional[float], pydantic.Field(alias="localTime")] = None
|
|
181
|
+
|
|
182
|
+
metadata: Optional[HeartbeatMetadata] = None
|
|
183
|
+
|
|
184
|
+
os: Optional[Os] = None
|