Files
MoShiro/backend/src/Monitor.Backend.Application/Admin/EventService.cs
T
2026-10-04 21:46:39 +08:00

17 lines
465 B
C#

using Fleet.Core;
namespace Monitor.Backend.Application;
public sealed class EventService
{
private readonly IEventStore _events;
public EventService(IEventStore events)
{
_events = events;
}
public ValueTask<IReadOnlyList<EventRecord>> ListAsync(NodeId? agentId, string? kind, long fromMs, long toMs, long? beforeId, int limit, CancellationToken ct) =>
_events.ListAsync(agentId, kind, fromMs, toMs, beforeId, limit, ct);
}