feat(api, bll): IMqService - добавлен метод получения статистики по очереди. StatRabbitMqController - статистика по RabbitMq
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user