Пример #1
0
 def __init__(self, vm_name):
     """ Initialize our sensor """
     
     # Set our variables
     self.vm_name = vm_name
     self.name = vm_name+"-CPUSensor"
     
     CPUSensor.__init__(self)
Пример #2
0
    def __init__(self, vm_name):
        """ Initialize our sensor """

        # Set our variables
        self.vm_name = vm_name
        self.name = vm_name + "-CPUSensor"

        CPUSensor.__init__(self)
Пример #3
0
 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)