code: public Observable<Page<DetectorDefinitionInner>> getSiteDetectorSlotAsync(final String resourceGroupName, final String siteName, final String diagnosticCategory, final String detectorName, final String slot) {
          return getSiteDetectorSlotWithServiceResponseAsync(resourceGroupName, siteName, diagnosticCategory, detectorName, slot)
              .map(new Func1<ServiceResponse<Page<DetectorDefinitionInner>>, Page<DetectorDefinitionInner>>() {
                  @Override
                  public Page<DetectorDefinitionInner> call(ServiceResponse<Page<DetectorDefinitionInner>> response) {
                      return response.body();
                  }
              });
      }
docs: Get Detector.
  Get Detector.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param siteName Site Name
  @param diagnosticCategory Diagnostic Category
  @param detectorName Detector Name
  @param slot Slot Name
  @throws IllegalArgumentException thrown if parameters fail the validation
  @return the observable to the PagedList&lt;DetectorDefinitionInner&gt; object