(self)
return self.path[offset:endoffset]
Returns collector path
            servers.host.cpu.total.idle
            return "cpu"
Returns collector path
            servers.host.cpu.total.idle
            return "cpu"
Returns collector path servers . host . cpu . total . idle return cpu
def getCollectorPath(self):
        """
            Returns collector path
            servers.host.cpu.total.idle
            return "cpu"
        """
        # If we don't have a host name, assume it's just the third part of the
        # metric path
        if self.host is None:
            return self.path.split('.')[2]

        offset = self.path.index(self.host)
        offset += len(self.host) + 1
        endoffset = self.path.index('.', offset)
        return self.path[offset:endoffset]
def getCollectorPath ( self ) : # If we don't have a host name, assume it's just the third part of the # metric path if self . host is None : return self . path . split ( '.' ) [ 2 ] offset = self . path . index ( self . host ) offset += len ( self . host ) + 1 endoffset = self . path . index ( '.' , offset ) return self . path [ offset : endoffset ]