def past_scans(limit = nil)
      uri    = '/data/scan/global/scan-history'
      rows   = AJAX.row_pref_of(limit)
      params = { 'sort' => 'endTime', 'dir' => 'DESC', 'startIndex' => 0 }
      AJAX.preserving_preference(self, 'global-completed-scans') do
        data = DataTable._get_json_table(self, uri, params, rows, limit)
        data.map(&CompletedScan.method(:parse_json))
      end
    end
def past_scans(limit = nil)
      uri    = '/data/scan/global/scan-history'
      rows   = AJAX.row_pref_of(limit)
      params = { 'sort' => 'endTime', 'dir' => 'DESC', 'startIndex' => 0 }
      AJAX.preserving_preference(self, 'global-completed-scans') do
        data = DataTable._get_json_table(self, uri, params, rows, limit)
        data.map(&CompletedScan.method(:parse_json))
      end
    end
Get a history of past scans for this console, sorted by most recent first.

 Please note that for consoles with a deep history of scanning, this method
 could return an excessive amount of data (and take quite a bit of time to
 retrieve). Consider limiting the amount of data with the optional argument.

 @param [Fixnum] limit The maximum number of records to return from this call.
 @return [Array[CompletedScan]] List of completed scans, ordered by most
   recently completed first.