swh.icinga_plugins.deposit module#

swh.icinga_plugins.deposit.requests_get(url: str, params: Dict = {})[source]#

Get queries with retry on throttling exception.

Remaining issues (< 429) are to be dealt with with the client call code.

class swh.icinga_plugins.deposit.DepositCheck(obj)[source]#

Bases: BaseCheck

TYPE = 'DEPOSIT'#
DEFAULT_WARNING_THRESHOLD = 120#
DEFAULT_CRITICAL_THRESHOLD = 3600#
upload_deposit()[source]#
update_deposit_with_metadata() Dict[str, Any][source]#

Trigger a metadata update on the deposit once it’s completed.

get_deposit_status()[source]#
wait_while_status(statuses, start_time, metrics, result)[source]#
main()[source]#