useful beyond autoscaling i think; move to a package `brooklyn.policy.util` ?
(but again can be follow-on pull request)