Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig

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

Overview

The connector level alert config.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAlertPolicyConfig.



7113
7114
7115
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7113

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

Instance Attribute Details

#alert_enrollmentsArray<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1alphaAlertPolicyConfigAlertEnrollment>

Optional. The enrollment states of each alert. Corresponds to the JSON property alertEnrollments



7106
7107
7108
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7106

def alert_enrollments
  @alert_enrollments
end

#alert_policy_nameString

Immutable. The fully qualified resource name of the AlertPolicy. Corresponds to the JSON property alertPolicyName

Returns:

  • (String)


7111
7112
7113
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7111

def alert_policy_name
  @alert_policy_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7118
7119
7120
7121
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 7118

def update!(**args)
  @alert_enrollments = args[:alert_enrollments] if args.key?(:alert_enrollments)
  @alert_policy_name = args[:alert_policy_name] if args.key?(:alert_policy_name)
end