Exception: Sumologic::RateLimitError
- Defined in:
- lib/sumologic.rb
Overview
Rate limit errors (429 responses) Includes retry_after when available from X-RateLimit-Reset or Retry-After headers
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#remaining ⇒ Object
readonly
Returns the value of attribute remaining.
-
#reset_at ⇒ Object
readonly
Returns the value of attribute reset_at.
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(message, retry_after: nil, limit: nil, remaining: nil, reset_at: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, retry_after: nil, limit: nil, remaining: nil, reset_at: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
20 21 22 23 24 25 26 |
# File 'lib/sumologic.rb', line 20 def initialize(, retry_after: nil, limit: nil, remaining: nil, reset_at: nil) super() @retry_after = retry_after @limit = limit @remaining = remaining @reset_at = reset_at end |
Instance Attribute Details
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
18 19 20 |
# File 'lib/sumologic.rb', line 18 def limit @limit end |
#remaining ⇒ Object (readonly)
Returns the value of attribute remaining.
18 19 20 |
# File 'lib/sumologic.rb', line 18 def remaining @remaining end |
#reset_at ⇒ Object (readonly)
Returns the value of attribute reset_at.
18 19 20 |
# File 'lib/sumologic.rb', line 18 def reset_at @reset_at end |
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
18 19 20 |
# File 'lib/sumologic.rb', line 18 def retry_after @retry_after end |