private string ConvertEvent(AlertTypeDto type)
{
switch (type)
{
case AlertTypeDto.Cpu:
return EventName.CpuEvent;
case AlertTypeDto.Network:
return EventName.NetworkEvent;
case AlertTypeDto.Hdd:
return EventName.HddSpaceEvent;
default:
throw new ArgumentOutOfRangeException(nameof(type), type, null);
}
}