src/Analytics.php
public function getTotal($rp, $metric, $tags) {
        try {
            $todayDt = date("Y-m-d") . "T00:00:00Z";
            
            return  $this->mapper->getRpSum('forever', $metric, $tags) +
                    $this->mapper->getRpSum($rp, $metric, $tags, $todayDt) +
                    $this->mapper->getSum($metric, $tags);
        } catch (Exception $e) {
            throw new AnalyticsException("Analytics client get total exception", 0, $e);
        }
    }
public function getTotal($rp, $metric, $tags) {
        try {
            $todayDt = date("Y-m-d") . "T00:00:00Z";
            
            return  $this->mapper->getRpSum('forever', $metric, $tags) +
                    $this->mapper->getRpSum($rp, $metric, $tags, $todayDt) +
                    $this->mapper->getSum($metric, $tags);
        } catch (Exception $e) {
            throw new AnalyticsException("Analytics client get total exception", 0, $e);
        }
    }
public function getTotal ( $ rp , $ metric , $ tags ) { try { $ todayDt = date ( "Y-m-d" ) . "T00:00:00Z" ; return $ this -> mapper -> getRpSum ( 'forever' , $ metric , $ tags ) + $ this -> mapper -> getRpSum ( $ rp , $ metric , $ tags , $ todayDt ) + $ this -> mapper -> getSum ( $ metric , $ tags ) ; } catch ( Exception $ e ) { throw new AnalyticsException ( "Analytics client get total exception" , 0 , $ e ) ; } }
Returns analytics total for right metric

@param string $rp
@param string $metric
@param array $tags
@return int
@throws AnalyticsException
Returns analytics total for right metric