Class: Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoFailurePolicy
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoFailurePolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/integrations_v1/classes.rb,
lib/google/apis/integrations_v1/representations.rb,
lib/google/apis/integrations_v1/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_condition ⇒ String
Optional.
-
#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.
1298 1299 1300 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 1298 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
1278 1279 1280 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 1278 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
1285 1286 1287 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 1285 def max_num_retries @max_num_retries end |
#retry_condition ⇒ String
Optional. The retry condition that will be evaluated for this failure policy
with the corresponding retry strategy.
Corresponds to the JSON property retryCondition
1291 1292 1293 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 1291 def retry_condition @retry_condition end |
#retry_strategy ⇒ String
Defines what happens to the task upon failure.
Corresponds to the JSON property retryStrategy
1296 1297 1298 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 1296 def retry_strategy @retry_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1303 1304 1305 1306 1307 1308 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 1303 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_condition = args[:retry_condition] if args.key?(:retry_condition) @retry_strategy = args[:retry_strategy] if args.key?(:retry_strategy) end |