def list_by_time_as_lazy(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
      response = list_by_time_async(resource_group_name, service_name, interval, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_time_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
def list_by_time_as_lazy(resource_group_name, service_name, interval, filter:nil, top:nil, skip:nil, custom_headers:nil)
      response = list_by_time_async(resource_group_name, service_name, interval, filter:filter, top:top, skip:skip, custom_headers:custom_headers).value!
      unless response.nil?
        page = response.body
        page.next_method = Proc.new do |next_page_link|
          list_by_time_next_async(next_page_link, custom_headers:custom_headers)
        end
        page
      end
    end
Lists report records by Time.

 @param resource_group_name [String] The name of the resource group.
 @param service_name [String] The name of the API Management service.
 @param interval [Duration] By time interval. Interval must be multiple of 15
 minutes and may not be zero. The value should be in ISO  8601 format
 (http://en.wikipedia.org/wiki/ISO_8601#Durations).This code can be used to
 convert TimeSpan to a valid interval string: XmlConvert.ToString(new
 TimeSpan(hours, minutes, seconds))
 @param filter [String] The filter to apply on the operation.
 @param top [Integer] Number of records to return.
 @param skip [Integer] Number of records to skip.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ReportCollection] which provide lazy access to pages of the
 response.