Class: SupportOps::Slack::Configuration::Config
- Inherits:
-
Object
- Object
- SupportOps::Slack::Configuration::Config
- Defined in:
- lib/support_ops_slack/slack/configuration.rb
Overview
Defined the class Config within the module SupportOps::Slack::Configuration
Instance Attribute Summary collapse
-
#retry_backoff ⇒ Integer
multiplier applied to the retry_interval after each retry attempt, causing exponential backoff.
-
#retry_exceptions ⇒ Array
Specifies which types of exceptions or errors should trigger the retry mechanism.
-
#retry_interval ⇒ Integer
The base time interval (typically in seconds or milliseconds) between retry attempts.
-
#retry_max ⇒ Integer
The maximum number of retry attempts that will be made when an operation fails.
-
#retry_randomness ⇒ Float
Adds a random element to the retry interval to prevent “thundering herd” problems where many systems retry simultaneously.
-
#url ⇒ String
The URL to use.
Instance Method Summary collapse
Instance Attribute Details
#retry_backoff ⇒ Integer
multiplier applied to the retry_interval after each retry attempt, causing exponential backoff. Defaults to 2
54 55 56 |
# File 'lib/support_ops_slack/slack/configuration.rb', line 54 def retry_backoff @retry_backoff end |
#retry_exceptions ⇒ Array
Specifies which types of exceptions or errors should trigger the retry mechanism.
54 55 56 |
# File 'lib/support_ops_slack/slack/configuration.rb', line 54 def retry_exceptions @retry_exceptions end |
#retry_interval ⇒ Integer
The base time interval (typically in seconds or milliseconds) between retry attempts. Defaults to 1
54 55 56 |
# File 'lib/support_ops_slack/slack/configuration.rb', line 54 def retry_interval @retry_interval end |
#retry_max ⇒ Integer
The maximum number of retry attempts that will be made when an operation fails. Defaults to 5
54 55 56 |
# File 'lib/support_ops_slack/slack/configuration.rb', line 54 def retry_max @retry_max end |
#retry_randomness ⇒ Float
Adds a random element to the retry interval to prevent “thundering herd” problems where many systems retry simultaneously. Defaults to 0.5
54 55 56 |
# File 'lib/support_ops_slack/slack/configuration.rb', line 54 def retry_randomness @retry_randomness end |
#url ⇒ String
The URL to use
54 55 56 |
# File 'lib/support_ops_slack/slack/configuration.rb', line 54 def url @url end |
Instance Method Details
#client ⇒ Object
66 67 68 69 70 71 72 73 74 75 |
# File 'lib/support_ops_slack/slack/configuration.rb', line 66 def client @client ||= Client.new( retry_max: retry_max, retry_interval: retry_interval, retry_randomness: retry_randomness, retry_backoff: retry_backoff, retry_exceptions: retry_exceptions, url: url ) end |