public Observable<ServiceResponse<DiagnosticDetectorResponseInner>> executeSiteDetectorSlotWithServiceResponseAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, String slot, DateTime startTime, DateTime endTime, String timeGrain) {
        if (resourceGroupName == null) {
            throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
        }
        if (siteName == null) {
            throw new IllegalArgumentException("Parameter siteName is required and cannot be null.");
        }
        if (detectorName == null) {
            throw new IllegalArgumentException("Parameter detectorName is required and cannot be null.");
        }
        if (diagnosticCategory == null) {
            throw new IllegalArgumentException("Parameter diagnosticCategory is required and cannot be null.");
        }
        if (slot == null) {
            throw new IllegalArgumentException("Parameter slot is required and cannot be null.");
        }
        if (this.client.subscriptionId() == null) {
            throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null.");
        }
        if (this.client.apiVersion() == null) {
            throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null.");
        }
        return service.executeSiteDetectorSlot(resourceGroupName, siteName, detectorName, diagnosticCategory, slot, this.client.subscriptionId(), startTime, endTime, timeGrain, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent())
            .flatMap(new Func1<Response<ResponseBody>, Observable<ServiceResponse<DiagnosticDetectorResponseInner>>>() {
                @Override
                public Observable<ServiceResponse<DiagnosticDetectorResponseInner>> call(Response<ResponseBody> response) {
                    try {
                        ServiceResponse<DiagnosticDetectorResponseInner> clientResponse = executeSiteDetectorSlotDelegate(response);
                        return Observable.just(clientResponse);
                    } catch (Throwable t) {
                        return Observable.error(t);
                    }
                }
            });
    }
public Observable < ServiceResponse < DiagnosticDetectorResponseInner > > executeSiteDetectorSlotWithServiceResponseAsync ( String resourceGroupName , String siteName , String detectorName , String diagnosticCategory , String slot , DateTime startTime , DateTime endTime , String timeGrain ) { if ( resourceGroupName == null ) { throw new IllegalArgumentException ( "Parameter resourceGroupName is required and cannot be null." ) ; } if ( siteName == null ) { throw new IllegalArgumentException ( "Parameter siteName is required and cannot be null." ) ; } if ( detectorName == null ) { throw new IllegalArgumentException ( "Parameter detectorName is required and cannot be null." ) ; } if ( diagnosticCategory == null ) { throw new IllegalArgumentException ( "Parameter diagnosticCategory is required and cannot be null." ) ; } if ( slot == null ) { throw new IllegalArgumentException ( "Parameter slot is required and cannot be null." ) ; } if ( this . client . subscriptionId ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.subscriptionId() is required and cannot be null." ) ; } if ( this . client . apiVersion ( ) == null ) { throw new IllegalArgumentException ( "Parameter this.client.apiVersion() is required and cannot be null." ) ; } return service . executeSiteDetectorSlot ( resourceGroupName , siteName , detectorName , diagnosticCategory , slot , this . client . subscriptionId ( ) , startTime , endTime , timeGrain , this . client . apiVersion ( ) , this . client . acceptLanguage ( ) , this . client . userAgent ( ) ) . flatMap ( new Func1 < Response < ResponseBody > , Observable < ServiceResponse < DiagnosticDetectorResponseInner > > > ( ) { @ Override public Observable < ServiceResponse < DiagnosticDetectorResponseInner > > call ( Response < ResponseBody > response ) { try { ServiceResponse < DiagnosticDetectorResponseInner > clientResponse = executeSiteDetectorSlotDelegate ( response ) ; return Observable . just ( clientResponse ) ; } catch ( Throwable t ) { return Observable . error ( t ) ; } } } ) ; }
Execute Detector.
Execute Detector.

@param resourceGroupName Name of the resource group to which the resource belongs.
@param siteName Site Name
@param detectorName Detector Resource Name
@param diagnosticCategory Category Name
@param slot Slot Name
@param startTime Start Time
@param endTime End Time
@param timeGrain Time Grain
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the DiagnosticDetectorResponseInner object