Class: SupportOps::GitLab::Configuration::Config
- Inherits:
-
Object
- Object
- SupportOps::GitLab::Configuration::Config
- Defined in:
- lib/support_ops_gitlab/gitlab/configuration.rb
Overview
Defined the class Config within the module SupportOps::GitLab::Configuration
Instance Attribute Summary collapse
-
#job_token ⇒ String
The job token to use for authentication.
-
#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.
-
#token ⇒ String
The token to use for authentication.
-
#url ⇒ String
The API url to connect to, it should alwaus be in the format of ‘https://YOUR_DOMAIN.com/api/v4’ (note the lack of a trailing /).
Instance Method Summary collapse
Instance Attribute Details
#job_token ⇒ String
The job token to use for authentication
59 60 61 |
# File 'lib/support_ops_gitlab/gitlab/configuration.rb', line 59 def job_token @job_token end |
#retry_backoff ⇒ Integer
multiplier applied to the retry_interval after each retry attempt, causing exponential backoff. Defaults to 2
59 60 61 |
# File 'lib/support_ops_gitlab/gitlab/configuration.rb', line 59 def retry_backoff @retry_backoff end |
#retry_exceptions ⇒ Array
Specifies which types of exceptions or errors should trigger the retry mechanism.
59 60 61 |
# File 'lib/support_ops_gitlab/gitlab/configuration.rb', line 59 def retry_exceptions @retry_exceptions end |
#retry_interval ⇒ Integer
The base time interval (typically in seconds or milliseconds) between retry attempts. Defaults to 1
59 60 61 |
# File 'lib/support_ops_gitlab/gitlab/configuration.rb', line 59 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
59 60 61 |
# File 'lib/support_ops_gitlab/gitlab/configuration.rb', line 59 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
59 60 61 |
# File 'lib/support_ops_gitlab/gitlab/configuration.rb', line 59 def retry_randomness @retry_randomness end |
#token ⇒ String
The token to use for authentication
59 60 61 |
# File 'lib/support_ops_gitlab/gitlab/configuration.rb', line 59 def token @token end |
#url ⇒ String
The API url to connect to, it should alwaus be in the format of ‘https://YOUR_DOMAIN.com/api/v4’ (note the lack of a trailing /)
59 60 61 |
# File 'lib/support_ops_gitlab/gitlab/configuration.rb', line 59 def url @url end |
Instance Method Details
#client ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/support_ops_gitlab/gitlab/configuration.rb', line 71 def client @client ||= Client.new( job_token: job_token, retry_max: retry_max, retry_interval: retry_interval, retry_randomness: retry_randomness, retry_backoff: retry_backoff, retry_exceptions: retry_exceptions, url: url, token: token ) end |