Class: Gitlab::SidekiqLimits::Limit
- Inherits:
-
Struct
- Object
- Struct
- Gitlab::SidekiqLimits::Limit
- Defined in:
- lib/gitlab/sidekiq_limits.rb
Overview
name - <Symbol> name of the limit to be used in ApplicationRateLimiter resource_key - <Symbol> Key in SafeRequestStore which tracks a resource usage scopes - <String> Key in ApplicationContext or the worker_name metadata - <Hash> Hash containing metadata for various usage, e.g. emitting extra logs/metrics
or further logic checks before throttling.
threshold - <Integer> Maximum resource usage given an interval interval - <Integer> Seconds before a resource usage tracking is refreshed
Instance Attribute Summary collapse
-
#interval ⇒ Object
Returns the value of attribute interval.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#name ⇒ Object
Returns the value of attribute name.
-
#resource_key ⇒ Object
Returns the value of attribute resource_key.
-
#scopes ⇒ Object
Returns the value of attribute scopes.
-
#threshold ⇒ Object
Returns the value of attribute threshold.
Instance Attribute Details
#interval ⇒ Object
Returns the value of attribute interval
82 83 84 |
# File 'lib/gitlab/sidekiq_limits.rb', line 82 def interval @interval end |
#metadata ⇒ Object
Returns the value of attribute metadata
82 83 84 |
# File 'lib/gitlab/sidekiq_limits.rb', line 82 def end |
#name ⇒ Object
Returns the value of attribute name
82 83 84 |
# File 'lib/gitlab/sidekiq_limits.rb', line 82 def name @name end |
#resource_key ⇒ Object
Returns the value of attribute resource_key
82 83 84 |
# File 'lib/gitlab/sidekiq_limits.rb', line 82 def resource_key @resource_key end |
#scopes ⇒ Object
Returns the value of attribute scopes
82 83 84 |
# File 'lib/gitlab/sidekiq_limits.rb', line 82 def scopes @scopes end |
#threshold ⇒ Object
Returns the value of attribute threshold
82 83 84 |
# File 'lib/gitlab/sidekiq_limits.rb', line 82 def threshold @threshold end |