@contract
def threshold_factory(time_step, migration_time, params):
    return lambda utilization, state=None: (threshold(params['threshold'],
                                                      utilization),
                                            {})
Creates the static CPU utilization threshold algorithm.
dataset/ETHPy150Open beloglazov/openstack-neat/neat/locals/overload/trivial.py/threshold_factory