<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def add_scan_alarm(self, scan_id, host='', name='', value='', port='', test_id='', severity='', qod=''):
 """ Adds an alarm result to scan_id scan. """

        self.scan_collection.add_result(scan_id, ResultType.ALARM, host, name,
                                        value, port, test_id, severity, qod)