<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):
 """ Queue a metric. Flushing queue if batch size reached """

        if self._match_metric(metric):
            self.metrics.append(metric)
        if self.should_flush():
            self._send()