* @param name agent name
* @return {@link SystemDataModel} instance.
*/
@Override
public SystemDataModel getSystemDataModel(String ip, String name) {
AgentInfo found = agentManagerRepository.findByIpAndHostName(ip, name);
String systemStat = (found == null) ? null : found.getSystemStat();
return (StringUtils.isEmpty(systemStat)) ? new SystemDataModel() : gson.fromJson(systemStat,
SystemDataModel.class);
}