def get_logs(severity_level, duration, log_type)
      response = rest_get("#{uri_for_log_type(log_type)}Entries/")
      entries = response_handler(response)['Items']
      start_time = Time.now.utc - (duration * 3600)
      if severity_level.nil?
        entries.select { |e| Time.parse(e['Created']) > start_time }
      else
        entries.select { |e| severity_level.to_s.casecmp(e['Severity']) == 0 && Time.parse(e['Created']) > start_time }
      end
    end
def get_logs(severity_level, duration, log_type)
      response = rest_get("#{uri_for_log_type(log_type)}Entries/")
      entries = response_handler(response)['Items']
      start_time = Time.now.utc - (duration * 3600)
      if severity_level.nil?
        entries.select { |e| Time.parse(e['Created']) > start_time }
      else
        entries.select { |e| severity_level.to_s.casecmp(e['Severity']) == 0 && Time.parse(e['Created']) > start_time }
      end
    end
Get the specified logs
 @param [String, Symbol, NilClass] severity_level Set to nil to get all logs
 @param [String, Symbol] duration Up to this many hours ago
 @param [String, Symbol] log_type IEL or IML
 @raise [RuntimeError] if the request failed
 @return [Array] log entries