Changing the Agent name on the server where DT agent is installed

If we change the Agent name on the server where DT agent is installed, what will happen to the previous data? Will it be lost?

If you dont want to lose any data, just rename the host on UI in its settings page.