17 lines
465 B
C#
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);
|
|
}
|