Add new endpoint for the agent status

This commit is contained in:
2025-07-30 22:36:49 +07:00
parent 4b0da0e864
commit c454e87d7a
6 changed files with 174 additions and 0 deletions

View File

@@ -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; }
}
}