private MonitorTriggerEvent createEvent(Trigger t,Statistic globalStat){
  MonitorTriggerEvent event=new MonitorTriggerEvent();
  event.setAppId(this.appId);
  event.setTriggerId(t.getTriggerId());
  event.setMetricValue(globalStat.getValue());
  event.setTimeStamp(System.currentTimeMillis());
  event.setTrigger(t);
  event.setMetricType(t.getMetric());
  return event;
}

private MonitorTriggerEvent createEvent ( Trigger t , Statistic globalStat ) { MonitorTriggerEvent event = new MonitorTriggerEvent ( ) ; event . setAppId ( this . appId ) ; event . setTriggerId ( t . getTriggerId ( ) ) ; event . setMetricValue ( globalStat . getValue ( ) ) ; event . setTimeStamp ( System . currentTimeMillis ( ) ) ; event . setTrigger ( t ) ; event . setMetricType ( t . getMetric ( ) ) ; return event ; }
creates an event and add it to the event list .
