最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Get the monitoring activation status of my GCP Vertex AI endpoint with Python? - Stack Overflow

programmeradmin0浏览0评论

In a GCP project with Vertex AI endpoints already deployed, I want to know if the monitoring is enabled with the google-cloud-aiplatform library.

How can I do it ?

For more context, I ran following commands:

Command Line Interface

gcloud config set project <my_GCP_project_id>
gcloud config set billing/quota_project <my_GCP_project_id>
gcloud auth login
gcloud auth application-default login 

Python

from google.cloud import aiplatform
PROJECT_ID = <my_GCP_project_id>
LOCATION_ID = <my_GCP_location_id>
aiplatform.init(
    project = PROJECT_ID,
    location = LOCATION_ID,
)
last_endpoint = aiplatform.Endpoint.list(order_by="update_time desc")[0]
发布评论

评论列表(0)

  1. 暂无评论