Class: Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoFailurePolicy
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::EnterpriseCrmEventbusProtoFailurePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1alpha/classes.rb,
lib/google/apis/integrations_v1alpha/representations.rb,
lib/google/apis/integrations_v1alpha/representations.rb
Overview
Policy that defines the task retry logic and failure type. If no FailurePolicy
is defined for a task, all its dependent tasks will not be executed (i.e, a
retry_strategy of NONE will be applied).
Instance Attribute Summary collapse
-
#interval_in_seconds ⇒ Fixnum
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/ RESTART_WORKFLOW_WITH_BACKOFF.
-
#max_num_retries ⇒ Fixnum
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/ RESTART_WORKFLOW_WITH_BACKOFF.
-
#retry_strategy ⇒ String
Defines what happens to the task upon failure.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnterpriseCrmEventbusProtoFailurePolicy
constructor
A new instance of EnterpriseCrmEventbusProtoFailurePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnterpriseCrmEventbusProtoFailurePolicy
Returns a new instance of EnterpriseCrmEventbusProtoFailurePolicy.
1094 1095 1096 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1094 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interval_in_seconds ⇒ Fixnum
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/
RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for backoff.
Corresponds to the JSON property intervalInSeconds
1080 1081 1082 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1080 def interval_in_seconds @interval_in_seconds end |
#max_num_retries ⇒ Fixnum
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/
RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task will be
retried if failed.
Corresponds to the JSON property maxNumRetries
1087 1088 1089 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1087 def max_num_retries @max_num_retries end |
#retry_strategy ⇒ String
Defines what happens to the task upon failure.
Corresponds to the JSON property retryStrategy
1092 1093 1094 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1092 def retry_strategy @retry_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1099 1100 1101 1102 1103 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 1099 def update!(**args) @interval_in_seconds = args[:interval_in_seconds] if args.key?(:interval_in_seconds) @max_num_retries = args[:max_num_retries] if args.key?(:max_num_retries) @retry_strategy = args[:retry_strategy] if args.key?(:retry_strategy) end |