1 """ 2 This is what job_function needs as parameter for each job to succesfully 3 execute. 4 """ 5 6 7 -class JobInfo: 8 - def __init__(self, hostgroupname, members, hosts, service, threshold, parent=None): 9 self.members = members 10 self.hosts = hosts 11 self.service = service 12 self.threshold = threshold 13 self.parent = parent 14 self.name = hostgroupname + "_" + service.name 15 16 - def __str__(self): 17 return self.name 18 19 - def setLogger(self, log): 20 self.log = log 21 22 - def handleCall(self): 23 pass 24