(self)
return self.path[offset:]
Returns the metric path after the collector name
            servers.host.cpu.total.idle
            return "total.idle"
Returns the metric path after the collector name
            servers.host.cpu.total.idle
            return "total.idle"
Returns the metric path after the collector name servers . host . cpu . total . idle return total . idle
def getMetricPath(self):
        """
            Returns the metric path after the collector name
            servers.host.cpu.total.idle
            return "total.idle"
        """
        # If we don't have a host name, assume it's just the fourth+ part of the
        # metric path
        if self.host is None:
            path = self.path.split('.')[3:]
            return '.'.join(path)

        prefix = '.'.join([self.getPathPrefix(), self.host,
                           self.getCollectorPath()])

        offset = len(prefix) + 1
        return self.path[offset:]
def getMetricPath ( self ) : # If we don't have a host name, assume it's just the fourth+ part of the # metric path if self . host is None : path = self . path . split ( '.' ) [ 3 : ] return '.' . join ( path ) prefix = '.' . join ( [ self . getPathPrefix ( ) , self . host , self . getCollectorPath ( ) ] ) offset = len ( prefix ) + 1 return self . path [ offset : ]