use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class VdsManager method moveVmsToUnknown.
private void moveVmsToUnknown(List<VmDynamic> vms) {
if (vms.isEmpty()) {
return;
}
List<Guid> vmIds = vms.stream().map(VmDynamic::getId).collect(Collectors.toList());
vmIds.forEach(resourceManager::removeAsyncRunningVm);
getVmDynamicDao().updateVmsToUnknown(vmIds);
vmIds.forEach(vmId -> {
// log VM transition to unknown status
AuditLogable logable = new AuditLogableImpl();
logable.setVmId(vmId);
logable.setVmName(vmStaticDao.get(vmId).getName());
auditLogDirector.log(logable, AuditLogType.VM_SET_TO_UNKNOWN_STATUS);
});
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class PmHealthCheckManager method addAlert.
private void addAlert(VDS host, AuditLogType auditMessage) {
AuditLogable alert = new AuditLogableImpl();
alert.setVdsId(host.getId());
alert.setVdsName(host.getName());
alert.setClusterId(host.getClusterId());
alert.setClusterName(host.getClusterName());
auditLogDirector.log(alert, auditMessage);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class AffinityRulesEnforcementManager method wakeup.
@PostConstruct
protected void wakeup() {
auditLogDirector.log(new AuditLogableImpl(), AuditLogType.AFFINITY_RULES_ENFORCEMENT_MANAGER_START);
scheduleJobs(getRegularInterval(), getInitialInterval());
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class VdsBrokerCommand method logToAudit.
@Override
protected void logToAudit() {
if (isPolicyResetMessage(getReturnStatus().message)) {
return;
}
AuditLogable logable = new AuditLogableImpl();
logable.setVdsId(vds.getId());
logable.setVdsName(vds.getName());
logable.addCustomValue("CommandName", getCommandName());
logable.addCustomValue("message", getReturnStatus().message);
auditLogDirector.log(logable, AuditLogType.VDS_BROKER_COMMAND_FAILURE);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class MultipathHealthHandler method createAuditLogableForHost.
private AuditLogable createAuditLogableForHost(VDS vds) {
AuditLogable logable = new AuditLogableImpl();
logable.setVdsId(vds.getId());
logable.setVdsName(vds.getName());
return logable;
}
Aggregations