Module | Rightscale::RightGogridInterface |
In: |
lib/gogrid_base.rb
|
DEFAULT_GOGRID_URL | = | 'https://api.gogrid.com/api' | ||
DEFAULT_VERSION | = | '1.0' | ||
DEFAULT_FORMAT | = | 'json' | ||
GOGRID_PROBLEMS | = | [ #'Forbidden', 'internal service error', 'is currently unavailable', 'no response from', 'Please try again', 'InternalError', 'ServiceUnavailable', 'Unavailable', 'This application is not currently available', 'InsufficientInstanceCapacity' | If found in an error message returned by Gogrid, these phrases indicate a transient error. Transient errors are automatically retried with exponential back-off. |
cache | [R] | Cache |
connection | [R] | RightHttpConnection instance |
gogrid_api_key | [R] | Current Gogrid API key |
gogrid_secret | [R] | Current Gogrid secret key |
last_errors | [RW] | Last Gogrid errors list (used by GogridErrorHandler) |
last_request | [R] | Last HTTP request object |
last_response | [R] | Last HTTP response object |
logger | [RW] | Logger object |
params | [RW] | Initial params hash |
Returns a list of Gogrid responses which are known to be transient problems. We have to re-request if we get any of them, because the problem will probably disappear. By default this method returns the same value as the GOGRID_PROBLEMS const.