def _on_capacity_data(self, conn, command, kwargs, response, capacity):
if self._analyzing:<EOL><INDENT>self.consumed_capacities.append((command, capacity))<EOL><DEDENT>if self._query_rate_limit is not None:<EOL><INDENT>self._query_rate_limit.on_capacity(<EOL>conn, command, kwargs, response, capacity<EOL>)<EOL><DEDENT>elif self.rate_limit is not None:<EOL><INDENT>self.rate_limit.callback = self._on_throttle<EOL>self.rate_limit.on_capacity(conn, command, kwargs, response, capacity)<EOL><DEDENT>
Log the received consumed capacity data