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.
1430 1431 1432 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1430 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alert_group ⇒ String
The feature that provides alerting capability. Supported value is only search-
data-quality
for now.
Corresponds to the JSON property alertGroup
1417 1418 1419 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1417 def alert_group @alert_group end |
#enroll_status ⇒ String
The enrollment status of a customer.
Corresponds to the JSON property enrollStatus
1422 1423 1424 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1422 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
1428 1429 1430 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1428 def recipients @recipients end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1435 1436 1437 1438 1439 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 1435 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 |