def getPathPrefix(self):
        # If we don't have a host name, assume it's just the first part of the
        # metric path
        if self.host is None:
            return self.path.split('.')[0]

        offset = self.path.index(self.host) - 1
        return self.path[0:offset]
Returns the path prefix path
dataset/ETHPy150Open python-diamond/Diamond/src/diamond/metric.py/Metric.getPathPrefix