Google\Cloud\Logging\V2\MetricsServiceV2Client::parseProjectFromMetricName PHP Method

parseProjectFromMetricName() public static method

Parses the project from the given fully-qualified path which represents a metric resource.
public static parseProjectFromMetricName ( $metricName )
    public static function parseProjectFromMetricName($metricName)
    {
        return self::getMetricNameTemplate()->match($metricName)['project'];
    }