google-apis-aiplatform_v1beta1 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -87,6 +87,11 @@ module Google
87
87
  # @return [Array<Google::Apis::AiplatformV1beta1::CloudAiLargeModelsVisionMedia>]
88
88
  attr_accessor :generated_samples
89
89
 
90
+ # Returns rai error message for filtered videos.
91
+ # Corresponds to the JSON property `raiErrorMessage`
92
+ # @return [String]
93
+ attr_accessor :rai_error_message
94
+
90
95
  # Returns if any videos were filtered due to RAI policies.
91
96
  # Corresponds to the JSON property `raiMediaFilteredCount`
92
97
  # @return [Fixnum]
@@ -109,6 +114,7 @@ module Google
109
114
  # Update properties of this object
110
115
  def update!(**args)
111
116
  @generated_samples = args[:generated_samples] if args.key?(:generated_samples)
117
+ @rai_error_message = args[:rai_error_message] if args.key?(:rai_error_message)
112
118
  @rai_media_filtered_count = args[:rai_media_filtered_count] if args.key?(:rai_media_filtered_count)
113
119
  @rai_media_filtered_reasons = args[:rai_media_filtered_reasons] if args.key?(:rai_media_filtered_reasons)
114
120
  @rai_text_filtered_reason = args[:rai_text_filtered_reason] if args.key?(:rai_text_filtered_reason)
@@ -1906,11 +1912,6 @@ module Google
1906
1912
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigHttpBasicAuthConfig]
1907
1913
  attr_accessor :http_basic_auth_config
1908
1914
 
1909
- # Empty message, used to indicate no authentication for an endpoint.
1910
- # Corresponds to the JSON property `noAuth`
1911
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigNoAuth]
1912
- attr_accessor :no_auth
1913
-
1914
1915
  # Config for user oauth.
1915
1916
  # Corresponds to the JSON property `oauthConfig`
1916
1917
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1AuthConfigOauthConfig]
@@ -1931,7 +1932,6 @@ module Google
1931
1932
  @auth_type = args[:auth_type] if args.key?(:auth_type)
1932
1933
  @google_service_account_config = args[:google_service_account_config] if args.key?(:google_service_account_config)
1933
1934
  @http_basic_auth_config = args[:http_basic_auth_config] if args.key?(:http_basic_auth_config)
1934
- @no_auth = args[:no_auth] if args.key?(:no_auth)
1935
1935
  @oauth_config = args[:oauth_config] if args.key?(:oauth_config)
1936
1936
  @oidc_config = args[:oidc_config] if args.key?(:oidc_config)
1937
1937
  end
@@ -2021,19 +2021,6 @@ module Google
2021
2021
  end
2022
2022
  end
2023
2023
 
2024
- # Empty message, used to indicate no authentication for an endpoint.
2025
- class GoogleCloudAiplatformV1beta1AuthConfigNoAuth
2026
- include Google::Apis::Core::Hashable
2027
-
2028
- def initialize(**args)
2029
- update!(**args)
2030
- end
2031
-
2032
- # Update properties of this object
2033
- def update!(**args)
2034
- end
2035
- end
2036
-
2037
2024
  # Config for user oauth.
2038
2025
  class GoogleCloudAiplatformV1beta1AuthConfigOauthConfig
2039
2026
  include Google::Apis::Core::Hashable
@@ -4636,6 +4623,61 @@ module Google
4636
4623
  end
4637
4624
  end
4638
4625
 
4626
+ # Runtime operation information for ModelMonitoringService.CreateModelMonitor.
4627
+ class GoogleCloudAiplatformV1beta1CreateModelMonitorOperationMetadata
4628
+ include Google::Apis::Core::Hashable
4629
+
4630
+ # Generic Metadata shared by all operations.
4631
+ # Corresponds to the JSON property `genericMetadata`
4632
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
4633
+ attr_accessor :generic_metadata
4634
+
4635
+ def initialize(**args)
4636
+ update!(**args)
4637
+ end
4638
+
4639
+ # Update properties of this object
4640
+ def update!(**args)
4641
+ @generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
4642
+ end
4643
+ end
4644
+
4645
+ # Request message for ModelMonitoringService.CreateModelMonitoringJob.
4646
+ class GoogleCloudAiplatformV1beta1CreateModelMonitoringJobRequest
4647
+ include Google::Apis::Core::Hashable
4648
+
4649
+ # Represents a model monitoring job that analyze dataset using different
4650
+ # monitoring algorithm.
4651
+ # Corresponds to the JSON property `modelMonitoringJob`
4652
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob]
4653
+ attr_accessor :model_monitoring_job
4654
+
4655
+ # Optional. The ID to use for the Model Monitoring Job, which will become the
4656
+ # final component of the model monitoring job resource name. The maximum length
4657
+ # is 63 characters, and valid characters are `/^[a-z]([a-z0-9-]`0,61`[a-z0-9])?$/
4658
+ # `.
4659
+ # Corresponds to the JSON property `modelMonitoringJobId`
4660
+ # @return [String]
4661
+ attr_accessor :model_monitoring_job_id
4662
+
4663
+ # Required. The parent of the ModelMonitoringJob. Format: `projects/`project`/
4664
+ # locations/`location`/modelMoniitors/`model_monitor``
4665
+ # Corresponds to the JSON property `parent`
4666
+ # @return [String]
4667
+ attr_accessor :parent
4668
+
4669
+ def initialize(**args)
4670
+ update!(**args)
4671
+ end
4672
+
4673
+ # Update properties of this object
4674
+ def update!(**args)
4675
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
4676
+ @model_monitoring_job_id = args[:model_monitoring_job_id] if args.key?(:model_monitoring_job_id)
4677
+ @parent = args[:parent] if args.key?(:parent)
4678
+ end
4679
+ end
4680
+
4639
4681
  # Metadata information for NotebookService.CreateNotebookRuntimeTemplate.
4640
4682
  class GoogleCloudAiplatformV1beta1CreateNotebookRuntimeTemplateOperationMetadata
4641
4683
  include Google::Apis::Core::Hashable
@@ -6697,6 +6739,11 @@ module Google
6697
6739
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PredictRequestResponseLoggingConfig]
6698
6740
  attr_accessor :predict_request_response_logging_config
6699
6741
 
6742
+ # Represents configuration for private service connect.
6743
+ # Corresponds to the JSON property `privateServiceConnectConfig`
6744
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1PrivateServiceConnectConfig]
6745
+ attr_accessor :private_service_connect_config
6746
+
6700
6747
  # A map from a DeployedModel's ID to the percentage of this Endpoint's traffic
6701
6748
  # that should be forwarded to that DeployedModel. If a DeployedModel's ID is not
6702
6749
  # listed in this map, then it receives no traffic. The traffic percentage values
@@ -6729,6 +6776,7 @@ module Google
6729
6776
  @name = args[:name] if args.key?(:name)
6730
6777
  @network = args[:network] if args.key?(:network)
6731
6778
  @predict_request_response_logging_config = args[:predict_request_response_logging_config] if args.key?(:predict_request_response_logging_config)
6779
+ @private_service_connect_config = args[:private_service_connect_config] if args.key?(:private_service_connect_config)
6732
6780
  @traffic_split = args[:traffic_split] if args.key?(:traffic_split)
6733
6781
  @update_time = args[:update_time] if args.key?(:update_time)
6734
6782
  end
@@ -11663,7 +11711,7 @@ module Google
11663
11711
  attr_accessor :presence_penalty
11664
11712
 
11665
11713
  # Optional. Output response mimetype of the generated candidate text. Supported
11666
- # mimetype: `text/plain`: (default) Text output. `application/json`: JSON
11714
+ # mimetype: - `text/plain`: (default) Text output. - `application/json`: JSON
11667
11715
  # response in the candidates. The model needs to be prompted to output the
11668
11716
  # appropriate response type, otherwise the behavior is undefined. This is a
11669
11717
  # preview feature.
@@ -11763,28 +11811,6 @@ module Google
11763
11811
  end
11764
11812
  end
11765
11813
 
11766
- # Tool to retrieve public web data for grounding, powered by Google.
11767
- class GoogleCloudAiplatformV1beta1GoogleSearchRetrieval
11768
- include Google::Apis::Core::Hashable
11769
-
11770
- # Optional. Disable using the result from this tool in detecting grounding
11771
- # attribution. This does not affect how the result is given to the model for
11772
- # generation.
11773
- # Corresponds to the JSON property `disableAttribution`
11774
- # @return [Boolean]
11775
- attr_accessor :disable_attribution
11776
- alias_method :disable_attribution?, :disable_attribution
11777
-
11778
- def initialize(**args)
11779
- update!(**args)
11780
- end
11781
-
11782
- # Update properties of this object
11783
- def update!(**args)
11784
- @disable_attribution = args[:disable_attribution] if args.key?(:disable_attribution)
11785
- end
11786
- end
11787
-
11788
11814
  # Input for groundedness metric.
11789
11815
  class GoogleCloudAiplatformV1beta1GroundednessInput
11790
11816
  include Google::Apis::Core::Hashable
@@ -11886,103 +11912,10 @@ module Google
11886
11912
  end
11887
11913
  end
11888
11914
 
11889
- # Grounding attribution.
11890
- class GoogleCloudAiplatformV1beta1GroundingAttribution
11891
- include Google::Apis::Core::Hashable
11892
-
11893
- # Optional. Output only. Confidence score of the attribution. Ranges from 0 to 1.
11894
- # 1 is the most confident.
11895
- # Corresponds to the JSON property `confidenceScore`
11896
- # @return [Float]
11897
- attr_accessor :confidence_score
11898
-
11899
- # Attribution from context retrieved by the retrieval tools.
11900
- # Corresponds to the JSON property `retrievedContext`
11901
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext]
11902
- attr_accessor :retrieved_context
11903
-
11904
- # Segment of the content.
11905
- # Corresponds to the JSON property `segment`
11906
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Segment]
11907
- attr_accessor :segment
11908
-
11909
- # Attribution from the web.
11910
- # Corresponds to the JSON property `web`
11911
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttributionWeb]
11912
- attr_accessor :web
11913
-
11914
- def initialize(**args)
11915
- update!(**args)
11916
- end
11917
-
11918
- # Update properties of this object
11919
- def update!(**args)
11920
- @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
11921
- @retrieved_context = args[:retrieved_context] if args.key?(:retrieved_context)
11922
- @segment = args[:segment] if args.key?(:segment)
11923
- @web = args[:web] if args.key?(:web)
11924
- end
11925
- end
11926
-
11927
- # Attribution from context retrieved by the retrieval tools.
11928
- class GoogleCloudAiplatformV1beta1GroundingAttributionRetrievedContext
11929
- include Google::Apis::Core::Hashable
11930
-
11931
- # Output only. Title of the attribution.
11932
- # Corresponds to the JSON property `title`
11933
- # @return [String]
11934
- attr_accessor :title
11935
-
11936
- # Output only. URI reference of the attribution.
11937
- # Corresponds to the JSON property `uri`
11938
- # @return [String]
11939
- attr_accessor :uri
11940
-
11941
- def initialize(**args)
11942
- update!(**args)
11943
- end
11944
-
11945
- # Update properties of this object
11946
- def update!(**args)
11947
- @title = args[:title] if args.key?(:title)
11948
- @uri = args[:uri] if args.key?(:uri)
11949
- end
11950
- end
11951
-
11952
- # Attribution from the web.
11953
- class GoogleCloudAiplatformV1beta1GroundingAttributionWeb
11954
- include Google::Apis::Core::Hashable
11955
-
11956
- # Output only. Title of the attribution.
11957
- # Corresponds to the JSON property `title`
11958
- # @return [String]
11959
- attr_accessor :title
11960
-
11961
- # Output only. URI reference of the attribution.
11962
- # Corresponds to the JSON property `uri`
11963
- # @return [String]
11964
- attr_accessor :uri
11965
-
11966
- def initialize(**args)
11967
- update!(**args)
11968
- end
11969
-
11970
- # Update properties of this object
11971
- def update!(**args)
11972
- @title = args[:title] if args.key?(:title)
11973
- @uri = args[:uri] if args.key?(:uri)
11974
- end
11975
- end
11976
-
11977
11915
  # Metadata returned to client when grounding is enabled.
11978
11916
  class GoogleCloudAiplatformV1beta1GroundingMetadata
11979
11917
  include Google::Apis::Core::Hashable
11980
11918
 
11981
- # Optional. List of grounding attributions.
11982
- # Corresponds to the JSON property `groundingAttributions`
11983
- # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GroundingAttribution>]
11984
- attr_accessor :grounding_attributions
11985
-
11986
11919
  # Optional. Queries executed by the retrieval tools.
11987
11920
  # Corresponds to the JSON property `retrievalQueries`
11988
11921
  # @return [Array<String>]
@@ -11999,7 +11932,6 @@ module Google
11999
11932
 
12000
11933
  # Update properties of this object
12001
11934
  def update!(**args)
12002
- @grounding_attributions = args[:grounding_attributions] if args.key?(:grounding_attributions)
12003
11935
  @retrieval_queries = args[:retrieval_queries] if args.key?(:retrieval_queries)
12004
11936
  @web_search_queries = args[:web_search_queries] if args.key?(:web_search_queries)
12005
11937
  end
@@ -13965,6 +13897,57 @@ module Google
13965
13897
  end
13966
13898
  end
13967
13899
 
13900
+ # Response message for ModelMonitoringService.ListModelMonitoringJobs.
13901
+ class GoogleCloudAiplatformV1beta1ListModelMonitoringJobsResponse
13902
+ include Google::Apis::Core::Hashable
13903
+
13904
+ # A list of ModelMonitoringJobs that matches the specified filter in the request.
13905
+ # Corresponds to the JSON property `modelMonitoringJobs`
13906
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJob>]
13907
+ attr_accessor :model_monitoring_jobs
13908
+
13909
+ # The standard List next-page token.
13910
+ # Corresponds to the JSON property `nextPageToken`
13911
+ # @return [String]
13912
+ attr_accessor :next_page_token
13913
+
13914
+ def initialize(**args)
13915
+ update!(**args)
13916
+ end
13917
+
13918
+ # Update properties of this object
13919
+ def update!(**args)
13920
+ @model_monitoring_jobs = args[:model_monitoring_jobs] if args.key?(:model_monitoring_jobs)
13921
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13922
+ end
13923
+ end
13924
+
13925
+ # Response message for ModelMonitoringService.ListModelMonitors
13926
+ class GoogleCloudAiplatformV1beta1ListModelMonitorsResponse
13927
+ include Google::Apis::Core::Hashable
13928
+
13929
+ # List of ModelMonitor in the requested page.
13930
+ # Corresponds to the JSON property `modelMonitors`
13931
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitor>]
13932
+ attr_accessor :model_monitors
13933
+
13934
+ # A token to retrieve the next page of results. Pass to ListModelMonitorsRequest.
13935
+ # page_token to obtain that page.
13936
+ # Corresponds to the JSON property `nextPageToken`
13937
+ # @return [String]
13938
+ attr_accessor :next_page_token
13939
+
13940
+ def initialize(**args)
13941
+ update!(**args)
13942
+ end
13943
+
13944
+ # Update properties of this object
13945
+ def update!(**args)
13946
+ @model_monitors = args[:model_monitors] if args.key?(:model_monitors)
13947
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
13948
+ end
13949
+ end
13950
+
13968
13951
  # Response message for ModelService.ListModelVersions
13969
13952
  class GoogleCloudAiplatformV1beta1ListModelVersionsResponse
13970
13953
  include Google::Apis::Core::Hashable
@@ -14071,6 +14054,32 @@ module Google
14071
14054
  end
14072
14055
  end
14073
14056
 
14057
+ # Response message for [NotebookService.CreateNotebookExecutionJob]
14058
+ class GoogleCloudAiplatformV1beta1ListNotebookExecutionJobsResponse
14059
+ include Google::Apis::Core::Hashable
14060
+
14061
+ # A token to retrieve next page of results. Pass to ListNotebookExecutionJobs.
14062
+ # page_token to obtain that page.
14063
+ # Corresponds to the JSON property `nextPageToken`
14064
+ # @return [String]
14065
+ attr_accessor :next_page_token
14066
+
14067
+ # List of NotebookExecutionJobs in the requested page.
14068
+ # Corresponds to the JSON property `notebookExecutionJobs`
14069
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJob>]
14070
+ attr_accessor :notebook_execution_jobs
14071
+
14072
+ def initialize(**args)
14073
+ update!(**args)
14074
+ end
14075
+
14076
+ # Update properties of this object
14077
+ def update!(**args)
14078
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
14079
+ @notebook_execution_jobs = args[:notebook_execution_jobs] if args.key?(:notebook_execution_jobs)
14080
+ end
14081
+ end
14082
+
14074
14083
  # Response message for NotebookService.ListNotebookRuntimeTemplates.
14075
14084
  class GoogleCloudAiplatformV1beta1ListNotebookRuntimeTemplatesResponse
14076
14085
  include Google::Apis::Core::Hashable
@@ -16482,6 +16491,199 @@ module Google
16482
16491
  end
16483
16492
  end
16484
16493
 
16494
+ # Vertex AI Model Monitoring Service serves as a central hub for the analysis
16495
+ # and visualization of data quality and performance related to models.
16496
+ # ModelMonitor stands as a top level resource for overseeing your model
16497
+ # monitoring tasks.
16498
+ class GoogleCloudAiplatformV1beta1ModelMonitor
16499
+ include Google::Apis::Core::Hashable
16500
+
16501
+ # Output only. Timestamp when this ModelMonitor was created.
16502
+ # Corresponds to the JSON property `createTime`
16503
+ # @return [String]
16504
+ attr_accessor :create_time
16505
+
16506
+ # The display name of the ModelMonitor. The name can be up to 128 characters
16507
+ # long and can consist of any UTF-8.
16508
+ # Corresponds to the JSON property `displayName`
16509
+ # @return [String]
16510
+ attr_accessor :display_name
16511
+
16512
+ # Specification of Model explanation.
16513
+ # Corresponds to the JSON property `explanationSpec`
16514
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplanationSpec]
16515
+ attr_accessor :explanation_spec
16516
+
16517
+ # The Model Monitoring Schema definition.
16518
+ # Corresponds to the JSON property `modelMonitoringSchema`
16519
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchema]
16520
+ attr_accessor :model_monitoring_schema
16521
+
16522
+ # The monitoring target refers to the entity that is subject to analysis. e.g.
16523
+ # Vertex AI Model version.
16524
+ # Corresponds to the JSON property `modelMonitoringTarget`
16525
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTarget]
16526
+ attr_accessor :model_monitoring_target
16527
+
16528
+ # Immutable. Resource name of the ModelMonitor. Format: `projects/`project`/
16529
+ # locations/`location`/modelMonitors/`model_monitor``.
16530
+ # Corresponds to the JSON property `name`
16531
+ # @return [String]
16532
+ attr_accessor :name
16533
+
16534
+ # Notification spec(email, notification channel) for model monitoring statistics/
16535
+ # alerts.
16536
+ # Corresponds to the JSON property `notificationSpec`
16537
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec]
16538
+ attr_accessor :notification_spec
16539
+
16540
+ # Specification for the export destination of monitoring results, including
16541
+ # metrics, logs, etc.
16542
+ # Corresponds to the JSON property `outputSpec`
16543
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec]
16544
+ attr_accessor :output_spec
16545
+
16546
+ # Tabular monitoring objective.
16547
+ # Corresponds to the JSON property `tabularObjective`
16548
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective]
16549
+ attr_accessor :tabular_objective
16550
+
16551
+ # Model monitoring data input spec.
16552
+ # Corresponds to the JSON property `trainingDataset`
16553
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInput]
16554
+ attr_accessor :training_dataset
16555
+
16556
+ # Output only. Timestamp when this ModelMonitor was updated most recently.
16557
+ # Corresponds to the JSON property `updateTime`
16558
+ # @return [String]
16559
+ attr_accessor :update_time
16560
+
16561
+ def initialize(**args)
16562
+ update!(**args)
16563
+ end
16564
+
16565
+ # Update properties of this object
16566
+ def update!(**args)
16567
+ @create_time = args[:create_time] if args.key?(:create_time)
16568
+ @display_name = args[:display_name] if args.key?(:display_name)
16569
+ @explanation_spec = args[:explanation_spec] if args.key?(:explanation_spec)
16570
+ @model_monitoring_schema = args[:model_monitoring_schema] if args.key?(:model_monitoring_schema)
16571
+ @model_monitoring_target = args[:model_monitoring_target] if args.key?(:model_monitoring_target)
16572
+ @name = args[:name] if args.key?(:name)
16573
+ @notification_spec = args[:notification_spec] if args.key?(:notification_spec)
16574
+ @output_spec = args[:output_spec] if args.key?(:output_spec)
16575
+ @tabular_objective = args[:tabular_objective] if args.key?(:tabular_objective)
16576
+ @training_dataset = args[:training_dataset] if args.key?(:training_dataset)
16577
+ @update_time = args[:update_time] if args.key?(:update_time)
16578
+ end
16579
+ end
16580
+
16581
+ # The monitoring target refers to the entity that is subject to analysis. e.g.
16582
+ # Vertex AI Model version.
16583
+ class GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTarget
16584
+ include Google::Apis::Core::Hashable
16585
+
16586
+ # Model in Vertex AI Model Registry.
16587
+ # Corresponds to the JSON property `vertexModel`
16588
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTargetVertexModelSource]
16589
+ attr_accessor :vertex_model
16590
+
16591
+ def initialize(**args)
16592
+ update!(**args)
16593
+ end
16594
+
16595
+ # Update properties of this object
16596
+ def update!(**args)
16597
+ @vertex_model = args[:vertex_model] if args.key?(:vertex_model)
16598
+ end
16599
+ end
16600
+
16601
+ # Model in Vertex AI Model Registry.
16602
+ class GoogleCloudAiplatformV1beta1ModelMonitorModelMonitoringTargetVertexModelSource
16603
+ include Google::Apis::Core::Hashable
16604
+
16605
+ # Model resource name. Format: projects/`project`/locations/`location`/models/`
16606
+ # model`.
16607
+ # Corresponds to the JSON property `model`
16608
+ # @return [String]
16609
+ attr_accessor :model
16610
+
16611
+ # Model version id.
16612
+ # Corresponds to the JSON property `modelVersionId`
16613
+ # @return [String]
16614
+ attr_accessor :model_version_id
16615
+
16616
+ def initialize(**args)
16617
+ update!(**args)
16618
+ end
16619
+
16620
+ # Update properties of this object
16621
+ def update!(**args)
16622
+ @model = args[:model] if args.key?(:model)
16623
+ @model_version_id = args[:model_version_id] if args.key?(:model_version_id)
16624
+ end
16625
+ end
16626
+
16627
+ # Represents a single monitoring alert. This is currently used in the
16628
+ # SearchModelMonitoringAlerts api, thus the alert wrapped in this message
16629
+ # belongs to the resource asked in the request.
16630
+ class GoogleCloudAiplatformV1beta1ModelMonitoringAlert
16631
+ include Google::Apis::Core::Hashable
16632
+
16633
+ # Alert creation time.
16634
+ # Corresponds to the JSON property `alertTime`
16635
+ # @return [String]
16636
+ attr_accessor :alert_time
16637
+
16638
+ # Represents a single model monitoring anomaly.
16639
+ # Corresponds to the JSON property `anomaly`
16640
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAnomaly]
16641
+ attr_accessor :anomaly
16642
+
16643
+ # One of the supported monitoring objectives: `raw-feature-drift` `prediction-
16644
+ # output-drift` `feature-attribution`
16645
+ # Corresponds to the JSON property `objectiveType`
16646
+ # @return [String]
16647
+ attr_accessor :objective_type
16648
+
16649
+ # The stats name.
16650
+ # Corresponds to the JSON property `statsName`
16651
+ # @return [String]
16652
+ attr_accessor :stats_name
16653
+
16654
+ def initialize(**args)
16655
+ update!(**args)
16656
+ end
16657
+
16658
+ # Update properties of this object
16659
+ def update!(**args)
16660
+ @alert_time = args[:alert_time] if args.key?(:alert_time)
16661
+ @anomaly = args[:anomaly] if args.key?(:anomaly)
16662
+ @objective_type = args[:objective_type] if args.key?(:objective_type)
16663
+ @stats_name = args[:stats_name] if args.key?(:stats_name)
16664
+ end
16665
+ end
16666
+
16667
+ # Monitoring alert triggered condition.
16668
+ class GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition
16669
+ include Google::Apis::Core::Hashable
16670
+
16671
+ # A condition that compares a stats value against a threshold. Alert will be
16672
+ # triggered if value above the threshold.
16673
+ # Corresponds to the JSON property `threshold`
16674
+ # @return [Float]
16675
+ attr_accessor :threshold
16676
+
16677
+ def initialize(**args)
16678
+ update!(**args)
16679
+ end
16680
+
16681
+ # Update properties of this object
16682
+ def update!(**args)
16683
+ @threshold = args[:threshold] if args.key?(:threshold)
16684
+ end
16685
+ end
16686
+
16485
16687
  # The alert config for model monitoring.
16486
16688
  class GoogleCloudAiplatformV1beta1ModelMonitoringAlertConfig
16487
16689
  include Google::Apis::Core::Hashable
@@ -16537,6 +16739,81 @@ module Google
16537
16739
  end
16538
16740
  end
16539
16741
 
16742
+ # Represents a single model monitoring anomaly.
16743
+ class GoogleCloudAiplatformV1beta1ModelMonitoringAnomaly
16744
+ include Google::Apis::Core::Hashable
16745
+
16746
+ # Algorithm used to calculated the metrics, eg: jensen_shannon_divergence,
16747
+ # l_infinity.
16748
+ # Corresponds to the JSON property `algorithm`
16749
+ # @return [String]
16750
+ attr_accessor :algorithm
16751
+
16752
+ # Model monitoring job resource name.
16753
+ # Corresponds to the JSON property `modelMonitoringJob`
16754
+ # @return [String]
16755
+ attr_accessor :model_monitoring_job
16756
+
16757
+ # Tabular anomaly details.
16758
+ # Corresponds to the JSON property `tabularAnomaly`
16759
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAnomalyTabularAnomaly]
16760
+ attr_accessor :tabular_anomaly
16761
+
16762
+ def initialize(**args)
16763
+ update!(**args)
16764
+ end
16765
+
16766
+ # Update properties of this object
16767
+ def update!(**args)
16768
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
16769
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
16770
+ @tabular_anomaly = args[:tabular_anomaly] if args.key?(:tabular_anomaly)
16771
+ end
16772
+ end
16773
+
16774
+ # Tabular anomaly details.
16775
+ class GoogleCloudAiplatformV1beta1ModelMonitoringAnomalyTabularAnomaly
16776
+ include Google::Apis::Core::Hashable
16777
+
16778
+ # Anomaly body.
16779
+ # Corresponds to the JSON property `anomaly`
16780
+ # @return [Object]
16781
+ attr_accessor :anomaly
16782
+
16783
+ # Additional anomaly information. e.g. Google Cloud Storage uri.
16784
+ # Corresponds to the JSON property `anomalyUri`
16785
+ # @return [String]
16786
+ attr_accessor :anomaly_uri
16787
+
16788
+ # Monitoring alert triggered condition.
16789
+ # Corresponds to the JSON property `condition`
16790
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
16791
+ attr_accessor :condition
16792
+
16793
+ # Overview of this anomaly.
16794
+ # Corresponds to the JSON property `summary`
16795
+ # @return [String]
16796
+ attr_accessor :summary
16797
+
16798
+ # The time the anomaly was triggered.
16799
+ # Corresponds to the JSON property `triggerTime`
16800
+ # @return [String]
16801
+ attr_accessor :trigger_time
16802
+
16803
+ def initialize(**args)
16804
+ update!(**args)
16805
+ end
16806
+
16807
+ # Update properties of this object
16808
+ def update!(**args)
16809
+ @anomaly = args[:anomaly] if args.key?(:anomaly)
16810
+ @anomaly_uri = args[:anomaly_uri] if args.key?(:anomaly_uri)
16811
+ @condition = args[:condition] if args.key?(:condition)
16812
+ @summary = args[:summary] if args.key?(:summary)
16813
+ @trigger_time = args[:trigger_time] if args.key?(:trigger_time)
16814
+ end
16815
+ end
16816
+
16540
16817
  # The model monitoring configuration used for Batch Prediction Job.
16541
16818
  class GoogleCloudAiplatformV1beta1ModelMonitoringConfig
16542
16819
  include Google::Apis::Core::Hashable
@@ -16579,6 +16856,439 @@ module Google
16579
16856
  end
16580
16857
  end
16581
16858
 
16859
+ # Model monitoring data input spec.
16860
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInput
16861
+ include Google::Apis::Core::Hashable
16862
+
16863
+ # Data from Vertex AI Batch prediction job output.
16864
+ # Corresponds to the JSON property `batchPredictionOutput`
16865
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputBatchPredictionOutput]
16866
+ attr_accessor :batch_prediction_output
16867
+
16868
+ # Input dataset spec.
16869
+ # Corresponds to the JSON property `columnizedDataset`
16870
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDataset]
16871
+ attr_accessor :columnized_dataset
16872
+
16873
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
16874
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
16875
+ # When the start equals the end, the interval is empty (matches no time). When
16876
+ # both start and end are unspecified, the interval matches any time.
16877
+ # Corresponds to the JSON property `timeInterval`
16878
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
16879
+ attr_accessor :time_interval
16880
+
16881
+ # Time offset setting.
16882
+ # Corresponds to the JSON property `timeOffset`
16883
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputTimeOffset]
16884
+ attr_accessor :time_offset
16885
+
16886
+ # Data from Vertex AI Endpoint request response logging.
16887
+ # Corresponds to the JSON property `vertexEndpointLogs`
16888
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputVertexEndpointLogs]
16889
+ attr_accessor :vertex_endpoint_logs
16890
+
16891
+ def initialize(**args)
16892
+ update!(**args)
16893
+ end
16894
+
16895
+ # Update properties of this object
16896
+ def update!(**args)
16897
+ @batch_prediction_output = args[:batch_prediction_output] if args.key?(:batch_prediction_output)
16898
+ @columnized_dataset = args[:columnized_dataset] if args.key?(:columnized_dataset)
16899
+ @time_interval = args[:time_interval] if args.key?(:time_interval)
16900
+ @time_offset = args[:time_offset] if args.key?(:time_offset)
16901
+ @vertex_endpoint_logs = args[:vertex_endpoint_logs] if args.key?(:vertex_endpoint_logs)
16902
+ end
16903
+ end
16904
+
16905
+ # Data from Vertex AI Batch prediction job output.
16906
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputBatchPredictionOutput
16907
+ include Google::Apis::Core::Hashable
16908
+
16909
+ # Vertex AI Batch prediction job resource name. The job must match the model
16910
+ # version specified in [ModelMonitor].[model_monitoring_target].
16911
+ # Corresponds to the JSON property `batchPredictionJob`
16912
+ # @return [String]
16913
+ attr_accessor :batch_prediction_job
16914
+
16915
+ def initialize(**args)
16916
+ update!(**args)
16917
+ end
16918
+
16919
+ # Update properties of this object
16920
+ def update!(**args)
16921
+ @batch_prediction_job = args[:batch_prediction_job] if args.key?(:batch_prediction_job)
16922
+ end
16923
+ end
16924
+
16925
+ # Input dataset spec.
16926
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDataset
16927
+ include Google::Apis::Core::Hashable
16928
+
16929
+ # Dataset spec for data sotred in BigQuery.
16930
+ # Corresponds to the JSON property `bigquerySource`
16931
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringBigQuerySource]
16932
+ attr_accessor :bigquery_source
16933
+
16934
+ # Dataset spec for data stored in Google Cloud Storage.
16935
+ # Corresponds to the JSON property `gcsSource`
16936
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringGcsSource]
16937
+ attr_accessor :gcs_source
16938
+
16939
+ # The timestamp field. Usually for serving data.
16940
+ # Corresponds to the JSON property `timestampField`
16941
+ # @return [String]
16942
+ attr_accessor :timestamp_field
16943
+
16944
+ # Resource name of the Vertex AI managed dataset.
16945
+ # Corresponds to the JSON property `vertexDataset`
16946
+ # @return [String]
16947
+ attr_accessor :vertex_dataset
16948
+
16949
+ def initialize(**args)
16950
+ update!(**args)
16951
+ end
16952
+
16953
+ # Update properties of this object
16954
+ def update!(**args)
16955
+ @bigquery_source = args[:bigquery_source] if args.key?(:bigquery_source)
16956
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
16957
+ @timestamp_field = args[:timestamp_field] if args.key?(:timestamp_field)
16958
+ @vertex_dataset = args[:vertex_dataset] if args.key?(:vertex_dataset)
16959
+ end
16960
+ end
16961
+
16962
+ # Dataset spec for data sotred in BigQuery.
16963
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringBigQuerySource
16964
+ include Google::Apis::Core::Hashable
16965
+
16966
+ # Standard SQL to be used instead of the `table_uri`.
16967
+ # Corresponds to the JSON property `query`
16968
+ # @return [String]
16969
+ attr_accessor :query
16970
+
16971
+ # BigQuery URI to a table, up to 2000 characters long. All the columns in the
16972
+ # table will be selected. Accepted forms: * BigQuery path. For example: `bq://
16973
+ # projectId.bqDatasetId.bqTableId`.
16974
+ # Corresponds to the JSON property `tableUri`
16975
+ # @return [String]
16976
+ attr_accessor :table_uri
16977
+
16978
+ def initialize(**args)
16979
+ update!(**args)
16980
+ end
16981
+
16982
+ # Update properties of this object
16983
+ def update!(**args)
16984
+ @query = args[:query] if args.key?(:query)
16985
+ @table_uri = args[:table_uri] if args.key?(:table_uri)
16986
+ end
16987
+ end
16988
+
16989
+ # Dataset spec for data stored in Google Cloud Storage.
16990
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputModelMonitoringDatasetModelMonitoringGcsSource
16991
+ include Google::Apis::Core::Hashable
16992
+
16993
+ # Data format of the dataset.
16994
+ # Corresponds to the JSON property `format`
16995
+ # @return [String]
16996
+ attr_accessor :format
16997
+
16998
+ # Google Cloud Storage URI to the input file(s). May contain wildcards. For more
16999
+ # information on wildcards, see https://cloud.google.com/storage/docs/gsutil/
17000
+ # addlhelp/WildcardNames.
17001
+ # Corresponds to the JSON property `gcsUri`
17002
+ # @return [String]
17003
+ attr_accessor :gcs_uri
17004
+
17005
+ def initialize(**args)
17006
+ update!(**args)
17007
+ end
17008
+
17009
+ # Update properties of this object
17010
+ def update!(**args)
17011
+ @format = args[:format] if args.key?(:format)
17012
+ @gcs_uri = args[:gcs_uri] if args.key?(:gcs_uri)
17013
+ end
17014
+ end
17015
+
17016
+ # Time offset setting.
17017
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputTimeOffset
17018
+ include Google::Apis::Core::Hashable
17019
+
17020
+ # [offset] is the time difference from the cut-off time. For scheduled jobs, the
17021
+ # cut-off time is the scheduled time. For non-scheduled jobs, it's the time when
17022
+ # the job was created. Currently we support the following format: 'w|W': Week, '
17023
+ # d|D': Day, 'h|H': Hour E.g. '1h' stands for 1 hour, '2d' stands for 2 days.
17024
+ # Corresponds to the JSON property `offset`
17025
+ # @return [String]
17026
+ attr_accessor :offset
17027
+
17028
+ # [window] refers to the scope of data selected for analysis. It allows you to
17029
+ # specify the quantity of data you wish to examine. Currently we support the
17030
+ # following format: 'w|W': Week, 'd|D': Day, 'h|H': Hour E.g. '1h' stands for 1
17031
+ # hour, '2d' stands for 2 days.
17032
+ # Corresponds to the JSON property `window`
17033
+ # @return [String]
17034
+ attr_accessor :window
17035
+
17036
+ def initialize(**args)
17037
+ update!(**args)
17038
+ end
17039
+
17040
+ # Update properties of this object
17041
+ def update!(**args)
17042
+ @offset = args[:offset] if args.key?(:offset)
17043
+ @window = args[:window] if args.key?(:window)
17044
+ end
17045
+ end
17046
+
17047
+ # Data from Vertex AI Endpoint request response logging.
17048
+ class GoogleCloudAiplatformV1beta1ModelMonitoringInputVertexEndpointLogs
17049
+ include Google::Apis::Core::Hashable
17050
+
17051
+ # List of endpoint resource names. The endpoints must enable the logging with
17052
+ # the [Endpoint].[request_response_logging_config], and must contain the
17053
+ # deployed model corresponding to the model version specified in [ModelMonitor].[
17054
+ # model_monitoring_target].
17055
+ # Corresponds to the JSON property `endpoints`
17056
+ # @return [Array<String>]
17057
+ attr_accessor :endpoints
17058
+
17059
+ def initialize(**args)
17060
+ update!(**args)
17061
+ end
17062
+
17063
+ # Update properties of this object
17064
+ def update!(**args)
17065
+ @endpoints = args[:endpoints] if args.key?(:endpoints)
17066
+ end
17067
+ end
17068
+
17069
+ # Represents a model monitoring job that analyze dataset using different
17070
+ # monitoring algorithm.
17071
+ class GoogleCloudAiplatformV1beta1ModelMonitoringJob
17072
+ include Google::Apis::Core::Hashable
17073
+
17074
+ # Output only. Timestamp when this ModelMonitoringJob was created.
17075
+ # Corresponds to the JSON property `createTime`
17076
+ # @return [String]
17077
+ attr_accessor :create_time
17078
+
17079
+ # The display name of the ModelMonitoringJob. The name can be up to 128
17080
+ # characters long and can consist of any UTF-8.
17081
+ # Corresponds to the JSON property `displayName`
17082
+ # @return [String]
17083
+ attr_accessor :display_name
17084
+
17085
+ # Represent the execution details of the job.
17086
+ # Corresponds to the JSON property `jobExecutionDetail`
17087
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetail]
17088
+ attr_accessor :job_execution_detail
17089
+
17090
+ # Monitoring monitoring job spec. It outlines the specifications for monitoring
17091
+ # objectives, notifications, and result exports.
17092
+ # Corresponds to the JSON property `modelMonitoringSpec`
17093
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSpec]
17094
+ attr_accessor :model_monitoring_spec
17095
+
17096
+ # Output only. Resource name of a ModelMonitoringJob. Format: `projects/`
17097
+ # project_id`/locations/`location_id`/modelMonitors/`model_monitor_id`/
17098
+ # modelMonitoringJobs/`model_monitoring_job_id``
17099
+ # Corresponds to the JSON property `name`
17100
+ # @return [String]
17101
+ attr_accessor :name
17102
+
17103
+ # Output only. Schedule resource name. It will only appear when this job is
17104
+ # triggered by a schedule.
17105
+ # Corresponds to the JSON property `schedule`
17106
+ # @return [String]
17107
+ attr_accessor :schedule
17108
+
17109
+ # Output only. Timestamp when this ModelMonitoringJob was scheduled. It will
17110
+ # only appear when this job is triggered by a schedule.
17111
+ # Corresponds to the JSON property `scheduleTime`
17112
+ # @return [String]
17113
+ attr_accessor :schedule_time
17114
+
17115
+ # Output only. The state of the monitoring job. * When the job is still creating,
17116
+ # the state will be 'JOB_STATE_PENDING'. * Once the job is successfully created,
17117
+ # the state will be 'JOB_STATE_RUNNING'. * Once the job is finished, the state
17118
+ # will be one of 'JOB_STATE_FAILED', 'JOB_STATE_SUCCEEDED', '
17119
+ # JOB_STATE_PARTIALLY_SUCCEEDED'.
17120
+ # Corresponds to the JSON property `state`
17121
+ # @return [String]
17122
+ attr_accessor :state
17123
+
17124
+ # Output only. Timestamp when this ModelMonitoringJob was updated most recently.
17125
+ # Corresponds to the JSON property `updateTime`
17126
+ # @return [String]
17127
+ attr_accessor :update_time
17128
+
17129
+ def initialize(**args)
17130
+ update!(**args)
17131
+ end
17132
+
17133
+ # Update properties of this object
17134
+ def update!(**args)
17135
+ @create_time = args[:create_time] if args.key?(:create_time)
17136
+ @display_name = args[:display_name] if args.key?(:display_name)
17137
+ @job_execution_detail = args[:job_execution_detail] if args.key?(:job_execution_detail)
17138
+ @model_monitoring_spec = args[:model_monitoring_spec] if args.key?(:model_monitoring_spec)
17139
+ @name = args[:name] if args.key?(:name)
17140
+ @schedule = args[:schedule] if args.key?(:schedule)
17141
+ @schedule_time = args[:schedule_time] if args.key?(:schedule_time)
17142
+ @state = args[:state] if args.key?(:state)
17143
+ @update_time = args[:update_time] if args.key?(:update_time)
17144
+ end
17145
+ end
17146
+
17147
+ # Represent the execution details of the job.
17148
+ class GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetail
17149
+ include Google::Apis::Core::Hashable
17150
+
17151
+ # Processed baseline datasets.
17152
+ # Corresponds to the JSON property `baselineDatasets`
17153
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetailProcessedDataset>]
17154
+ attr_accessor :baseline_datasets
17155
+
17156
+ # The `Status` type defines a logical error model that is suitable for different
17157
+ # programming environments, including REST APIs and RPC APIs. It is used by [
17158
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
17159
+ # data: error code, error message, and error details. You can find out more
17160
+ # about this error model and how to work with it in the [API Design Guide](https:
17161
+ # //cloud.google.com/apis/design/errors).
17162
+ # Corresponds to the JSON property `error`
17163
+ # @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
17164
+ attr_accessor :error
17165
+
17166
+ # Status of data processing for each monitoring objective. Key is the objective.
17167
+ # Corresponds to the JSON property `objectiveStatus`
17168
+ # @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleRpcStatus>]
17169
+ attr_accessor :objective_status
17170
+
17171
+ # Processed target datasets.
17172
+ # Corresponds to the JSON property `targetDatasets`
17173
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetailProcessedDataset>]
17174
+ attr_accessor :target_datasets
17175
+
17176
+ def initialize(**args)
17177
+ update!(**args)
17178
+ end
17179
+
17180
+ # Update properties of this object
17181
+ def update!(**args)
17182
+ @baseline_datasets = args[:baseline_datasets] if args.key?(:baseline_datasets)
17183
+ @error = args[:error] if args.key?(:error)
17184
+ @objective_status = args[:objective_status] if args.key?(:objective_status)
17185
+ @target_datasets = args[:target_datasets] if args.key?(:target_datasets)
17186
+ end
17187
+ end
17188
+
17189
+ # Processed dataset information.
17190
+ class GoogleCloudAiplatformV1beta1ModelMonitoringJobExecutionDetailProcessedDataset
17191
+ include Google::Apis::Core::Hashable
17192
+
17193
+ # Actual data location of the processed dataset.
17194
+ # Corresponds to the JSON property `location`
17195
+ # @return [String]
17196
+ attr_accessor :location
17197
+
17198
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
17199
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
17200
+ # When the start equals the end, the interval is empty (matches no time). When
17201
+ # both start and end are unspecified, the interval matches any time.
17202
+ # Corresponds to the JSON property `timeRange`
17203
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
17204
+ attr_accessor :time_range
17205
+
17206
+ def initialize(**args)
17207
+ update!(**args)
17208
+ end
17209
+
17210
+ # Update properties of this object
17211
+ def update!(**args)
17212
+ @location = args[:location] if args.key?(:location)
17213
+ @time_range = args[:time_range] if args.key?(:time_range)
17214
+ end
17215
+ end
17216
+
17217
+ # Notification spec(email, notification channel) for model monitoring statistics/
17218
+ # alerts.
17219
+ class GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec
17220
+ include Google::Apis::Core::Hashable
17221
+
17222
+ # The config for email alerts.
17223
+ # Corresponds to the JSON property `emailConfig`
17224
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecEmailConfig]
17225
+ attr_accessor :email_config
17226
+
17227
+ # Dump the anomalies to Cloud Logging. The anomalies will be put to json payload
17228
+ # encoded from proto google.cloud.aiplatform.logging.
17229
+ # ModelMonitoringAnomaliesLogEntry. This can be further sinked to Pub/Sub or any
17230
+ # other services supported by Cloud Logging.
17231
+ # Corresponds to the JSON property `enableCloudLogging`
17232
+ # @return [Boolean]
17233
+ attr_accessor :enable_cloud_logging
17234
+ alias_method :enable_cloud_logging?, :enable_cloud_logging
17235
+
17236
+ # Notification channel config.
17237
+ # Corresponds to the JSON property `notificationChannelConfigs`
17238
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecNotificationChannelConfig>]
17239
+ attr_accessor :notification_channel_configs
17240
+
17241
+ def initialize(**args)
17242
+ update!(**args)
17243
+ end
17244
+
17245
+ # Update properties of this object
17246
+ def update!(**args)
17247
+ @email_config = args[:email_config] if args.key?(:email_config)
17248
+ @enable_cloud_logging = args[:enable_cloud_logging] if args.key?(:enable_cloud_logging)
17249
+ @notification_channel_configs = args[:notification_channel_configs] if args.key?(:notification_channel_configs)
17250
+ end
17251
+ end
17252
+
17253
+ # The config for email alerts.
17254
+ class GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecEmailConfig
17255
+ include Google::Apis::Core::Hashable
17256
+
17257
+ # The email addresses to send the alerts.
17258
+ # Corresponds to the JSON property `userEmails`
17259
+ # @return [Array<String>]
17260
+ attr_accessor :user_emails
17261
+
17262
+ def initialize(**args)
17263
+ update!(**args)
17264
+ end
17265
+
17266
+ # Update properties of this object
17267
+ def update!(**args)
17268
+ @user_emails = args[:user_emails] if args.key?(:user_emails)
17269
+ end
17270
+ end
17271
+
17272
+ # Google Cloud Notification Channel config.
17273
+ class GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecNotificationChannelConfig
17274
+ include Google::Apis::Core::Hashable
17275
+
17276
+ # Resource names of the NotificationChannels. Must be of the format `projects//
17277
+ # notificationChannels/`
17278
+ # Corresponds to the JSON property `notificationChannel`
17279
+ # @return [String]
17280
+ attr_accessor :notification_channel
17281
+
17282
+ def initialize(**args)
17283
+ update!(**args)
17284
+ end
17285
+
17286
+ # Update properties of this object
17287
+ def update!(**args)
17288
+ @notification_channel = args[:notification_channel] if args.key?(:notification_channel)
17289
+ end
17290
+ end
17291
+
16582
17292
  # The objective configuration for model monitoring, including the information
16583
17293
  # needed to detect anomalies for one particular model.
16584
17294
  class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveConfig
@@ -16805,6 +17515,344 @@ module Google
16805
17515
  end
16806
17516
  end
16807
17517
 
17518
+ # Monitoring objectives spec.
17519
+ class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpec
17520
+ include Google::Apis::Core::Hashable
17521
+
17522
+ # Model monitoring data input spec.
17523
+ # Corresponds to the JSON property `baselineDataset`
17524
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInput]
17525
+ attr_accessor :baseline_dataset
17526
+
17527
+ # Specification of Model explanation.
17528
+ # Corresponds to the JSON property `explanationSpec`
17529
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ExplanationSpec]
17530
+ attr_accessor :explanation_spec
17531
+
17532
+ # Tabular monitoring objective.
17533
+ # Corresponds to the JSON property `tabularObjective`
17534
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective]
17535
+ attr_accessor :tabular_objective
17536
+
17537
+ # Model monitoring data input spec.
17538
+ # Corresponds to the JSON property `targetDataset`
17539
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringInput]
17540
+ attr_accessor :target_dataset
17541
+
17542
+ def initialize(**args)
17543
+ update!(**args)
17544
+ end
17545
+
17546
+ # Update properties of this object
17547
+ def update!(**args)
17548
+ @baseline_dataset = args[:baseline_dataset] if args.key?(:baseline_dataset)
17549
+ @explanation_spec = args[:explanation_spec] if args.key?(:explanation_spec)
17550
+ @tabular_objective = args[:tabular_objective] if args.key?(:tabular_objective)
17551
+ @target_dataset = args[:target_dataset] if args.key?(:target_dataset)
17552
+ end
17553
+ end
17554
+
17555
+ # Data drift monitoring spec. Data drift measures the distribution distance
17556
+ # between the current dataset and a baseline dataset. A typical use case is to
17557
+ # detect data drift between the recent production serving dataset and the
17558
+ # training dataset, or to compare the recent production dataset with a dataset
17559
+ # from a previous period.
17560
+ class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecDataDriftSpec
17561
+ include Google::Apis::Core::Hashable
17562
+
17563
+ # Supported metrics type: * l_infinity * jensen_shannon_divergence
17564
+ # Corresponds to the JSON property `categoricalMetricType`
17565
+ # @return [String]
17566
+ attr_accessor :categorical_metric_type
17567
+
17568
+ # Monitoring alert triggered condition.
17569
+ # Corresponds to the JSON property `defaultCategoricalAlertCondition`
17570
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
17571
+ attr_accessor :default_categorical_alert_condition
17572
+
17573
+ # Monitoring alert triggered condition.
17574
+ # Corresponds to the JSON property `defaultNumericAlertCondition`
17575
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
17576
+ attr_accessor :default_numeric_alert_condition
17577
+
17578
+ # Per feature alert condition will override default alert condition.
17579
+ # Corresponds to the JSON property `featureAlertConditions`
17580
+ # @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition>]
17581
+ attr_accessor :feature_alert_conditions
17582
+
17583
+ # Feature names / Prediction output names interested in monitoring. These should
17584
+ # be a subset of the input feature names or prediction output names specified in
17585
+ # the monitoring schema. If the field is not specified all features / prediction
17586
+ # outputs outlied in the monitoring schema will be used.
17587
+ # Corresponds to the JSON property `features`
17588
+ # @return [Array<String>]
17589
+ attr_accessor :features
17590
+
17591
+ # Supported metrics type: * jensen_shannon_divergence
17592
+ # Corresponds to the JSON property `numericMetricType`
17593
+ # @return [String]
17594
+ attr_accessor :numeric_metric_type
17595
+
17596
+ def initialize(**args)
17597
+ update!(**args)
17598
+ end
17599
+
17600
+ # Update properties of this object
17601
+ def update!(**args)
17602
+ @categorical_metric_type = args[:categorical_metric_type] if args.key?(:categorical_metric_type)
17603
+ @default_categorical_alert_condition = args[:default_categorical_alert_condition] if args.key?(:default_categorical_alert_condition)
17604
+ @default_numeric_alert_condition = args[:default_numeric_alert_condition] if args.key?(:default_numeric_alert_condition)
17605
+ @feature_alert_conditions = args[:feature_alert_conditions] if args.key?(:feature_alert_conditions)
17606
+ @features = args[:features] if args.key?(:features)
17607
+ @numeric_metric_type = args[:numeric_metric_type] if args.key?(:numeric_metric_type)
17608
+ end
17609
+ end
17610
+
17611
+ # Feature attribution monitoring spec.
17612
+ class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecFeatureAttributionSpec
17613
+ include Google::Apis::Core::Hashable
17614
+
17615
+ # A description of resources that are used for performing batch operations, are
17616
+ # dedicated to a Model, and need manual configuration.
17617
+ # Corresponds to the JSON property `batchExplanationDedicatedResources`
17618
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1BatchDedicatedResources]
17619
+ attr_accessor :batch_explanation_dedicated_resources
17620
+
17621
+ # Monitoring alert triggered condition.
17622
+ # Corresponds to the JSON property `defaultAlertCondition`
17623
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition]
17624
+ attr_accessor :default_alert_condition
17625
+
17626
+ # Per feature alert condition will override default alert condition.
17627
+ # Corresponds to the JSON property `featureAlertConditions`
17628
+ # @return [Hash<String,Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlertCondition>]
17629
+ attr_accessor :feature_alert_conditions
17630
+
17631
+ # Feature names interested in monitoring. These should be a subset of the input
17632
+ # feature names specified in the monitoring schema. If the field is not
17633
+ # specified all features outlied in the monitoring schema will be used.
17634
+ # Corresponds to the JSON property `features`
17635
+ # @return [Array<String>]
17636
+ attr_accessor :features
17637
+
17638
+ def initialize(**args)
17639
+ update!(**args)
17640
+ end
17641
+
17642
+ # Update properties of this object
17643
+ def update!(**args)
17644
+ @batch_explanation_dedicated_resources = args[:batch_explanation_dedicated_resources] if args.key?(:batch_explanation_dedicated_resources)
17645
+ @default_alert_condition = args[:default_alert_condition] if args.key?(:default_alert_condition)
17646
+ @feature_alert_conditions = args[:feature_alert_conditions] if args.key?(:feature_alert_conditions)
17647
+ @features = args[:features] if args.key?(:features)
17648
+ end
17649
+ end
17650
+
17651
+ # Tabular monitoring objective.
17652
+ class GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecTabularObjective
17653
+ include Google::Apis::Core::Hashable
17654
+
17655
+ # Feature attribution monitoring spec.
17656
+ # Corresponds to the JSON property `featureAttributionSpec`
17657
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecFeatureAttributionSpec]
17658
+ attr_accessor :feature_attribution_spec
17659
+
17660
+ # Data drift monitoring spec. Data drift measures the distribution distance
17661
+ # between the current dataset and a baseline dataset. A typical use case is to
17662
+ # detect data drift between the recent production serving dataset and the
17663
+ # training dataset, or to compare the recent production dataset with a dataset
17664
+ # from a previous period.
17665
+ # Corresponds to the JSON property `featureDriftSpec`
17666
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecDataDriftSpec]
17667
+ attr_accessor :feature_drift_spec
17668
+
17669
+ # Data drift monitoring spec. Data drift measures the distribution distance
17670
+ # between the current dataset and a baseline dataset. A typical use case is to
17671
+ # detect data drift between the recent production serving dataset and the
17672
+ # training dataset, or to compare the recent production dataset with a dataset
17673
+ # from a previous period.
17674
+ # Corresponds to the JSON property `predictionOutputDriftSpec`
17675
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpecDataDriftSpec]
17676
+ attr_accessor :prediction_output_drift_spec
17677
+
17678
+ def initialize(**args)
17679
+ update!(**args)
17680
+ end
17681
+
17682
+ # Update properties of this object
17683
+ def update!(**args)
17684
+ @feature_attribution_spec = args[:feature_attribution_spec] if args.key?(:feature_attribution_spec)
17685
+ @feature_drift_spec = args[:feature_drift_spec] if args.key?(:feature_drift_spec)
17686
+ @prediction_output_drift_spec = args[:prediction_output_drift_spec] if args.key?(:prediction_output_drift_spec)
17687
+ end
17688
+ end
17689
+
17690
+ # Specification for the export destination of monitoring results, including
17691
+ # metrics, logs, etc.
17692
+ class GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec
17693
+ include Google::Apis::Core::Hashable
17694
+
17695
+ # The Google Cloud Storage location where the output is to be written to.
17696
+ # Corresponds to the JSON property `gcsBaseDirectory`
17697
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GcsDestination]
17698
+ attr_accessor :gcs_base_directory
17699
+
17700
+ def initialize(**args)
17701
+ update!(**args)
17702
+ end
17703
+
17704
+ # Update properties of this object
17705
+ def update!(**args)
17706
+ @gcs_base_directory = args[:gcs_base_directory] if args.key?(:gcs_base_directory)
17707
+ end
17708
+ end
17709
+
17710
+ # The Model Monitoring Schema definition.
17711
+ class GoogleCloudAiplatformV1beta1ModelMonitoringSchema
17712
+ include Google::Apis::Core::Hashable
17713
+
17714
+ # Feature names of the model. Vertex AI will try to match the features from your
17715
+ # dataset as follows: * For 'csv' files, the header names are required, and we
17716
+ # will extract the corresponding feature values when the header names align with
17717
+ # the feature names. * For 'jsonl' files, we will extract the corresponding
17718
+ # feature values if the key names match the feature names. Note: Nested features
17719
+ # are not supported, so please ensure your features are flattened. Ensure the
17720
+ # feature values are scalar or an array of scalars. * For 'bigquery' dataset, we
17721
+ # will extract the corresponding feature values if the column names match the
17722
+ # feature names. Note: The column type can be a scalar or an array of scalars.
17723
+ # STRUCT or JSON types are not supported. You may use SQL queries to select or
17724
+ # aggregate the relevant features from your original table. However, ensure that
17725
+ # the 'schema' of the query results meets our requirements. * For the Vertex AI
17726
+ # Endpoint Request Response Logging table or Vertex AI Batch Prediction Job
17727
+ # results. If the instance_type is an array, ensure that the sequence in
17728
+ # feature_fields matches the order of features in the prediction instance. We
17729
+ # will match the feature with the array in the order specified in [
17730
+ # feature_fields].
17731
+ # Corresponds to the JSON property `featureFields`
17732
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema>]
17733
+ attr_accessor :feature_fields
17734
+
17735
+ # Target /ground truth names of the model.
17736
+ # Corresponds to the JSON property `groundTruthFields`
17737
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema>]
17738
+ attr_accessor :ground_truth_fields
17739
+
17740
+ # The prediction instance type that the Model accepts when serving. Supported
17741
+ # values are: * `object`: Each input is a JSON object format. * `array`: Each
17742
+ # input is a JSON array format.
17743
+ # Corresponds to the JSON property `instanceType`
17744
+ # @return [String]
17745
+ attr_accessor :instance_type
17746
+
17747
+ # Prediction output names of the model. The requirements are the same as the
17748
+ # feature_fields. For AutoML Tables, the prediction output name presented in
17749
+ # schema will be: `predicted_`target_column``, the `target_column` is the one
17750
+ # you specified when you train the model. For Prediction output drift analysis: *
17751
+ # AutoML Classification, the distribution of the argmax label will be analyzed.
17752
+ # * AutoML Regression, the distribution of the value will be analyzed.
17753
+ # Corresponds to the JSON property `predictionFields`
17754
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema>]
17755
+ attr_accessor :prediction_fields
17756
+
17757
+ def initialize(**args)
17758
+ update!(**args)
17759
+ end
17760
+
17761
+ # Update properties of this object
17762
+ def update!(**args)
17763
+ @feature_fields = args[:feature_fields] if args.key?(:feature_fields)
17764
+ @ground_truth_fields = args[:ground_truth_fields] if args.key?(:ground_truth_fields)
17765
+ @instance_type = args[:instance_type] if args.key?(:instance_type)
17766
+ @prediction_fields = args[:prediction_fields] if args.key?(:prediction_fields)
17767
+ end
17768
+ end
17769
+
17770
+ # Schema field definition.
17771
+ class GoogleCloudAiplatformV1beta1ModelMonitoringSchemaFieldSchema
17772
+ include Google::Apis::Core::Hashable
17773
+
17774
+ # Supported data types are: `float` `integer` `boolean` `string` `categorical`
17775
+ # Corresponds to the JSON property `dataType`
17776
+ # @return [String]
17777
+ attr_accessor :data_type
17778
+
17779
+ # Field name.
17780
+ # Corresponds to the JSON property `name`
17781
+ # @return [String]
17782
+ attr_accessor :name
17783
+
17784
+ # Describes if the schema field is an array of given data type.
17785
+ # Corresponds to the JSON property `repeated`
17786
+ # @return [Boolean]
17787
+ attr_accessor :repeated
17788
+ alias_method :repeated?, :repeated
17789
+
17790
+ def initialize(**args)
17791
+ update!(**args)
17792
+ end
17793
+
17794
+ # Update properties of this object
17795
+ def update!(**args)
17796
+ @data_type = args[:data_type] if args.key?(:data_type)
17797
+ @name = args[:name] if args.key?(:name)
17798
+ @repeated = args[:repeated] if args.key?(:repeated)
17799
+ end
17800
+ end
17801
+
17802
+ # Monitoring monitoring job spec. It outlines the specifications for monitoring
17803
+ # objectives, notifications, and result exports.
17804
+ class GoogleCloudAiplatformV1beta1ModelMonitoringSpec
17805
+ include Google::Apis::Core::Hashable
17806
+
17807
+ # Notification spec(email, notification channel) for model monitoring statistics/
17808
+ # alerts.
17809
+ # Corresponds to the JSON property `notificationSpec`
17810
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec]
17811
+ attr_accessor :notification_spec
17812
+
17813
+ # Monitoring objectives spec.
17814
+ # Corresponds to the JSON property `objectiveSpec`
17815
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringObjectiveSpec]
17816
+ attr_accessor :objective_spec
17817
+
17818
+ # Specification for the export destination of monitoring results, including
17819
+ # metrics, logs, etc.
17820
+ # Corresponds to the JSON property `outputSpec`
17821
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringOutputSpec]
17822
+ attr_accessor :output_spec
17823
+
17824
+ def initialize(**args)
17825
+ update!(**args)
17826
+ end
17827
+
17828
+ # Update properties of this object
17829
+ def update!(**args)
17830
+ @notification_spec = args[:notification_spec] if args.key?(:notification_spec)
17831
+ @objective_spec = args[:objective_spec] if args.key?(:objective_spec)
17832
+ @output_spec = args[:output_spec] if args.key?(:output_spec)
17833
+ end
17834
+ end
17835
+
17836
+ # Represents the collection of statistics for a metric.
17837
+ class GoogleCloudAiplatformV1beta1ModelMonitoringStats
17838
+ include Google::Apis::Core::Hashable
17839
+
17840
+ # A collection of data points that describes the time-varying values of a
17841
+ # tabular metric.
17842
+ # Corresponds to the JSON property `tabularStats`
17843
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringTabularStats]
17844
+ attr_accessor :tabular_stats
17845
+
17846
+ def initialize(**args)
17847
+ update!(**args)
17848
+ end
17849
+
17850
+ # Update properties of this object
17851
+ def update!(**args)
17852
+ @tabular_stats = args[:tabular_stats] if args.key?(:tabular_stats)
17853
+ end
17854
+ end
17855
+
16808
17856
  # Statistics and anomalies generated by Model Monitoring.
16809
17857
  class GoogleCloudAiplatformV1beta1ModelMonitoringStatsAnomalies
16810
17858
  include Google::Apis::Core::Hashable
@@ -16887,6 +17935,157 @@ module Google
16887
17935
  end
16888
17936
  end
16889
17937
 
17938
+ # Represents a single statistics data point.
17939
+ class GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPoint
17940
+ include Google::Apis::Core::Hashable
17941
+
17942
+ # Algorithm used to calculated the metrics, eg: jensen_shannon_divergence,
17943
+ # l_infinity.
17944
+ # Corresponds to the JSON property `algorithm`
17945
+ # @return [String]
17946
+ attr_accessor :algorithm
17947
+
17948
+ # Typed value of the statistics.
17949
+ # Corresponds to the JSON property `baselineStats`
17950
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValue]
17951
+ attr_accessor :baseline_stats
17952
+
17953
+ # Statistics create time.
17954
+ # Corresponds to the JSON property `createTime`
17955
+ # @return [String]
17956
+ attr_accessor :create_time
17957
+
17958
+ # Typed value of the statistics.
17959
+ # Corresponds to the JSON property `currentStats`
17960
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValue]
17961
+ attr_accessor :current_stats
17962
+
17963
+ # Indicate if the statistics has anomaly.
17964
+ # Corresponds to the JSON property `hasAnomaly`
17965
+ # @return [Boolean]
17966
+ attr_accessor :has_anomaly
17967
+ alias_method :has_anomaly?, :has_anomaly
17968
+
17969
+ # Model monitoring job resource name.
17970
+ # Corresponds to the JSON property `modelMonitoringJob`
17971
+ # @return [String]
17972
+ attr_accessor :model_monitoring_job
17973
+
17974
+ # Schedule resource name.
17975
+ # Corresponds to the JSON property `schedule`
17976
+ # @return [String]
17977
+ attr_accessor :schedule
17978
+
17979
+ # Threshold value.
17980
+ # Corresponds to the JSON property `thresholdValue`
17981
+ # @return [Float]
17982
+ attr_accessor :threshold_value
17983
+
17984
+ def initialize(**args)
17985
+ update!(**args)
17986
+ end
17987
+
17988
+ # Update properties of this object
17989
+ def update!(**args)
17990
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
17991
+ @baseline_stats = args[:baseline_stats] if args.key?(:baseline_stats)
17992
+ @create_time = args[:create_time] if args.key?(:create_time)
17993
+ @current_stats = args[:current_stats] if args.key?(:current_stats)
17994
+ @has_anomaly = args[:has_anomaly] if args.key?(:has_anomaly)
17995
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
17996
+ @schedule = args[:schedule] if args.key?(:schedule)
17997
+ @threshold_value = args[:threshold_value] if args.key?(:threshold_value)
17998
+ end
17999
+ end
18000
+
18001
+ # Typed value of the statistics.
18002
+ class GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValue
18003
+ include Google::Apis::Core::Hashable
18004
+
18005
+ # Summary statistics for a population of values.
18006
+ # Corresponds to the JSON property `distributionValue`
18007
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValueDistributionDataValue]
18008
+ attr_accessor :distribution_value
18009
+
18010
+ # Double.
18011
+ # Corresponds to the JSON property `doubleValue`
18012
+ # @return [Float]
18013
+ attr_accessor :double_value
18014
+
18015
+ def initialize(**args)
18016
+ update!(**args)
18017
+ end
18018
+
18019
+ # Update properties of this object
18020
+ def update!(**args)
18021
+ @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
18022
+ @double_value = args[:double_value] if args.key?(:double_value)
18023
+ end
18024
+ end
18025
+
18026
+ # Summary statistics for a population of values.
18027
+ class GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPointTypedValueDistributionDataValue
18028
+ include Google::Apis::Core::Hashable
18029
+
18030
+ # tensorflow.metadata.v0.DatasetFeatureStatistics format.
18031
+ # Corresponds to the JSON property `distribution`
18032
+ # @return [Object]
18033
+ attr_accessor :distribution
18034
+
18035
+ # Distribution distance deviation from the current dataset's statistics to
18036
+ # baseline dataset's statistics. * For categorical feature, the distribution
18037
+ # distance is calculated by L-inifinity norm or Jensen–Shannon divergence. * For
18038
+ # numerical feature, the distribution distance is calculated by Jensen–Shannon
18039
+ # divergence.
18040
+ # Corresponds to the JSON property `distributionDeviation`
18041
+ # @return [Float]
18042
+ attr_accessor :distribution_deviation
18043
+
18044
+ def initialize(**args)
18045
+ update!(**args)
18046
+ end
18047
+
18048
+ # Update properties of this object
18049
+ def update!(**args)
18050
+ @distribution = args[:distribution] if args.key?(:distribution)
18051
+ @distribution_deviation = args[:distribution_deviation] if args.key?(:distribution_deviation)
18052
+ end
18053
+ end
18054
+
18055
+ # A collection of data points that describes the time-varying values of a
18056
+ # tabular metric.
18057
+ class GoogleCloudAiplatformV1beta1ModelMonitoringTabularStats
18058
+ include Google::Apis::Core::Hashable
18059
+
18060
+ # The data points of this time series. When listing time series, points are
18061
+ # returned in reverse time order.
18062
+ # Corresponds to the JSON property `dataPoints`
18063
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStatsDataPoint>]
18064
+ attr_accessor :data_points
18065
+
18066
+ # One of the supported monitoring objectives: `raw-feature-drift` `prediction-
18067
+ # output-drift` `feature-attribution`
18068
+ # Corresponds to the JSON property `objectiveType`
18069
+ # @return [String]
18070
+ attr_accessor :objective_type
18071
+
18072
+ # The stats name.
18073
+ # Corresponds to the JSON property `statsName`
18074
+ # @return [String]
18075
+ attr_accessor :stats_name
18076
+
18077
+ def initialize(**args)
18078
+ update!(**args)
18079
+ end
18080
+
18081
+ # Update properties of this object
18082
+ def update!(**args)
18083
+ @data_points = args[:data_points] if args.key?(:data_points)
18084
+ @objective_type = args[:objective_type] if args.key?(:objective_type)
18085
+ @stats_name = args[:stats_name] if args.key?(:stats_name)
18086
+ end
18087
+ end
18088
+
16890
18089
  # Contains information about the original Model if this Model is a copy.
16891
18090
  class GoogleCloudAiplatformV1beta1ModelOriginalModelInfo
16892
18091
  include Google::Apis::Core::Hashable
@@ -17874,6 +19073,167 @@ module Google
17874
19073
  end
17875
19074
  end
17876
19075
 
19076
+ # NotebookExecutionJob represents an instance of a notebook execution.
19077
+ class GoogleCloudAiplatformV1beta1NotebookExecutionJob
19078
+ include Google::Apis::Core::Hashable
19079
+
19080
+ # Output only. Timestamp when this NotebookExecutionJob was created.
19081
+ # Corresponds to the JSON property `createTime`
19082
+ # @return [String]
19083
+ attr_accessor :create_time
19084
+
19085
+ # The Dataform Repository containing the input notebook.
19086
+ # Corresponds to the JSON property `dataformRepositorySource`
19087
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource]
19088
+ attr_accessor :dataform_repository_source
19089
+
19090
+ # The display name of the NotebookExecutionJob. The name can be up to 128
19091
+ # characters long and can consist of any UTF-8 characters.
19092
+ # Corresponds to the JSON property `displayName`
19093
+ # @return [String]
19094
+ attr_accessor :display_name
19095
+
19096
+ # Max running time of the execution job in seconds (default 86400s / 24 hrs).
19097
+ # Corresponds to the JSON property `executionTimeout`
19098
+ # @return [String]
19099
+ attr_accessor :execution_timeout
19100
+
19101
+ # The user email to run the execution as. Only supported by Colab runtimes.
19102
+ # Corresponds to the JSON property `executionUser`
19103
+ # @return [String]
19104
+ attr_accessor :execution_user
19105
+
19106
+ # The Cloud Storage uri for the input notebook.
19107
+ # Corresponds to the JSON property `gcsNotebookSource`
19108
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource]
19109
+ attr_accessor :gcs_notebook_source
19110
+
19111
+ # The GCS location to upload the result to. Format: `gs://bucket-name`
19112
+ # Corresponds to the JSON property `gcsOutputUri`
19113
+ # @return [String]
19114
+ attr_accessor :gcs_output_uri
19115
+
19116
+ # Output only. The state of the NotebookExecutionJob.
19117
+ # Corresponds to the JSON property `jobState`
19118
+ # @return [String]
19119
+ attr_accessor :job_state
19120
+
19121
+ # Output only. The resource name of this NotebookExecutionJob. Format: `projects/
19122
+ # `project_id`/locations/`location`/notebookExecutionJobs/`job_id``
19123
+ # Corresponds to the JSON property `name`
19124
+ # @return [String]
19125
+ attr_accessor :name
19126
+
19127
+ # The NotebookRuntimeTemplate to source compute configuration from.
19128
+ # Corresponds to the JSON property `notebookRuntimeTemplateResourceName`
19129
+ # @return [String]
19130
+ attr_accessor :notebook_runtime_template_resource_name
19131
+
19132
+ # Output only. The Schedule resource name if this job is triggered by one.
19133
+ # Format: `projects/`project_id`/locations/`location`/schedules/`schedule_id``
19134
+ # Corresponds to the JSON property `scheduleResourceName`
19135
+ # @return [String]
19136
+ attr_accessor :schedule_resource_name
19137
+
19138
+ # The service account to run the execution as.
19139
+ # Corresponds to the JSON property `serviceAccount`
19140
+ # @return [String]
19141
+ attr_accessor :service_account
19142
+
19143
+ # The `Status` type defines a logical error model that is suitable for different
19144
+ # programming environments, including REST APIs and RPC APIs. It is used by [
19145
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
19146
+ # data: error code, error message, and error details. You can find out more
19147
+ # about this error model and how to work with it in the [API Design Guide](https:
19148
+ # //cloud.google.com/apis/design/errors).
19149
+ # Corresponds to the JSON property `status`
19150
+ # @return [Google::Apis::AiplatformV1beta1::GoogleRpcStatus]
19151
+ attr_accessor :status
19152
+
19153
+ # Output only. Timestamp when this NotebookExecutionJob was most recently
19154
+ # updated.
19155
+ # Corresponds to the JSON property `updateTime`
19156
+ # @return [String]
19157
+ attr_accessor :update_time
19158
+
19159
+ def initialize(**args)
19160
+ update!(**args)
19161
+ end
19162
+
19163
+ # Update properties of this object
19164
+ def update!(**args)
19165
+ @create_time = args[:create_time] if args.key?(:create_time)
19166
+ @dataform_repository_source = args[:dataform_repository_source] if args.key?(:dataform_repository_source)
19167
+ @display_name = args[:display_name] if args.key?(:display_name)
19168
+ @execution_timeout = args[:execution_timeout] if args.key?(:execution_timeout)
19169
+ @execution_user = args[:execution_user] if args.key?(:execution_user)
19170
+ @gcs_notebook_source = args[:gcs_notebook_source] if args.key?(:gcs_notebook_source)
19171
+ @gcs_output_uri = args[:gcs_output_uri] if args.key?(:gcs_output_uri)
19172
+ @job_state = args[:job_state] if args.key?(:job_state)
19173
+ @name = args[:name] if args.key?(:name)
19174
+ @notebook_runtime_template_resource_name = args[:notebook_runtime_template_resource_name] if args.key?(:notebook_runtime_template_resource_name)
19175
+ @schedule_resource_name = args[:schedule_resource_name] if args.key?(:schedule_resource_name)
19176
+ @service_account = args[:service_account] if args.key?(:service_account)
19177
+ @status = args[:status] if args.key?(:status)
19178
+ @update_time = args[:update_time] if args.key?(:update_time)
19179
+ end
19180
+ end
19181
+
19182
+ # The Dataform Repository containing the input notebook.
19183
+ class GoogleCloudAiplatformV1beta1NotebookExecutionJobDataformRepositorySource
19184
+ include Google::Apis::Core::Hashable
19185
+
19186
+ # The commit SHA to read repository with. If unset, the file will be read at
19187
+ # HEAD.
19188
+ # Corresponds to the JSON property `commitSha`
19189
+ # @return [String]
19190
+ attr_accessor :commit_sha
19191
+
19192
+ # The resource name of the Dataform Repository. Format: `projects/`project_id`/
19193
+ # locations/`location`/repositories/`repository_id``
19194
+ # Corresponds to the JSON property `dataformRepositoryResourceName`
19195
+ # @return [String]
19196
+ attr_accessor :dataform_repository_resource_name
19197
+
19198
+ def initialize(**args)
19199
+ update!(**args)
19200
+ end
19201
+
19202
+ # Update properties of this object
19203
+ def update!(**args)
19204
+ @commit_sha = args[:commit_sha] if args.key?(:commit_sha)
19205
+ @dataform_repository_resource_name = args[:dataform_repository_resource_name] if args.key?(:dataform_repository_resource_name)
19206
+ end
19207
+ end
19208
+
19209
+ # The Cloud Storage uri for the input notebook.
19210
+ class GoogleCloudAiplatformV1beta1NotebookExecutionJobGcsNotebookSource
19211
+ include Google::Apis::Core::Hashable
19212
+
19213
+ # The version of the Cloud Storage object to read. If unset, the current version
19214
+ # of the object is read. See https://cloud.google.com/storage/docs/metadata#
19215
+ # generation-number.
19216
+ # Corresponds to the JSON property `generation`
19217
+ # @return [String]
19218
+ attr_accessor :generation
19219
+
19220
+ # The Cloud Storage uri pointing to the ipynb file. Format: `gs://bucket/
19221
+ # notebook_file.ipynb`
19222
+ # Corresponds to the JSON property `uri`
19223
+ # @return [String]
19224
+ attr_accessor :uri
19225
+
19226
+ def initialize(**args)
19227
+ update!(**args)
19228
+ end
19229
+
19230
+ # Update properties of this object
19231
+ def update!(**args)
19232
+ @generation = args[:generation] if args.key?(:generation)
19233
+ @uri = args[:uri] if args.key?(:uri)
19234
+ end
19235
+ end
19236
+
17877
19237
  # The idle shutdown configuration of NotebookRuntimeTemplate, which contains the
17878
19238
  # idle_timeout as required field.
17879
19239
  class GoogleCloudAiplatformV1beta1NotebookIdleShutdownConfig
@@ -22151,7 +23511,7 @@ module Google
22151
23511
  class GoogleCloudAiplatformV1beta1RougeSpec
22152
23512
  include Google::Apis::Core::Hashable
22153
23513
 
22154
- # Optional. Supported rouge types are rougen[1-9], rougeL and rougeLsum.
23514
+ # Optional. Supported rouge types are rougen[1-9], rougeL, and rougeLsum.
22155
23515
  # Corresponds to the JSON property `rougeType`
22156
23516
  # @return [String]
22157
23517
  attr_accessor :rouge_type
@@ -22220,18 +23580,19 @@ module Google
22220
23580
  class GoogleCloudAiplatformV1beta1RuntimeConfigCodeInterpreterRuntimeConfig
22221
23581
  include Google::Apis::Core::Hashable
22222
23582
 
22223
- # Optional. The GCS bucket for file input of this Extension. If specified,
22224
- # support input from the GCS bucket. Vertex Extension Custom Code Service Agent
22225
- # should be granted file reader to this bucket. If not specified, the extension
22226
- # will only accept file contents from request body and reject GCS file inputs.
23583
+ # Optional. The Cloud Storage bucket for file input of this Extension. If
23584
+ # specified, support input from the Cloud Storage bucket. Vertex Extension
23585
+ # Custom Code Service Agent should be granted file reader to this bucket. If not
23586
+ # specified, the extension will only accept file contents from request body and
23587
+ # reject Cloud Storage file inputs.
22227
23588
  # Corresponds to the JSON property `fileInputGcsBucket`
22228
23589
  # @return [String]
22229
23590
  attr_accessor :file_input_gcs_bucket
22230
23591
 
22231
- # Optional. The GCS bucket for file output of this Extension. If specified,
22232
- # write all output files to the GCS bucket. Vertex Extension Custom Code Service
22233
- # Agent should be granted file writer to this bucket. If not specified, the file
22234
- # content will be output in response body.
23592
+ # Optional. The Cloud Storage bucket for file output of this Extension. If
23593
+ # specified, write all output files to the Cloud Storage bucket. Vertex
23594
+ # Extension Custom Code Service Agent should be granted file writer to this
23595
+ # bucket. If not specified, the file content will be output in response body.
22235
23596
  # Corresponds to the JSON property `fileOutputGcsBucket`
22236
23597
  # @return [String]
22237
23598
  attr_accessor :file_output_gcs_bucket
@@ -22253,8 +23614,7 @@ module Google
22253
23614
 
22254
23615
  # Required. Vertext AI Search serving config name. Format: `projects/`project`/
22255
23616
  # locations/`location`/collections/`collection`/engines/`engine`/servingConfigs/`
22256
- # serving_config`` or `projects/`project`/locations/`location`/collections/`
22257
- # collection`/dataStores/`data_store`/servingConfigs/`serving_config``
23617
+ # serving_config``
22258
23618
  # Corresponds to the JSON property `servingConfigName`
22259
23619
  # @return [String]
22260
23620
  attr_accessor :serving_config_name
@@ -22662,6 +24022,11 @@ module Google
22662
24022
  attr_accessor :catch_up
22663
24023
  alias_method :catch_up?, :catch_up
22664
24024
 
24025
+ # Request message for ModelMonitoringService.CreateModelMonitoringJob.
24026
+ # Corresponds to the JSON property `createModelMonitoringJobRequest`
24027
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreateModelMonitoringJobRequest]
24028
+ attr_accessor :create_model_monitoring_job_request
24029
+
22665
24030
  # Request message for PipelineService.CreatePipelineJob.
22666
24031
  # Corresponds to the JSON property `createPipelineJobRequest`
22667
24032
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1CreatePipelineJobRequest]
@@ -22769,6 +24134,7 @@ module Google
22769
24134
  def update!(**args)
22770
24135
  @allow_queueing = args[:allow_queueing] if args.key?(:allow_queueing)
22771
24136
  @catch_up = args[:catch_up] if args.key?(:catch_up)
24137
+ @create_model_monitoring_job_request = args[:create_model_monitoring_job_request] if args.key?(:create_model_monitoring_job_request)
22772
24138
  @create_pipeline_job_request = args[:create_pipeline_job_request] if args.key?(:create_pipeline_job_request)
22773
24139
  @create_time = args[:create_time] if args.key?(:create_time)
22774
24140
  @cron = args[:cron] if args.key?(:cron)
@@ -29207,6 +30573,224 @@ module Google
29207
30573
  end
29208
30574
  end
29209
30575
 
30576
+ # Request message for ModelMonitoringService.SearchModelMonitoringAlerts.
30577
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsRequest
30578
+ include Google::Apis::Core::Hashable
30579
+
30580
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
30581
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
30582
+ # When the start equals the end, the interval is empty (matches no time). When
30583
+ # both start and end are unspecified, the interval matches any time.
30584
+ # Corresponds to the JSON property `alertTimeInterval`
30585
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
30586
+ attr_accessor :alert_time_interval
30587
+
30588
+ # If non-empty, returns the alerts of this model monitoring job.
30589
+ # Corresponds to the JSON property `modelMonitoringJob`
30590
+ # @return [String]
30591
+ attr_accessor :model_monitoring_job
30592
+
30593
+ # If non-empty, returns the alerts of this objective type. Supported monitoring
30594
+ # objectives: `raw-feature-drift` `prediction-output-drift` `feature-attribution`
30595
+ # Corresponds to the JSON property `objectiveType`
30596
+ # @return [String]
30597
+ attr_accessor :objective_type
30598
+
30599
+ # The standard list page size.
30600
+ # Corresponds to the JSON property `pageSize`
30601
+ # @return [Fixnum]
30602
+ attr_accessor :page_size
30603
+
30604
+ # A page token received from a previous ModelMonitoringService.
30605
+ # SearchModelMonitoringAlerts call.
30606
+ # Corresponds to the JSON property `pageToken`
30607
+ # @return [String]
30608
+ attr_accessor :page_token
30609
+
30610
+ # If non-empty, returns the alerts of this stats_name.
30611
+ # Corresponds to the JSON property `statsName`
30612
+ # @return [String]
30613
+ attr_accessor :stats_name
30614
+
30615
+ def initialize(**args)
30616
+ update!(**args)
30617
+ end
30618
+
30619
+ # Update properties of this object
30620
+ def update!(**args)
30621
+ @alert_time_interval = args[:alert_time_interval] if args.key?(:alert_time_interval)
30622
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
30623
+ @objective_type = args[:objective_type] if args.key?(:objective_type)
30624
+ @page_size = args[:page_size] if args.key?(:page_size)
30625
+ @page_token = args[:page_token] if args.key?(:page_token)
30626
+ @stats_name = args[:stats_name] if args.key?(:stats_name)
30627
+ end
30628
+ end
30629
+
30630
+ # Response message for ModelMonitoringService.SearchModelMonitoringAlerts.
30631
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringAlertsResponse
30632
+ include Google::Apis::Core::Hashable
30633
+
30634
+ # Alerts retrieved for the requested objectives. Sorted by alert time
30635
+ # descendingly.
30636
+ # Corresponds to the JSON property `modelMonitoringAlerts`
30637
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringAlert>]
30638
+ attr_accessor :model_monitoring_alerts
30639
+
30640
+ # The page token that can be used by the next ModelMonitoringService.
30641
+ # SearchModelMonitoringAlerts call.
30642
+ # Corresponds to the JSON property `nextPageToken`
30643
+ # @return [String]
30644
+ attr_accessor :next_page_token
30645
+
30646
+ # The total number of alerts retrieved by the requested objectives.
30647
+ # Corresponds to the JSON property `totalNumberAlerts`
30648
+ # @return [Fixnum]
30649
+ attr_accessor :total_number_alerts
30650
+
30651
+ def initialize(**args)
30652
+ update!(**args)
30653
+ end
30654
+
30655
+ # Update properties of this object
30656
+ def update!(**args)
30657
+ @model_monitoring_alerts = args[:model_monitoring_alerts] if args.key?(:model_monitoring_alerts)
30658
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
30659
+ @total_number_alerts = args[:total_number_alerts] if args.key?(:total_number_alerts)
30660
+ end
30661
+ end
30662
+
30663
+ # Filter for searching ModelMonitoringStats.
30664
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter
30665
+ include Google::Apis::Core::Hashable
30666
+
30667
+ # Tabular statistics filter.
30668
+ # Corresponds to the JSON property `tabularStatsFilter`
30669
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter]
30670
+ attr_accessor :tabular_stats_filter
30671
+
30672
+ def initialize(**args)
30673
+ update!(**args)
30674
+ end
30675
+
30676
+ # Update properties of this object
30677
+ def update!(**args)
30678
+ @tabular_stats_filter = args[:tabular_stats_filter] if args.key?(:tabular_stats_filter)
30679
+ end
30680
+ end
30681
+
30682
+ # Tabular statistics filter.
30683
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilterTabularStatsFilter
30684
+ include Google::Apis::Core::Hashable
30685
+
30686
+ # Specify the algorithm type used for distance calculation, eg:
30687
+ # jensen_shannon_divergence, l_infinity.
30688
+ # Corresponds to the JSON property `algorithm`
30689
+ # @return [String]
30690
+ attr_accessor :algorithm
30691
+
30692
+ # From a particular monitoring job.
30693
+ # Corresponds to the JSON property `modelMonitoringJob`
30694
+ # @return [String]
30695
+ attr_accessor :model_monitoring_job
30696
+
30697
+ # From a particular monitoring schedule.
30698
+ # Corresponds to the JSON property `modelMonitoringSchedule`
30699
+ # @return [String]
30700
+ attr_accessor :model_monitoring_schedule
30701
+
30702
+ # One of the supported monitoring objectives: `raw-feature-drift` `prediction-
30703
+ # output-drift` `feature-attribution`
30704
+ # Corresponds to the JSON property `objectiveType`
30705
+ # @return [String]
30706
+ attr_accessor :objective_type
30707
+
30708
+ # If not specified, will return all the stats_names.
30709
+ # Corresponds to the JSON property `statsName`
30710
+ # @return [String]
30711
+ attr_accessor :stats_name
30712
+
30713
+ def initialize(**args)
30714
+ update!(**args)
30715
+ end
30716
+
30717
+ # Update properties of this object
30718
+ def update!(**args)
30719
+ @algorithm = args[:algorithm] if args.key?(:algorithm)
30720
+ @model_monitoring_job = args[:model_monitoring_job] if args.key?(:model_monitoring_job)
30721
+ @model_monitoring_schedule = args[:model_monitoring_schedule] if args.key?(:model_monitoring_schedule)
30722
+ @objective_type = args[:objective_type] if args.key?(:objective_type)
30723
+ @stats_name = args[:stats_name] if args.key?(:stats_name)
30724
+ end
30725
+ end
30726
+
30727
+ # Request message for ModelMonitoringService.SearchModelMonitoringStats.
30728
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsRequest
30729
+ include Google::Apis::Core::Hashable
30730
+
30731
+ # The standard list page size.
30732
+ # Corresponds to the JSON property `pageSize`
30733
+ # @return [Fixnum]
30734
+ attr_accessor :page_size
30735
+
30736
+ # A page token received from a previous ModelMonitoringService.
30737
+ # SearchModelMonitoringStats call.
30738
+ # Corresponds to the JSON property `pageToken`
30739
+ # @return [String]
30740
+ attr_accessor :page_token
30741
+
30742
+ # Filter for searching ModelMonitoringStats.
30743
+ # Corresponds to the JSON property `statsFilter`
30744
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsFilter]
30745
+ attr_accessor :stats_filter
30746
+
30747
+ # Represents a time interval, encoded as a Timestamp start (inclusive) and a
30748
+ # Timestamp end (exclusive). The start must be less than or equal to the end.
30749
+ # When the start equals the end, the interval is empty (matches no time). When
30750
+ # both start and end are unspecified, the interval matches any time.
30751
+ # Corresponds to the JSON property `timeInterval`
30752
+ # @return [Google::Apis::AiplatformV1beta1::GoogleTypeInterval]
30753
+ attr_accessor :time_interval
30754
+
30755
+ def initialize(**args)
30756
+ update!(**args)
30757
+ end
30758
+
30759
+ # Update properties of this object
30760
+ def update!(**args)
30761
+ @page_size = args[:page_size] if args.key?(:page_size)
30762
+ @page_token = args[:page_token] if args.key?(:page_token)
30763
+ @stats_filter = args[:stats_filter] if args.key?(:stats_filter)
30764
+ @time_interval = args[:time_interval] if args.key?(:time_interval)
30765
+ end
30766
+ end
30767
+
30768
+ # Response message for ModelMonitoringService.SearchModelMonitoringStats.
30769
+ class GoogleCloudAiplatformV1beta1SearchModelMonitoringStatsResponse
30770
+ include Google::Apis::Core::Hashable
30771
+
30772
+ # Stats retrieved for requested objectives.
30773
+ # Corresponds to the JSON property `monitoringStats`
30774
+ # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringStats>]
30775
+ attr_accessor :monitoring_stats
30776
+
30777
+ # The page token that can be used by the next ModelMonitoringService.
30778
+ # SearchModelMonitoringStats call.
30779
+ # Corresponds to the JSON property `nextPageToken`
30780
+ # @return [String]
30781
+ attr_accessor :next_page_token
30782
+
30783
+ def initialize(**args)
30784
+ update!(**args)
30785
+ end
30786
+
30787
+ # Update properties of this object
30788
+ def update!(**args)
30789
+ @monitoring_stats = args[:monitoring_stats] if args.key?(:monitoring_stats)
30790
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
30791
+ end
30792
+ end
30793
+
29210
30794
  # The request message for FeatureOnlineStoreService.SearchNearestEntities.
29211
30795
  class GoogleCloudAiplatformV1beta1SearchNearestEntitiesRequest
29212
30796
  include Google::Apis::Core::Hashable
@@ -29255,39 +30839,6 @@ module Google
29255
30839
  end
29256
30840
  end
29257
30841
 
29258
- # Segment of the content.
29259
- class GoogleCloudAiplatformV1beta1Segment
29260
- include Google::Apis::Core::Hashable
29261
-
29262
- # Output only. End index in the given Part, measured in bytes. Offset from the
29263
- # start of the Part, exclusive, starting at zero.
29264
- # Corresponds to the JSON property `endIndex`
29265
- # @return [Fixnum]
29266
- attr_accessor :end_index
29267
-
29268
- # Output only. The index of a Part object within its parent Content object.
29269
- # Corresponds to the JSON property `partIndex`
29270
- # @return [Fixnum]
29271
- attr_accessor :part_index
29272
-
29273
- # Output only. Start index in the given Part, measured in bytes. Offset from the
29274
- # start of the Part, inclusive, starting at zero.
29275
- # Corresponds to the JSON property `startIndex`
29276
- # @return [Fixnum]
29277
- attr_accessor :start_index
29278
-
29279
- def initialize(**args)
29280
- update!(**args)
29281
- end
29282
-
29283
- # Update properties of this object
29284
- def update!(**args)
29285
- @end_index = args[:end_index] if args.key?(:end_index)
29286
- @part_index = args[:part_index] if args.key?(:part_index)
29287
- @start_index = args[:start_index] if args.key?(:start_index)
29288
- end
29289
- end
29290
-
29291
30842
  # Configuration for the use of custom service account to run the workloads.
29292
30843
  class GoogleCloudAiplatformV1beta1ServiceAccountSpec
29293
30844
  include Google::Apis::Core::Hashable
@@ -31771,11 +33322,6 @@ module Google
31771
33322
  # @return [Array<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1FunctionDeclaration>]
31772
33323
  attr_accessor :function_declarations
31773
33324
 
31774
- # Tool to retrieve public web data for grounding, powered by Google.
31775
- # Corresponds to the JSON property `googleSearchRetrieval`
31776
- # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GoogleSearchRetrieval]
31777
- attr_accessor :google_search_retrieval
31778
-
31779
33325
  # Defines a retrieval tool that model can call to access external knowledge.
31780
33326
  # Corresponds to the JSON property `retrieval`
31781
33327
  # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1Retrieval]
@@ -31788,7 +33334,6 @@ module Google
31788
33334
  # Update properties of this object
31789
33335
  def update!(**args)
31790
33336
  @function_declarations = args[:function_declarations] if args.key?(:function_declarations)
31791
- @google_search_retrieval = args[:google_search_retrieval] if args.key?(:google_search_retrieval)
31792
33337
  @retrieval = args[:retrieval] if args.key?(:retrieval)
31793
33338
  end
31794
33339
  end
@@ -33019,6 +34564,25 @@ module Google
33019
34564
  end
33020
34565
  end
33021
34566
 
34567
+ # Runtime operation information for ModelMonitoringService.UpdateModelMonitor.
34568
+ class GoogleCloudAiplatformV1beta1UpdateModelMonitorOperationMetadata
34569
+ include Google::Apis::Core::Hashable
34570
+
34571
+ # Generic Metadata shared by all operations.
34572
+ # Corresponds to the JSON property `genericMetadata`
34573
+ # @return [Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1GenericOperationMetadata]
34574
+ attr_accessor :generic_metadata
34575
+
34576
+ def initialize(**args)
34577
+ update!(**args)
34578
+ end
34579
+
34580
+ # Update properties of this object
34581
+ def update!(**args)
34582
+ @generic_metadata = args[:generic_metadata] if args.key?(:generic_metadata)
34583
+ end
34584
+ end
34585
+
33022
34586
  # Details of operations that perform update PersistentResource.
33023
34587
  class GoogleCloudAiplatformV1beta1UpdatePersistentResourceOperationMetadata
33024
34588
  include Google::Apis::Core::Hashable
@@ -33335,9 +34899,9 @@ module Google
33335
34899
  class GoogleCloudAiplatformV1beta1VertexAiSearch
33336
34900
  include Google::Apis::Core::Hashable
33337
34901
 
33338
- # Required. Fully-qualified Vertex AI Search's datastore resource ID. Format:
34902
+ # Required. Fully-qualified Vertex AI Search's datastore resource ID. Format: `
33339
34903
  # projects/`project`/locations/`location`/collections/`collection`/dataStores/`
33340
- # dataStore`
34904
+ # dataStore``
33341
34905
  # Corresponds to the JSON property `datastore`
33342
34906
  # @return [String]
33343
34907
  attr_accessor :datastore
@@ -33356,10 +34920,10 @@ module Google
33356
34920
  class GoogleCloudAiplatformV1beta1VertexRagStore
33357
34921
  include Google::Apis::Core::Hashable
33358
34922
 
33359
- # Required. Vertex RAG Store corpus resource name: projects/`project`/locations/`
33360
- # location`/ragCorpora/`ragCorpus` Currently only one corpus is allowed. In the
33361
- # future we may open up multiple corpora support. However, they should be from
33362
- # the same project and location.
34923
+ # Required. Vertex RAG Store corpus resource name: `projects/`project`/locations/
34924
+ # `location`/ragCorpora/`ragCorpus`` Currently only one corpus is allowed. In
34925
+ # the future we may open up multiple corpora support. However, they should be
34926
+ # from the same project and location.
33363
34927
  # Corresponds to the JSON property `ragCorpora`
33364
34928
  # @return [Array<String>]
33365
34929
  attr_accessor :rag_corpora
@@ -33369,6 +34933,11 @@ module Google
33369
34933
  # @return [Fixnum]
33370
34934
  attr_accessor :similarity_top_k
33371
34935
 
34936
+ # Optional. Only return results with vector distance smaller than the threshold.
34937
+ # Corresponds to the JSON property `vectorDistanceThreshold`
34938
+ # @return [Float]
34939
+ attr_accessor :vector_distance_threshold
34940
+
33372
34941
  def initialize(**args)
33373
34942
  update!(**args)
33374
34943
  end
@@ -33377,6 +34946,7 @@ module Google
33377
34946
  def update!(**args)
33378
34947
  @rag_corpora = args[:rag_corpora] if args.key?(:rag_corpora)
33379
34948
  @similarity_top_k = args[:similarity_top_k] if args.key?(:similarity_top_k)
34949
+ @vector_distance_threshold = args[:vector_distance_threshold] if args.key?(:vector_distance_threshold)
33380
34950
  end
33381
34951
  end
33382
34952
 
@@ -35379,6 +36949,31 @@ module Google
35379
36949
  end
35380
36950
  end
35381
36951
 
36952
+ # Stores all metadata relating to GenerateCode.
36953
+ class LearningGenaiRootCodeyGenerationMetadata
36954
+ include Google::Apis::Core::Hashable
36955
+
36956
+ # Last state of the sample before getting dropped/returned.
36957
+ # Corresponds to the JSON property `output`
36958
+ # @return [String]
36959
+ attr_accessor :output
36960
+
36961
+ # Last Codey postprocessing step for this sample before getting dropped/returned.
36962
+ # Corresponds to the JSON property `postInferenceStep`
36963
+ # @return [String]
36964
+ attr_accessor :post_inference_step
36965
+
36966
+ def initialize(**args)
36967
+ update!(**args)
36968
+ end
36969
+
36970
+ # Update properties of this object
36971
+ def update!(**args)
36972
+ @output = args[:output] if args.key?(:output)
36973
+ @post_inference_step = args[:post_inference_step] if args.key?(:post_inference_step)
36974
+ end
36975
+ end
36976
+
35382
36977
  # Top-level wrapper used to store all things codey-related.
35383
36978
  class LearningGenaiRootCodeyOutput
35384
36979
  include Google::Apis::Core::Hashable
@@ -35393,6 +36988,11 @@ module Google
35393
36988
  # @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootCodeyCompletionMetadata]
35394
36989
  attr_accessor :codey_completion_metadata
35395
36990
 
36991
+ # Stores all metadata relating to GenerateCode.
36992
+ # Corresponds to the JSON property `codeyGenerationMetadata`
36993
+ # @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootCodeyGenerationMetadata]
36994
+ attr_accessor :codey_generation_metadata
36995
+
35396
36996
  def initialize(**args)
35397
36997
  update!(**args)
35398
36998
  end
@@ -35401,6 +37001,7 @@ module Google
35401
37001
  def update!(**args)
35402
37002
  @codey_chat_metadata = args[:codey_chat_metadata] if args.key?(:codey_chat_metadata)
35403
37003
  @codey_completion_metadata = args[:codey_completion_metadata] if args.key?(:codey_completion_metadata)
37004
+ @codey_generation_metadata = args[:codey_generation_metadata] if args.key?(:codey_generation_metadata)
35404
37005
  end
35405
37006
  end
35406
37007
 
@@ -35429,6 +37030,113 @@ module Google
35429
37030
  end
35430
37031
  end
35431
37032
 
37033
+ # Score threshold for a category.
37034
+ class LearningGenaiRootControlDecodingConfigThreshold
37035
+ include Google::Apis::Core::Hashable
37036
+
37037
+ #
37038
+ # Corresponds to the JSON property `policy`
37039
+ # @return [String]
37040
+ attr_accessor :policy
37041
+
37042
+ #
37043
+ # Corresponds to the JSON property `scoreMax`
37044
+ # @return [Float]
37045
+ attr_accessor :score_max
37046
+
37047
+ def initialize(**args)
37048
+ update!(**args)
37049
+ end
37050
+
37051
+ # Update properties of this object
37052
+ def update!(**args)
37053
+ @policy = args[:policy] if args.key?(:policy)
37054
+ @score_max = args[:score_max] if args.key?(:score_max)
37055
+ end
37056
+ end
37057
+
37058
+ # Holds one control decoding record.
37059
+ class LearningGenaiRootControlDecodingRecord
37060
+ include Google::Apis::Core::Hashable
37061
+
37062
+ # Prefixes feeded into scorer.
37063
+ # Corresponds to the JSON property `prefixes`
37064
+ # @return [String]
37065
+ attr_accessor :prefixes
37066
+
37067
+ # Per policy scores returned from Scorer. Expect to have the same number of
37068
+ # scores as in `thresholds`.
37069
+ # Corresponds to the JSON property `scores`
37070
+ # @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingRecordPolicyScore>]
37071
+ attr_accessor :scores
37072
+
37073
+ # Suffixes feeded into scorer.
37074
+ # Corresponds to the JSON property `suffiexes`
37075
+ # @return [String]
37076
+ attr_accessor :suffiexes
37077
+
37078
+ # Per policy thresholds from user config.
37079
+ # Corresponds to the JSON property `thresholds`
37080
+ # @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingConfigThreshold>]
37081
+ attr_accessor :thresholds
37082
+
37083
+ def initialize(**args)
37084
+ update!(**args)
37085
+ end
37086
+
37087
+ # Update properties of this object
37088
+ def update!(**args)
37089
+ @prefixes = args[:prefixes] if args.key?(:prefixes)
37090
+ @scores = args[:scores] if args.key?(:scores)
37091
+ @suffiexes = args[:suffiexes] if args.key?(:suffiexes)
37092
+ @thresholds = args[:thresholds] if args.key?(:thresholds)
37093
+ end
37094
+ end
37095
+
37096
+ #
37097
+ class LearningGenaiRootControlDecodingRecordPolicyScore
37098
+ include Google::Apis::Core::Hashable
37099
+
37100
+ #
37101
+ # Corresponds to the JSON property `policy`
37102
+ # @return [String]
37103
+ attr_accessor :policy
37104
+
37105
+ #
37106
+ # Corresponds to the JSON property `score`
37107
+ # @return [Float]
37108
+ attr_accessor :score
37109
+
37110
+ def initialize(**args)
37111
+ update!(**args)
37112
+ end
37113
+
37114
+ # Update properties of this object
37115
+ def update!(**args)
37116
+ @policy = args[:policy] if args.key?(:policy)
37117
+ @score = args[:score] if args.key?(:score)
37118
+ end
37119
+ end
37120
+
37121
+ #
37122
+ class LearningGenaiRootControlDecodingRecords
37123
+ include Google::Apis::Core::Hashable
37124
+
37125
+ # One ControlDecodingRecord record maps to one rewind.
37126
+ # Corresponds to the JSON property `records`
37127
+ # @return [Array<Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingRecord>]
37128
+ attr_accessor :records
37129
+
37130
+ def initialize(**args)
37131
+ update!(**args)
37132
+ end
37133
+
37134
+ # Update properties of this object
37135
+ def update!(**args)
37136
+ @records = args[:records] if args.key?(:records)
37137
+ end
37138
+ end
37139
+
35432
37140
  #
35433
37141
  class LearningGenaiRootDataProviderOutput
35434
37142
  include Google::Apis::Core::Hashable
@@ -35543,6 +37251,11 @@ module Google
35543
37251
  # @return [Google::Apis::AiplatformV1beta1::CloudAiNlLlmProtoServiceRaiSignal]
35544
37252
  attr_accessor :rai_signal
35545
37253
 
37254
+ # Number of rewinds by controlled decoding.
37255
+ # Corresponds to the JSON property `records`
37256
+ # @return [Google::Apis::AiplatformV1beta1::LearningGenaiRootControlDecodingRecords]
37257
+ attr_accessor :records
37258
+
35546
37259
  # The recitation result for one stream input
35547
37260
  # Corresponds to the JSON property `streamRecitationResult`
35548
37261
  # @return [Google::Apis::AiplatformV1beta1::LanguageLabsAidaTrustRecitationProtoStreamRecitationResult]
@@ -35571,6 +37284,7 @@ module Google
35571
37284
  @rai_output = args[:rai_output] if args.key?(:rai_output)
35572
37285
  @rai_result = args[:rai_result] if args.key?(:rai_result)
35573
37286
  @rai_signal = args[:rai_signal] if args.key?(:rai_signal)
37287
+ @records = args[:records] if args.key?(:records)
35574
37288
  @stream_recitation_result = args[:stream_recitation_result] if args.key?(:stream_recitation_result)
35575
37289
  @takedown_result = args[:takedown_result] if args.key?(:takedown_result)
35576
37290
  @toxicity_result = args[:toxicity_result] if args.key?(:toxicity_result)