use of com.ctrip.xpipe.redis.console.alert.ALERT_TYPE in project x-pipe by ctripcorp.
the class ScheduledAlertMessageDecorator method generateBody.
public String generateBody(Map<ALERT_TYPE, Set<AlertEntity>> redisAlerts) {
VelocityContext context = generateCommonContext();
for (ALERT_TYPE type : redisAlerts.keySet()) {
context.put(type + "", type);
}
context.put("redisAlerts", redisAlerts);
context.put("title", generateTitle());
return getRenderedString(TEMPLATE_NAME, context);
}
Aggregations