Class: Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaFailurePolicy
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1alpha::GoogleCloudIntegrationsV1alphaFailurePolicy
- 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_time ⇒ String
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/ RESTART_INTEGRATION_WITH_BACKOFF.
-
#max_retries ⇒ Fixnum
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/ RESTART_INTEGRATION_WITH_BACKOFF.
-
#retry_strategy ⇒ String
Defines what happens to the task upon failure.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaFailurePolicy
constructor
A new instance of GoogleCloudIntegrationsV1alphaFailurePolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudIntegrationsV1alphaFailurePolicy
Returns a new instance of GoogleCloudIntegrationsV1alphaFailurePolicy.
6448 6449 6450 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6448 def initialize(**args) update!(**args) end |
Instance Attribute Details
#interval_time ⇒ String
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/
RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for
backoff.
Corresponds to the JSON property intervalTime
6434 6435 6436 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6434 def interval_time @interval_time end |
#max_retries ⇒ Fixnum
Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/
RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the task will be
retried if failed.
Corresponds to the JSON property maxRetries
6441 6442 6443 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6441 def max_retries @max_retries end |
#retry_strategy ⇒ String
Defines what happens to the task upon failure.
Corresponds to the JSON property retryStrategy
6446 6447 6448 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6446 def retry_strategy @retry_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6453 6454 6455 6456 6457 |
# File 'lib/google/apis/integrations_v1alpha/classes.rb', line 6453 def update!(**args) @interval_time = args[:interval_time] if args.key?(:interval_time) @max_retries = args[:max_retries] if args.key?(:max_retries) @retry_strategy = args[:retry_strategy] if args.key?(:retry_strategy) end |