Eli Mesika has uploaded a new change for review.

Change subject: core: enable to subscribe on backup events
......................................................................

core: enable to subscribe on backup events

This patch enables to subscribe on backup events from web admin.

Change-Id: Ida01f92c8aef0bb4e8f390b7f1258319eea29afa
Signed-off-by: emesika <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
M 
frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java
M 
frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
3 files changed, 13 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/59/40059/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
index bd65848..860df74 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/VdcEventNotificationUtils.java
@@ -15,6 +15,10 @@
     static {
         // VDC
         AddEventNotificationEntry(EventNotificationEntity.Engine, 
AuditLogType.VDC_STOP);
+        AddEventNotificationEntry(EventNotificationEntity.Engine, 
AuditLogType.ENGINE_BACKUP_STARTED);
+        AddEventNotificationEntry(EventNotificationEntity.Engine, 
AuditLogType.ENGINE_BACKUP_COMPLETED);
+        AddEventNotificationEntry(EventNotificationEntity.Engine, 
AuditLogType.ENGINE_BACKUP_FAILED);
+
         // VDS GROUP
         AddEventNotificationEntry(EventNotificationEntity.VdsGroup, 
AuditLogType.CLUSTER_ALERT_HA_RESERVATION);
         AddEventNotificationEntry(EventNotificationEntity.VdsGroup,
diff --git 
a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java
 
b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java
index fb2334b..6d29a0f 100644
--- 
a/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java
+++ 
b/frontend/webadmin/modules/uicompat/src/main/java/org/ovirt/engine/ui/uicompat/LocalizedEnums.java
@@ -296,6 +296,12 @@
 
     String AuditLogType___VDC_STOP();
 
+    String AuditLogType___ENGINE_BACKUP_STARTED();
+
+    String AuditLogType___ENGINE_BACKUP_COMPLETED();
+
+    String AuditLogType___ENGINE_BACKUP_FAILED();
+
     String AuditLogType___CLUSTER_ALERT_HA_RESERVATION();
 
     String AuditLogType___HOST_INTERFACE_STATE_DOWN();
diff --git 
a/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
 
b/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
index bdd6c31..be97a75 100644
--- 
a/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
+++ 
b/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties
@@ -148,6 +148,9 @@
 AuditLogType___IRS_DISK_SPACE_LOW=Low disk space
 AuditLogType___IRS_DISK_SPACE_LOW_ERROR=Critically low disk space
 AuditLogType___VDC_STOP=Engine has stopped
+AuditLogType___ENGINE_BACKUP_STARTED=Engine backup started
+AuditLogType___ENGINE_BACKUP_COMPLETED=Engine backup completed successfully
+AuditLogType___ENGINE_BACKUP_FAILED=Engine backup failed
 AuditLogType___CLUSTER_ALERT_HA_RESERVATION=HA Reservation check has failed
 AuditLogType___HOST_INTERFACE_STATE_DOWN=Host's interface changed state to down
 AuditLogType___HOST_BOND_SLAVE_STATE_DOWN=Host's slave of bond changed state 
to down


-- 
To view, visit https://gerrit.ovirt.org/40059
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ida01f92c8aef0bb4e8f390b7f1258319eea29afa
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Eli Mesika <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to