src/BaiduBce/Services/Lss/LssClient.php
public function listStreams($domain, $options = array())
    {
        list($config, $status, $marker, $maxSize) = $this->parseOptions($options, 'config', 'status', 'marker', 'maxSize');

        $params = array();

        if (empty($domain)) {
            throw new BceClientException("The parameter domain "
                . "should NOT be null or empty string");
        }
        if ($status !== null) {
            $params['status'] = $status;
        }
        if ($marker !== null) {
            $params['marker'] = $marker;
        }
        if ($maxSize !== null) {
            $params['maxSize'] = $maxSize;
        }

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
                'params' => $params,
            ),
            "/domain/$domain/stream"
        );
    }
public function listStreams($domain, $options = array())
    {
        list($config, $status, $marker, $maxSize) = $this->parseOptions($options, 'config', 'status', 'marker', 'maxSize');

        $params = array();

        if (empty($domain)) {
            throw new BceClientException("The parameter domain "
                . "should NOT be null or empty string");
        }
        if ($status !== null) {
            $params['status'] = $status;
        }
        if ($marker !== null) {
            $params['marker'] = $marker;
        }
        if ($maxSize !== null) {
            $params['maxSize'] = $maxSize;
        }

        return $this->sendRequest(
            HttpMethod::GET,
            array(
                'config' => $config,
                'params' => $params,
            ),
            "/domain/$domain/stream"
        );
    }
public function listStreams ( $ domain , $ options = array ( ) ) { list ( $ config , $ status , $ marker , $ maxSize ) = $ this -> parseOptions ( $ options , 'config' , 'status' , 'marker' , 'maxSize' ) ; $ params = array ( ) ; if ( empty ( $ domain ) ) { throw new BceClientException ( "The parameter domain " . "should NOT be null or empty string" ) ; } if ( $ status !== null ) { $ params [ 'status' ] = $ status ; } if ( $ marker !== null ) { $ params [ 'marker' ] = $ marker ; } if ( $ maxSize !== null ) { $ params [ 'maxSize' ] = $ maxSize ; } return $ this -> sendRequest ( HttpMethod :: GET , array ( 'config' => $ config , 'params' => $ params , ) , "/domain/$domain/stream" ) ; }
List streams.

@param array $options Supported options:
{
config: the optional bce configuration, which will overwrite the
default client configuration that was passed in constructor.
status: stream status, READY / ONGOING / PAUSED
marker: query marker.
maxSize: max number of listed sessions.
}
@return mixed stream list
List streams .