def init!
      @lookups ||= {}
      @aliases ||= {}
      # Get unique list of keys from ES
      r = Aggregations::TermsAggregation.new(from: '2015-09-01 00:00:00Z', to: '2015-09-02 00:00:00Z', term: "memoryAddress").results
      addresses = r.map {|x| x["key"]}
      # Get a memory location for each key
      addresses.each do |address|
        r = Query.new(from: '2015-09-01 10:00:00Z', to: '2015-09-30 11:00:00Z', memory_addresses: address, limit: 1).results
        signal_name = remove_cruft(r.first["_source"]["signalName"].to_s)
        @lookups[signal_name] = address
      end
      # Read aliases from file
      aliases = OpenStruct.new fetch_yaml 'signal_aliases'
      aliases.each_pair do |key, value|
        @aliases[key.to_s] = @lookups[value]
        @lookups[key.to_s] = @lookups[value]
      end
    end
def init!
      @lookups ||= {}
      @aliases ||= {}
      # Get unique list of keys from ES
      r = Aggregations::TermsAggregation.new(from: '2015-09-01 00:00:00Z', to: '2015-09-02 00:00:00Z', term: "memoryAddress").results
      addresses = r.map {|x| x["key"]}
      # Get a memory location for each key
      addresses.each do |address|
        r = Query.new(from: '2015-09-01 10:00:00Z', to: '2015-09-30 11:00:00Z', memory_addresses: address, limit: 1).results
        signal_name = remove_cruft(r.first["_source"]["signalName"].to_s)
        @lookups[signal_name] = address
      end
      # Read aliases from file
      aliases = OpenStruct.new fetch_yaml 'signal_aliases'
      aliases.each_pair do |key, value|
        @aliases[key.to_s] = @lookups[value]
        @lookups[key.to_s] = @lookups[value]
      end
    end
Separate out initialization for testing purposes