繁体   English   中英

如何在 GCP 中为 ModelMonitoringAlertConfig 启用日志记录?

[英]How do I enable_logging for ModelMonitoringAlertConfig in GCP?

我正在尝试在enable_loggingModelMonitoringAlertConfig我尝试过:

from google.cloud import aiplatform_v1 as vertex_ai_beta
...
    alerting_config = vertex_ai_beta.ModelMonitoringAlertConfig(
    enable_logging=True,
    email_alert_config=vertex_ai_beta.ModelMonitoringAlertConfig.EmailAlertConfig(
        user_emails=NOTIFY_EMAILS
    )
)

给出:

 Unknown field for ModelMonitoringAlertConfig: enable_logging

但这表明它应该起作用。 我错过了什么?

(我也试过aiplatform_v1beta1 。)

enable_logging是在 1.8.1 中添加的,我使用的是 1.7.0。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM