

@classmethod
def get_active_by_window_joined(cls, context, begin, end=None, project_id=None, host=None, expected_attrs=None, use_slave=False):
    'Get instances and joins active during a certain time window.\n\n        :param:context: nova request context\n        :param:begin: datetime for the start of the time window\n        :param:end: datetime for the end of the time window\n        :param:project_id: used to filter instances by project\n        :param:host: used to filter instances on a given compute host\n        :param:expected_attrs: list of related fields that can be joined\n        in the database layer when querying for instances\n        :param use_slave if True, ship this query off to a DB slave\n        :returns: InstanceList\n\n        '
    begin = utils.isotime(begin)
    end = (utils.isotime(end) if end else None)
    return cls._get_active_by_window_joined(context, begin, end, project_id, host, expected_attrs, use_slave=use_slave)

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/objects/instance.py InstanceList.get_active_by_window_joined/original