def analytics(self): debug_output( "(ip analytics for %s)" % self['value']) new = [] # get reverse hostname hostname = toolbox.reverse_dns(self['value']) if hostname: new.append(('reverse', Hostname(hostname))) self['last_analysis'] = datetime.datetime.utcnow() self['next_analysis'] = self['last_analysis'] + datetime.timedelta(seconds=self['refresh_period']) return new
def analytics(self): debug_output( "(ip analytics for %s)" % self['value']) new = [] # get reverse hostname hostname = toolbox.reverse_dns(self['value']) if hostname: if toolbox.is_hostname(hostname): new.append(('reverse', Hostname(hostname))) self['last_analysis'] = datetime.datetime.utcnow() self['next_analysis'] = self['last_analysis'] + datetime.timedelta(seconds=self['refresh_period']) return new