@extract_id(Ticket)<EOL><INDENT>def metrics(self, ticket):<DEDENT>
return self._query_zendesk(self.endpoint.metrics, '<STR_LIT>', id=ticket)<EOL>
Retrieve TicketMetric.

:param ticket: Ticket object or id