feat(api, bll): IMqService - добавлен метод получения статистики по очереди. StatRabbitMqController - статистика по RabbitMq

This commit is contained in:
Mikhail Trubnikov
2024-05-23 14:09:37 +10:00
parent d139374f5f
commit f35092dd51
9 changed files with 149 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ namespace PARR.API.Settings
public class MqSettings
{
public MqGenerateTemplates GenerateTemplates { get; set; } = new MqGenerateTemplates();
public MqStatistics Statistics { get; set; } = new MqStatistics();
}
public class MqGenerateTemplates : IMqSettings
@@ -14,4 +15,18 @@ namespace PARR.API.Settings
public string User { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
public class MqStatistics
{
public List<string> QueueList { get; set; } = new List<string>();
public StatMqAuth StatMqAuth { get; set; } = new StatMqAuth();
}
public class StatMqAuth : IMqSettings
{
public string HostName { get; set; } = string.Empty;
public string QueueName { get; set; } = string.Empty;
public string User { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
}
}