Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Notification spec(email, notification channel) for model monitoring statistics/ alerts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec

Returns a new instance of GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpec.



17269
17270
17271
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17269

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#email_configGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecEmailConfig

The config for email alerts. Corresponds to the JSON property emailConfig



17253
17254
17255
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17253

def email_config
  @email_config
end

#enable_cloud_loggingBoolean Also known as: enable_cloud_logging?

Dump the anomalies to Cloud Logging. The anomalies will be put to json payload encoded from proto google.cloud.aiplatform.logging. ModelMonitoringAnomaliesLogEntry. This can be further sinked to Pub/Sub or any other services supported by Cloud Logging. Corresponds to the JSON property enableCloudLogging

Returns:

  • (Boolean)


17261
17262
17263
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17261

def enable_cloud_logging
  @enable_cloud_logging
end

#notification_channel_configsArray<Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ModelMonitoringNotificationSpecNotificationChannelConfig>

Notification channel config. Corresponds to the JSON property notificationChannelConfigs



17267
17268
17269
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17267

def notification_channel_configs
  @notification_channel_configs
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17274
17275
17276
17277
17278
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 17274

def update!(**args)
  @email_config = args[:email_config] if args.key?(:email_config)
  @enable_cloud_logging = args[:enable_cloud_logging] if args.key?(:enable_cloud_logging)
  @notification_channel_configs = args[:notification_channel_configs] if args.key?(:notification_channel_configs)
end