code: public Observable<DiagnosticDetectorResponseInner> executeSiteDetectorSlotAsync(String resourceGroupName, String siteName, String detectorName, String diagnosticCategory, String slot) {
          return executeSiteDetectorSlotWithServiceResponseAsync(resourceGroupName, siteName, detectorName, diagnosticCategory, slot).map(new Func1<ServiceResponse<DiagnosticDetectorResponseInner>, DiagnosticDetectorResponseInner>() {
              @Override
              public DiagnosticDetectorResponseInner call(ServiceResponse<DiagnosticDetectorResponseInner> response) {
                  return response.body();
              }
          });
      }
docs: 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
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the DiagnosticDetectorResponseInner object