@Nurr getting the data source configuration will be slightly more complex but possible. Basically you will need to reach out to the Mango database by using the DataSourceDao class to get the data source configuration. The evt variable does not contain the full data source but it does have the data source's id which you can use to get the full data source. Here is an example
//Option 1 get the data source id from the event type var id = evt.eventType.dataSourceId; //Option 2 get the id from the point in the context var id = evt.context.point.dataSourceId; //Using a call to the dao, get the data source by id var dataSource = com.serotonin.m2m2.db.dao.DataSourceDao.instance.getDataSource(id);Without knowing which data source type you are using I cannot tell you what property the ip would be stored in. It may be open source in our ma-modules-public repository, if so you can find the property in the xxxDataSourceVO class:
https://github.com/infiniteautomation/ma-modules-public