From 9e87534e42b049a67d0f483b3fd617b4a758c958 Mon Sep 17 00:00:00 2001 From: kishan Date: Wed, 29 Sep 2010 15:51:49 +0530 Subject: [PATCH] bug 6216: Added Id to listAlerts response --- server/src/com/cloud/api/commands/ListAlertsCmd.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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())));