Metrics based rules