@staticmethod
def __get_cpu_and_memory(resources):
    """
        Get CPU and MEMORY information from given resources object.

        :param resources: resources json object
        :return: cpu and memory
        """
    cpu = '-'
    memory = '-'
    for resource in resources:
        if resource['name'] == 'CPU':
            cpu = resource['integerValue'] / 1024
        elif resource['name'] == 'MEMORY':
            memory = resource['integerValue']
    return cpu, memory
