def list_rse_usage_history(rse, issuer, source=None): """ List RSE usage history information. :param rse: The RSE name. :param issuer: The issuer account. :param source: The source of the usage information (srm, rucio). :returns: A list of historic RSE usage. """ return rse_module.list_rse_usage_history(rse=rse, source=source)
def list_rse_usage_history(rse, issuer, source=None): """ List RSE usage history information. :param rse: The RSE name. :param issuer: The issuer account. :param source: The source of the usage information (srm, rucio). :returns: A list of historic RSE usage. """ return rse_module.list_rse_usage_history(rse=rse, source=source)
def list_rse_usage_history(rse, issuer, source=None): """ List RSE usage history information. :param rse: The RSE name. :param issuer: The issuer account. :param source: The source of the usage information (srm, rucio). :returns: A list of historic RSE usage. """ rse_id = rse_module.get_rse_id(rse=rse) for u in rse_module.list_rse_usage_history(rse_id=rse_id, source=source): yield api_update_return_dict(u)
def list_rse_usage_history(rse, issuer, source=None, vo='def', session=None): """ List RSE usage history information. :param rse: The RSE name. :param issuer: The issuer account. :param source: The source of the usage information (srm, rucio). :param vo: The VO to act on. :param session: The database session in use. :returns: A list of historic RSE usage. """ rse_id = rse_module.get_rse_id(rse=rse, vo=vo, session=session) for u in rse_module.list_rse_usage_history(rse_id=rse_id, source=source, session=session): yield api_update_return_dict(u, session=session)