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

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

Post by Guest »

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]

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post