code: public DataMigrationServiceStatusResponseInner checkStatus(String groupName, String serviceName) {
          return checkStatusWithServiceResponseAsync(groupName, serviceName).toBlocking().single().body();
      }
docs: Check service health status.
  The services resource is the top-level resource that represents the Data Migration Service. This action performs a health check and returns the status of the service and virtual machine size.
  
  @param groupName Name of the resource group
  @param serviceName Name of the service
  @throws IllegalArgumentException thrown if parameters fail the validation
  @throws ApiErrorException thrown if the request is rejected by server
  @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
  @return the DataMigrationServiceStatusResponseInner object if successful.