Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicy
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicy
- 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
-
#alert_group ⇒ String
The feature that provides alerting capability.
-
#enroll_status ⇒ String
The enrollment status of a customer.
-
#recipients ⇒ Array<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaAlertConfigAlertPolicyRecipient>
Recipients for the alert policy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaAlertConfigAlertPolicy
constructor
A new instance of GoogleCloudRetailV2alphaAlertConfigAlertPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_group ⇒ String
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
1418 1419 1420 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1418 def alert_group @alert_group end |
#enroll_status ⇒ String
The enrollment status of a customer.
Corresponds to the JSON property enrollStatus
1423 1424 1425 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1423 def enroll_status @enroll_status end |
#recipients ⇒ Array<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 |