<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def process(self, metric):
 """ process a single metric @type metric: diamond.metric.Metric @param metric: metric to process @rtype None """

        for rule in self.rules:
            rule.process(metric, self)