Erhalten Sie den Überwachungsaktivierungsstatus meines GCP -Vertex -AI -Endpunkts mit Python?

Post a reply

Smilies
:) :( :oops: :chelo: :roll: :wink: :muza: :sorry: :angel: :read: *x) :clever:
View more smilies

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Erhalten Sie den Überwachungsaktivierungsstatus meines GCP -Vertex -AI -Endpunkts mit Python?

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]

Top