Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add new Status field to DeployedModel in Endpoint #27682

Merged
merged 2 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ class LabelsEntry
# @!attribute [rw] faster_deployment_config
# @return [::Google::Cloud::AIPlatform::V1::FasterDeploymentConfig]
# Configuration for faster model deployment.
# @!attribute [r] status
# @return [::Google::Cloud::AIPlatform::V1::DeployedModel::Status]
# Output only. Runtime status of the deployed model.
# @!attribute [rw] system_labels
# @return [::Google::Protobuf::Map{::String => ::String}]
# System labels to apply to Model Garden deployments.
Expand All @@ -280,6 +283,21 @@ class DeployedModel
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods

# Runtime status of the deployed model.
# @!attribute [r] message
# @return [::String]
# Output only. The latest deployed model's status message (if any).
# @!attribute [r] last_update_time
# @return [::Google::Protobuf::Timestamp]
# Output only. The time at which the status was last updated.
# @!attribute [r] available_replica_count
# @return [::Integer]
# Output only. The number of available replicas of the deployed model.
class Status
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
end

# @!attribute [rw] key
# @return [::String]
# @!attribute [rw] value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,14 @@ class MachineSpec
# quotas. Specifically, you will be charged for (max_replica_count *
# number of cores in the selected machine type) and (max_replica_count *
# number of GPUs per replica in the selected machine type).
# @!attribute [rw] required_replica_count
# @return [::Integer]
# Optional. Number of required available replicas for the deployment to
# succeed. This field is only needed when partial model deployment/mutation
# is desired. If set, the model deploy/mutate operation will succeed once
# available_replica_count reaches required_replica_count, and the rest of
# the replicas will be retried. If not set, the default
# required_replica_count will be min_replica_count.
# @!attribute [rw] autoscaling_metric_specs
# @return [::Array<::Google::Cloud::AIPlatform::V1::AutoscalingMetricSpec>]
# Immutable. The metric specifications that overrides a resource
Expand Down