(self, event, session_num)
return '%i (%s)' % (session_num, account_name)
Creates the session ID for an event.
Creates the session ID for an event.
Creates the session ID for an event .
def getSessionId(self, event, session_num):
        """Creates the session ID for an event."""
        event_id = event.source.get('event_identifier')
        if event_id == 4624:
            account_name = self.getEventData(event, 'TargetUserName')
        else:
            account_name = self.getEventData(event, 'AccountName')
        return '%i (%s)' % (session_num, account_name)
def getSessionId ( self , event , session_num ) : event_id = event . source . get ( 'event_identifier' ) if event_id == 4624 : account_name = self . getEventData ( event , 'TargetUserName' ) else : account_name = self . getEventData ( event , 'AccountName' ) return '%i (%s)' % ( session_num , account_name )