diff --git a/server/src/com/cloud/api/commands/ListAlertsCmd.java b/server/src/com/cloud/api/commands/ListAlertsCmd.java index cf95167b0d7..f20ef270cd6 100644 --- a/server/src/com/cloud/api/commands/ListAlertsCmd.java +++ b/server/src/com/cloud/api/commands/ListAlertsCmd.java @@ -88,7 +88,8 @@ public class ListAlertsCmd extends BaseCmd{ int i=0; for (AlertVO alert : alerts) { - List> alertData = new ArrayList>(); + List> alertData = new ArrayList>(); + alertData.add(new Pair(BaseCmd.Properties.ID.getName(), alert.getId())); alertData.add(new Pair(BaseCmd.Properties.TYPE.getName(), alert.getType())); alertData.add(new Pair(BaseCmd.Properties.DESCRIPTION.getName(), alert.getSubject())); alertData.add(new Pair(BaseCmd.Properties.SENT.getName(), getDateString(alert.getLastSent())));