示例#1
0
    def add_additional_info_to_hit(self,hit_time=None, additional_info={}):
        try:
            hit_time = hit_time or self._drop['hit_time']
        except:
            hit_time = self._drop['hit_time'] = datetime.datetime.utcnow().strftime("%s.%f")

        if hit_time not in get_canarydrop_triggered_list(self.canarytoken):
            self.add_canarydrop_hit()

        add_additional_info_to_hit(self.canarytoken, hit_time, additional_info)
示例#2
0
    def add_additional_info_to_hit(self,hit_time=None, additional_info={}):
        try:
            hit_time = hit_time or self._drop['hit_time']
        except:
            hit_time = self._drop['hit_time'] = datetime.datetime.utcnow().strftime("%s.%f")

        if hit_time not in get_canarydrop_triggered_list(self.canarytoken):
            self.add_canarydrop_hit()

        add_additional_info_to_hit(self.canarytoken, hit_time, additional_info)