@staticmethod
def _get_systat_value(metric, data):
    """
        function that returns the data from the managed object
        :param metric:
        :param data:
        :return:
        """
    if metric == 'systat.kernel.mem.free.mb':
        return float(data.kernel_mem_free)
    elif metric == 'systat.kernel.mem.free.percent':
        return (float(data.kernel_mem_total) - float(data.kernel_mem_free)
            ) / float(data.kernel_mem_free) * 100
    elif metric == 'systat.kernel.mem.total.mb':
        return float(data.kernel_mem_total)
    elif metric == 'systat.kernel.mem.used.percent':
        return float(data.kernel_mem_free) / float(data.kernel_mem_total) * 100
    elif metric == 'systat.kernel.mem.used.mb':
        return float(data.kernel_mem_total) - float(data.kernel_mem_free)
    elif metric == 'systat.cpu.load':
        return float(data.load)
    elif metric == 'systat.system.memory.total.mb':
        return float(data.mem_available)
    elif metric == 'systat.system.memory.cached.mb':
        return float(data.mem_cached)
    else:
        return None
