Skip to content

Commit a24ba0f

Browse files
author
Toni Reina
committed
Add scalable field to ClusterState
Add a field which indicates whether the cluster can be scaled up or down.
1 parent 095be51 commit a24ba0f

6 files changed

Lines changed: 333 additions & 307 deletions

File tree

gen/go/qdrant/cloud/cluster/v1/cluster.pb.go

Lines changed: 289 additions & 278 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/openapiv2/qdrant/cloud/cluster/v1/cluster.swagger.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,10 @@
795795
"resources": {
796796
"$ref": "#/definitions/v1ClusterNodeResourcesSummary",
797797
"title": "The resources used by the cluster per node.\nFor the complete cluster you have to multiply by cluster.configuration.number_of_nodes"
798+
},
799+
"scalable": {
800+
"type": "boolean",
801+
"description": "Indicates whether the cluster can be scaled up or down."
798802
}
799803
},
800804
"description": "ClusterState represents the current state of a cluster\nAll fields in this message are read-only."

gen/python/qdrant/cloud/cluster/v1/cluster_pb2.py

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/python/qdrant/cloud/cluster/v1/cluster_pb2.pyi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -380,22 +380,24 @@ class Toleration(_message.Message):
380380
def __init__(self, key: _Optional[str] = ..., operator: _Optional[_Union[TolerationOperator, str]] = ..., value: _Optional[str] = ..., effect: _Optional[_Union[TolerationEffect, str]] = ..., toleration_seconds: _Optional[int] = ...) -> None: ...
381381

382382
class ClusterState(_message.Message):
383-
__slots__ = ("version", "nodes_up", "restarted_at", "phase", "reason", "endpoint", "resources")
383+
__slots__ = ("version", "nodes_up", "restarted_at", "phase", "reason", "endpoint", "resources", "scalable")
384384
VERSION_FIELD_NUMBER: _ClassVar[int]
385385
NODES_UP_FIELD_NUMBER: _ClassVar[int]
386386
RESTARTED_AT_FIELD_NUMBER: _ClassVar[int]
387387
PHASE_FIELD_NUMBER: _ClassVar[int]
388388
REASON_FIELD_NUMBER: _ClassVar[int]
389389
ENDPOINT_FIELD_NUMBER: _ClassVar[int]
390390
RESOURCES_FIELD_NUMBER: _ClassVar[int]
391+
SCALABLE_FIELD_NUMBER: _ClassVar[int]
391392
version: str
392393
nodes_up: int
393394
restarted_at: _timestamp_pb2.Timestamp
394395
phase: ClusterPhase
395396
reason: str
396397
endpoint: ClusterEndpoint
397398
resources: ClusterNodeResourcesSummary
398-
def __init__(self, version: _Optional[str] = ..., nodes_up: _Optional[int] = ..., restarted_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., phase: _Optional[_Union[ClusterPhase, str]] = ..., reason: _Optional[str] = ..., endpoint: _Optional[_Union[ClusterEndpoint, _Mapping]] = ..., resources: _Optional[_Union[ClusterNodeResourcesSummary, _Mapping]] = ...) -> None: ...
399+
scalable: bool
400+
def __init__(self, version: _Optional[str] = ..., nodes_up: _Optional[int] = ..., restarted_at: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., phase: _Optional[_Union[ClusterPhase, str]] = ..., reason: _Optional[str] = ..., endpoint: _Optional[_Union[ClusterEndpoint, _Mapping]] = ..., resources: _Optional[_Union[ClusterNodeResourcesSummary, _Mapping]] = ..., scalable: bool = ...) -> None: ...
399401

400402
class ClusterEndpoint(_message.Message):
401403
__slots__ = ("url", "rest_port", "grpc_port")

gen/typescript/qdrant/cloud/cluster/v1/cluster_pb.ts

Lines changed: 8 additions & 1 deletion
Large diffs are not rendered by default.

proto/qdrant/cloud/cluster/v1/cluster.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,8 @@ message ClusterState {
628628
// The resources used by the cluster per node.
629629
// For the complete cluster you have to multiply by cluster.configuration.number_of_nodes
630630
ClusterNodeResourcesSummary resources = 7;
631+
// Indicates whether the cluster can be scaled up or down.
632+
bool scalable = 8;
631633
}
632634

633635
// Endpoint information to access the qdrant cluster (aka database).

0 commit comments

Comments
 (0)