use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class IsoDomainListSynchronizer method addToAuditLogErrorMessage.
/**
* Add audit log message when fetch encounter problems.
*
* @param problematicRepoFilesList
* - List of Iso domain names, which encounter problem fetching from VDSM.
*/
private void addToAuditLogErrorMessage(String problematicRepoFilesList) {
AuditLogable logable = new AuditLogableImpl();
// Get translated error by error code ,if no translation found (should not happened) ,
// will set the error code instead.
logable.addCustomValue("imageDomains", problematicRepoFilesList);
auditLogDirector.log(logable, AuditLogType.REFRESH_REPOSITORY_IMAGE_LIST_FAILED);
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class VdsBrokerObjectsBuilder method createAuditLogableForHost.
private static AuditLogable createAuditLogableForHost(VDS vds) {
AuditLogable logable = new AuditLogableImpl();
logable.setVdsId(vds.getId());
logable.setVdsName(vds.getName());
return logable;
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class GetVmsFullInfoFromExternalProviderVDSCommand method logNonDownVms.
private void logNonDownVms(List<VM> notDownVms) {
if (!notDownVms.isEmpty()) {
if (shouldLogToAuditLog()) {
AuditLogable logable = new AuditLogableImpl();
logable.addCustomValue("URL", getParameters().getUrl());
logable.addCustomValue("Vms", StringUtils.join(notDownVms, ","));
auditLogDirector.log(logable, AuditLogType.IMPORTEXPORT_GET_EXTERNAL_VMS_NOT_IN_DOWN_STATUS);
} else {
log.warn("The following VMs retrieved from external server '{}' are not in down status and therefore can't be imported: '{}'.", getParameters().getUrl(), StringUtils.join(notDownVms, ","));
}
}
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class HostNetworkTopologyPersisterImpl method createAuditLogForHost.
private AuditLogable createAuditLogForHost(VDS host) {
final AuditLogable loggable = new AuditLogableImpl();
loggable.setVdsId(host.getId());
loggable.setVdsName(host.getName());
return loggable;
}
use of org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogableImpl in project ovirt-engine by oVirt.
the class AutoStartVmsRunner method createVmEvent.
private AuditLogable createVmEvent(Guid vmId) {
AuditLogable event = new AuditLogableImpl();
event.setVmId(vmId);
event.setVmName(resourceManager.getVmManager(vmId).getName());
return event;
}
Aggregations