Add new endpoint for the agent status
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using MediatR;
|
||||
using static Managing.Common.Enums;
|
||||
|
||||
namespace Managing.Application.ManageBot.Commands
|
||||
{
|
||||
/// <summary>
|
||||
/// Command to retrieve all agent statuses
|
||||
/// </summary>
|
||||
public class GetAgentStatusesCommand : IRequest<List<AgentStatusResponse>>
|
||||
{
|
||||
public GetAgentStatusesCommand()
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Response model for agent status information
|
||||
/// </summary>
|
||||
public class AgentStatusResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// The name of the agent
|
||||
/// </summary>
|
||||
public string AgentName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The status of the agent (Online if at least one strategy is running, Offline otherwise)
|
||||
/// </summary>
|
||||
public AgentStatus Status { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user