by Guest » 07 Feb 2025, 12:49
In einem GCP-Projekt mit bereits bereitgestellten Vertex-AI-Endpunkten möchte ich wissen, ob die Überwachung mit der Google-Cloud-Diplattform-Bibliothek aktiviert ist. /p>
Für mehr Kontext habe ich die folgenden Befehle ausgeführt: < /p>
Befehlszeilenschnittstelle < /strong> < /p>
Code: Select all
gcloud config set project
gcloud config set billing/quota_project
gcloud auth login
gcloud auth application-default login
Python [/b]
Code: Select all
from google.cloud import aiplatform
PROJECT_ID =
LOCATION_ID =
aiplatform.init(
project = PROJECT_ID,
location = LOCATION_ID,
)
last_endpoint = aiplatform.Endpoint.list(order_by="update_time desc")[0]
In einem GCP-Projekt mit bereits bereitgestellten Vertex-AI-Endpunkten möchte ich wissen, ob die Überwachung mit der Google-Cloud-Diplattform-Bibliothek aktiviert ist. /p>
Für mehr Kontext habe ich die folgenden Befehle ausgeführt: < /p>
[b] Befehlszeilenschnittstelle < /strong> < /p>
[code]gcloud config set project
gcloud config set billing/quota_project
gcloud auth login
gcloud auth application-default login
[/code]
Python [/b]
[code]from google.cloud import aiplatform
PROJECT_ID =
LOCATION_ID =
aiplatform.init(
project = PROJECT_ID,
location = LOCATION_ID,
)
last_endpoint = aiplatform.Endpoint.list(order_by="update_time desc")[0]
[/code]