public Observable<ConnectivityInformationInner> checkConnectivityAsync(String resourceGroupName, String networkWatcherName, ConnectivityParameters parameters) {
        return checkConnectivityWithServiceResponseAsync(resourceGroupName, networkWatcherName, parameters).map(new Func1<ServiceResponse<ConnectivityInformationInner>, ConnectivityInformationInner>() {
            @Override
            public ConnectivityInformationInner call(ServiceResponse<ConnectivityInformationInner> response) {
                return response.body();
            }
        });
    }
public Observable < ConnectivityInformationInner > checkConnectivityAsync ( String resourceGroupName , String networkWatcherName , ConnectivityParameters parameters ) { return checkConnectivityWithServiceResponseAsync ( resourceGroupName , networkWatcherName , parameters ) . map ( new Func1 < ServiceResponse < ConnectivityInformationInner > , ConnectivityInformationInner > ( ) { @ Override public ConnectivityInformationInner call ( ServiceResponse < ConnectivityInformationInner > response ) { return response . body ( ) ; } } ) ; }
Verifies the possibility of establishing a direct TCP connection from a virtual machine to a given endpoint including another VM or an arbitrary remote server.

@param resourceGroupName The name of the network watcher resource group.
@param networkWatcherName The name of the network watcher resource.
@param parameters Parameters that determine how the connectivity check will be performed.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable for the request