Title: Event Codes Describe the issue: The rest api documentation lists two events with the 524 vent code. It's unclear if this is a documentation bug, a code bug, or expected behavior. I'm not sure which is correct. The documentation found here [1] has these two entries in table E.1: 524 AUTO_SUSPEND_VM 524 HOST_DOMAIN_DELAY_INTERVAL [1] https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Virtualization/3.2/html-single/Developer_Guide/index.html Suggestions for improvement: Additional information:
I think that it is a bug in the documentation, as there isn't any "AUTO_SUSPEND_VM" event in the code. To obtain an up to date list of event codes and names use the following Java program: ---8<--- // Save to a ListAuditLogTypes.java file. import org.ovirt.engine.core.common.AuditLogType; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; public class ListAuditLogTypes { public static void main(String[] args) { List<AuditLogType> types = new ArrayList<>(); Collections.addAll(types, AuditLogType.values()); Collections.sort( types, new Comparator<AuditLogType>() { @Override public int compare(AuditLogType left, AuditLogType right) { return Integer.compare(left.getValue(), right.getValue()); } } ); for (AuditLogType type : types) { System.out.printf("%s\t%s\n", type.getValue(), type.name()); } } } --->8--- Save this to a ListAuitLogTypes.java file and compile it with the following command (in a machine where RHEV-M is installed): $ javac -cp /usr/share/java/ovirt-engine/common.jar ListAuditLogTypes.java Then run it with the following command: $ java -cp /usr/share/java/ovirt-engine/common.jar:. ListAuditLogTypes It should produce a list of the event codes and names, sorted by event code: 0 UNASSIGNED 1 VDC_START 2 VDC_STOP 12 VDS_FAILURE ...
Juan, thank you!
*** This bug has been marked as a duplicate of bug 1122727 ***