def get_metrics(self, name=None):
return self._get_elements(self.metrics, '<STR_LIT>', Metric, name=name)<EOL>
Get metrics for this resource.

        Args:
            name(str, optional): Only return metrics matching `name`, where `name` can be a regular expression.  If
                `name` is not supplied, then all metrics for this resource are returned.

        Returns:
             list(Metric): List of matching metrics.