Search in sources :

Example 21 with AuditLogableBase

use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase in project ovirt-engine by oVirt.

the class VmAnalyzer method auditVmOnDownNormal.

private void auditVmOnDownNormal(boolean powerOff) {
    AuditLogableBase logable = Injector.injectMembers(new AuditLogableBase(vdsManager.getVdsId(), getVmId()));
    logable.addCustomValue("ExitMessage", !powerOff && vdsmVm.getVmDynamic().getExitMessage() != null ? "Exit message: " + vdsmVm.getVmDynamic().getExitMessage() : " ");
    auditLog(logable, AuditLogType.VM_DOWN);
}
Also used : AuditLogableBase(org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase)

Example 22 with AuditLogableBase

use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase in project ovirt-engine by oVirt.

the class VmAnalyzer method auditVmRecoveredFromError.

private void auditVmRecoveredFromError() {
    AuditLogableBase logable = Injector.injectMembers(new AuditLogableBase(vdsManager.getVdsId(), dbVm.getId()));
    auditLog(logable, AuditLogType.VM_RECOVERED_FROM_PAUSE_ERROR);
}
Also used : AuditLogableBase(org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase)

Aggregations

AuditLogableBase (org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableBase)22 AuditLogType (org.ovirt.engine.core.common.AuditLogType)3 VmDynamic (org.ovirt.engine.core.common.businessentities.VmDynamic)2 Guid (org.ovirt.engine.core.compat.Guid)2 ArrayList (java.util.ArrayList)1 Date (java.util.Date)1 Before (org.junit.Before)1 ProcessDownVmParameters (org.ovirt.engine.core.common.action.ProcessDownVmParameters)1 AuditLog (org.ovirt.engine.core.common.businessentities.AuditLog)1 StorageDomain (org.ovirt.engine.core.common.businessentities.StorageDomain)1 StoragePool (org.ovirt.engine.core.common.businessentities.StoragePool)1 VDS (org.ovirt.engine.core.common.businessentities.VDS)1 VM (org.ovirt.engine.core.common.businessentities.VM)1 VmBalloonInfo (org.ovirt.engine.core.common.businessentities.VmBalloonInfo)1 QueryReturnValue (org.ovirt.engine.core.common.queries.QueryReturnValue)1 Pair (org.ovirt.engine.core.common.utils.Pair)1 SetVmStatusVDSCommandParameters (org.ovirt.engine.core.common.vdscommands.SetVmStatusVDSCommandParameters)1 VDSReturnValue (org.ovirt.engine.core.common.vdscommands.VDSReturnValue)1 AuditLogDirector (org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector)1