Scalr\Api\Service\User\V1beta0\Controller\ScalingMetrics::fetchAction PHP Method

fetchAction() public method

Fetches detailed info about the Scaling Metric
public fetchAction ( string $metricName ) : Scalr\Api\DataType\ResultEnvelope
$metricName string Scaling metric's name.
return Scalr\Api\DataType\ResultEnvelope
    public function fetchAction($metricName)
    {
        $this->checkPermissions(Acl::RESOURCE_GENERAL_CUSTOM_SCALING_METRICS);
        return $this->result($this->adapter('scalingMetric')->toData($this->getScalingMetric($metricName)));
    }