Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfigAlertPolicy

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

Overview

Alert policy for a customer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaAlertConfigAlertPolicy

Returns a new instance of GoogleCloudRetailV2betaAlertConfigAlertPolicy.



2686
2687
2688
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2686

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)


2673
2674
2675
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2673

def alert_group
  @alert_group
end

#enroll_statusString

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

Returns:

  • (String)


2678
2679
2680
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2678

def enroll_status
  @enroll_status
end

#recipientsArray<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaAlertConfigAlertPolicyRecipient>

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



2684
2685
2686
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2684

def recipients
  @recipients
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2691
2692
2693
2694
2695
# File 'lib/google/apis/retail_v2beta/classes.rb', line 2691

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