<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def metrics(self, ticket):
 """ Retrieve TicketMetric. :param ticket: Ticket object or id """

        return self._query_zendesk(self.endpoint.metrics, 'ticket_metric', id=ticket)