code: public Observable<DetectorResponseInner> getSiteDetectorResponseAsync(String resourceGroupName, String siteName, String detectorName, DateTime startTime, DateTime endTime, String timeGrain) {
          return getSiteDetectorResponseWithServiceResponseAsync(resourceGroupName, siteName, detectorName, startTime, endTime, timeGrain).map(new Func1<ServiceResponse<DetectorResponseInner>, DetectorResponseInner>() {
              @Override
              public DetectorResponseInner call(ServiceResponse<DetectorResponseInner> response) {
                  return response.body();
              }
          });
      }
docs: Get site detector response.
  Get site detector response.
  
  @param resourceGroupName Name of the resource group to which the resource belongs.
  @param siteName Site Name
  @param detectorName Detector Resource 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 DetectorResponseInner object