src/BaiduBce/Services/Lss/LssClient.php
public function getDomainStatistics($domain, $options = array())
    {
        list($config, $startDate, $endDate, $aggregate) = $this->parseOptions(
            $options,
            'config',
            'startDate',
            'endDate',
            'aggregate'
        );

        if (empty($domain)) {
            throw new BceClientException("The parameter domain "
                . "should NOT be null or empty string");
        }
        if (empty($startDate)) {
            throw new BceClientException("The query parameter startDate "
                . "should NOT be null or empty string");
        }
        if (empty($endDate)) {
            throw new BceClientException("The query parameter endDate "
                . "should NOT be null or empty string");
        }

        $params = array(
            'startDate' => $startDate,
            'endDate' => $endDate,
            'aggregate' => $aggregate,
        );

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
                'params' => $params,
            ),
            "/statistics/domain/$domain"
        );
    }
public function getDomainStatistics($domain, $options = array())
    {
        list($config, $startDate, $endDate, $aggregate) = $this->parseOptions(
            $options,
            'config',
            'startDate',
            'endDate',
            'aggregate'
        );

        if (empty($domain)) {
            throw new BceClientException("The parameter domain "
                . "should NOT be null or empty string");
        }
        if (empty($startDate)) {
            throw new BceClientException("The query parameter startDate "
                . "should NOT be null or empty string");
        }
        if (empty($endDate)) {
            throw new BceClientException("The query parameter endDate "
                . "should NOT be null or empty string");
        }

        $params = array(
            'startDate' => $startDate,
            'endDate' => $endDate,
            'aggregate' => $aggregate,
        );

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
                'params' => $params,
            ),
            "/statistics/domain/$domain"
        );
    }
public function getDomainStatistics ( $ domain , $ options = array ( ) ) { list ( $ config , $ startDate , $ endDate , $ aggregate ) = $ this -> parseOptions ( $ options , 'config' , 'startDate' , 'endDate' , 'aggregate' ) ; if ( empty ( $ domain ) ) { throw new BceClientException ( "The parameter domain " . "should NOT be null or empty string" ) ; } if ( empty ( $ startDate ) ) { throw new BceClientException ( "The query parameter startDate " . "should NOT be null or empty string" ) ; } if ( empty ( $ endDate ) ) { throw new BceClientException ( "The query parameter endDate " . "should NOT be null or empty string" ) ; } $ params = array ( 'startDate' => $ startDate , 'endDate' => $ endDate , 'aggregate' => $ aggregate , ) ; return $ this -> sendRequest ( HttpMethod :: GET , array ( 'config' => $ config , 'params' => $ params , ) , "/statistics/domain/$domain" ) ; }
Get domain static info.

@param $domain string, name of play domain
@param array $options Supported options:
{
config: the optional bce configuration, which will overwrite the
default client configuration that was passed in constructor.
}
@return mixed
@throws BceClientException
Get domain static info .