@@ -27,7 +27,7 @@ option java_package = "com.google.cloud.aiplatform.v1beta1";
2727option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1" ;
2828option ruby_package = "Google::Cloud::AIPlatform::V1beta1" ;
2929
30- // Next ID: 5
30+ // The model monitoring configuration used for Batch Prediction Job.
3131message ModelMonitoringConfig {
3232 // Model monitoring objective config.
3333 repeated ModelMonitoringObjectiveConfig objective_configs = 3 ;
@@ -43,17 +43,24 @@ message ModelMonitoringConfig {
4343 // For models trained with Vertex AI, this field must be set as all the
4444 // fields in predict instance formatted as string.
4545 string analysis_instance_schema_uri = 4 ;
46+
47+ // A Google Cloud Storage location for batch prediction model monitoring to
48+ // dump statistics and anomalies.
49+ // If not provided, a folder will be created in customer project to hold
50+ // statistics and anomalies.
51+ GcsDestination stats_anomalies_base_directory = 5 ;
4652}
4753
48- // Next ID: 8
54+ // The objective configuration for model monitoring, including the information
55+ // needed to detect anomalies for one particular model.
4956message ModelMonitoringObjectiveConfig {
5057 // Training Dataset information.
5158 message TrainingDataset {
5259 oneof data_source {
5360 // The resource name of the Dataset used to train this Model.
5461 string dataset = 3 [(google.api.resource_reference ) = {
55- type : "aiplatform.googleapis.com/Dataset"
56- }];
62+ type : "aiplatform.googleapis.com/Dataset"
63+ }];
5764
5865 // The Google Cloud Storage uri of the unmanaged Dataset used to train
5966 // this Model.
@@ -128,8 +135,10 @@ message ModelMonitoringObjectiveConfig {
128135 // The config for integrating with Vertex Explainable AI. Only applicable if
129136 // the Model has explanation_spec populated.
130137 message ExplanationConfig {
131- // Output from [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob] for Model Monitoring baseline dataset,
132- // which can be used to generate baseline attribution scores.
138+ // Output from
139+ // [BatchPredictionJob][google.cloud.aiplatform.v1beta1.BatchPredictionJob]
140+ // for Model Monitoring baseline dataset, which can be used to generate
141+ // baseline attribution scores.
133142 message ExplanationBaseline {
134143 // The storage format of the predictions generated BatchPrediction job.
135144 enum PredictionFormat {
@@ -171,7 +180,8 @@ message ModelMonitoringObjectiveConfig {
171180 TrainingDataset training_dataset = 1 ;
172181
173182 // The config for skew between training data and prediction data.
174- TrainingPredictionSkewDetectionConfig training_prediction_skew_detection_config = 2 ;
183+ TrainingPredictionSkewDetectionConfig
184+ training_prediction_skew_detection_config = 2;
175185
176186 // The config for drift of prediction data.
177187 PredictionDriftDetectionConfig prediction_drift_detection_config = 3 ;
@@ -180,7 +190,6 @@ message ModelMonitoringObjectiveConfig {
180190 ExplanationConfig explanation_config = 5 ;
181191}
182192
183- // Next ID: 3
184193message ModelMonitoringAlertConfig {
185194 // The config for email alert.
186195 message EmailAlertConfig {
@@ -202,7 +211,6 @@ message ModelMonitoringAlertConfig {
202211}
203212
204213// The config for feature monitoring threshold.
205- // Next ID: 3
206214message ThresholdConfig {
207215 oneof threshold {
208216 // Specify a threshold value that can trigger the alert.
@@ -219,7 +227,6 @@ message ThresholdConfig {
219227
220228// Sampling Strategy for logging, can be for both training and prediction
221229// dataset.
222- // Next ID: 2
223230message SamplingStrategy {
224231 // Requests are randomly selected.
225232 message RandomSampleConfig {
0 commit comments