Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicy

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

Overview

Alert policy for a customer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaAlertConfigAlertPolicy

Returns a new instance of GoogleCloudRetailV2alphaAlertConfigAlertPolicy.



1431
1432
1433
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1431

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

Instance Attribute Details

#alert_groupString

The feature that provides alerting capability. Supported value: - search-data- quality for retail search customers. - conv-data-quality for retail conversation customers. Corresponds to the JSON property alertGroup

Returns:

  • (String)


1418
1419
1420
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1418

def alert_group
  @alert_group
end

#enroll_statusString

The enrollment status of a customer. Corresponds to the JSON property enrollStatus

Returns:

  • (String)


1423
1424
1425
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1423

def enroll_status
  @enroll_status
end

#recipientsArray<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicyRecipient>

Recipients for the alert policy. One alert policy should not exceed 20 recipients. Corresponds to the JSON property recipients



1429
1430
1431
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1429

def recipients
  @recipients
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1436
1437
1438
1439
1440
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1436

def update!(**args)
  @alert_group = args[:alert_group] if args.key?(:alert_group)
  @enroll_status = args[:enroll_status] if args.key?(:enroll_status)
  @recipients = args[:recipients] if args.key?(:recipients)
end