linspector-old/lib/core/job.py
2013-05-27 02:29:39 +02:00

21 lines
493 B
Python

"""
This is what job_function needs as parameter for each job to succesfully
execute.
"""
class JobInfo:
def __init__(self, hostgroupname, members, hosts, service, threshold, parent=None):
self.members = members
self.hosts = hosts
self.service = service
self.threshold = threshold
self.parent = parent
self.name = hostgroupname + "_" + service.name
def __str__(self):
return self.name