Class: Google::Apis::EventarcV1::GoogleCloudEventarcV1PipelineRetryPolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/eventarc_v1/classes.rb,
lib/google/apis/eventarc_v1/representations.rb,
lib/google/apis/eventarc_v1/representations.rb

Overview

The retry policy configuration for the Pipeline. The pipeline exponentially backs off in case the destination is non responsive or returns a retryable error code. The default semantics are as follows: The backoff starts with a 5 second delay and doubles the delay after each failed attempt (10 seconds, 20 seconds, 40 seconds, etc.). The delay is capped at 60 seconds by default. Please note that if you set the min_retry_delay and max_retry_delay fields to the same value this will make the duration between retries constant.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudEventarcV1PipelineRetryPolicy

Returns a new instance of GoogleCloudEventarcV1PipelineRetryPolicy.



1310
1311
1312
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1310

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#max_attemptsFixnum

Optional. The maximum number of delivery attempts for any message. The value must be between 1 and 100. The default value for this field is 5. Corresponds to the JSON property maxAttempts

Returns:

  • (Fixnum)


1296
1297
1298
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1296

def max_attempts
  @max_attempts
end

#max_retry_delayString

Optional. The maximum amount of seconds to wait between retry attempts. The value must be between 0 and 600. The default value for this field is 60. Corresponds to the JSON property maxRetryDelay

Returns:

  • (String)


1302
1303
1304
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1302

def max_retry_delay
  @max_retry_delay
end

#min_retry_delayString

Optional. The minimum amount of seconds to wait between retry attempts. The value must be between 0 and 600. The default value for this field is 5. Corresponds to the JSON property minRetryDelay

Returns:

  • (String)


1308
1309
1310
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1308

def min_retry_delay
  @min_retry_delay
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1315
1316
1317
1318
1319
# File 'lib/google/apis/eventarc_v1/classes.rb', line 1315

def update!(**args)
  @max_attempts = args[:max_attempts] if args.key?(:max_attempts)
  @max_retry_delay = args[:max_retry_delay] if args.key?(:max_retry_delay)
  @min_retry_delay = args[:min_retry_delay] if args.key?(:min_retry_delay)
end