@classmethod
def match_project_from_metric_name(cls, metric_name):
    """Parses the project from a metric resource.

        Args:
          metric_name (string): A fully-qualified path representing a metric
            resource.

        Returns:
          A string representing the project.
        """
    return cls._METRIC_PATH_TEMPLATE.match(metric_name).get('project')
