def __init__(self, vm_name): """ Initialize our sensor """ # Set our variables self.vm_name = vm_name self.name = vm_name+"-CPUSensor" CPUSensor.__init__(self)
def __init__(self, vm_name): """ Initialize our sensor """ # Set our variables self.vm_name = vm_name self.name = vm_name + "-CPUSensor" CPUSensor.__init__(self)
def __init__(self, sensor_ip, sensor_port=G.SENSOR_CPU.DEFAULT_PORT, name=None): """ Initialize our sensor """ # Set our variables self.sensor_ip = sensor_ip self.sensor_port = sensor_port if name is not None: self.name = name CPUSensor.__init__(self)