code: def add_metric(self, value, rank=None):
          
          self.conditions.append(
              dict(metric=value, type='metric', rank=rank))
docs: Add a metric to this match condition
          
          :param int value: metric value