public function ping($params = [], $optParams = [])
    {
        return $this->sendRequest([], [
            'restAction' => 'view',
            'restId' => 'ping',
            'getParams' => $optParams,
        ], function ($response) {
            return isset($response->data) ? new Ping($response->data) : $response;
        });
    }
public function ping($params = [], $optParams = [])
    {
        return $this->sendRequest([], [
            'restAction' => 'view',
            'restId' => 'ping',
            'getParams' => $optParams,
        ], function ($response) {
            return isset($response->data) ? new Ping($response->data) : $response;
        });
    }
public function ping ( $ params = [ ] , $ optParams = [ ] ) { return $ this -> sendRequest ( [ ] , [ 'restAction' => 'view' , 'restId' => 'ping' , 'getParams' => $ optParams , ] , function ( $ response ) { return isset ( $ response -> data ) ? new Ping ( $ response -> data ) : $ response ; } ) ; }
Pings a Shardimage server and fetches statistical data about the request.

@param array $params    Required API parameters
@param array $optParams Optional API parameters

@return Ping|Response
Pings a Shardimage server and fetches statistical data about the request .