[英]How do I enable_logging for ModelMonitoringAlertConfig in GCP?
我正在尝试在enable_logging
中ModelMonitoringAlertConfig
我尝试过:
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.