Class: Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaFailurePolicy
- Inherits:
-
Object
- Object
- Google::Apis::IntegrationsV1::GoogleCloudIntegrationsV1alphaFailurePolicy
- 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
-
#condition ⇒ String
Optional.
-
#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.
8098 8099 8100 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 8098 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition ⇒ String
Optional. The string condition that will be evaluated to determine if the task
should be retried with this failure policy.
Corresponds to the JSON property condition
8077 8078 8079 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 8077 def condition @condition end |
#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
8084 8085 8086 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 8084 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
8091 8092 8093 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 8091 def max_retries @max_retries end |
#retry_strategy ⇒ String
Defines what happens to the task upon failure.
Corresponds to the JSON property retryStrategy
8096 8097 8098 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 8096 def retry_strategy @retry_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8103 8104 8105 8106 8107 8108 |
# File 'lib/google/apis/integrations_v1/classes.rb', line 8103 def update!(**args) @condition = args[:condition] if args.key?(:condition) @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 |