You've already forked onecmonitor
mirror of
https://github.com/akpaevj/onecmonitor.git
synced 2026-06-11 20:42:53 +02:00
15 lines
910 B
C#
15 lines
910 B
C#
namespace OneSwiss.Common.EventLog;
|
|
|
|
public interface IEventLogRepository : IDisposable
|
|
{
|
|
Task Connect(CancellationToken cancellationToken);
|
|
Task InitDatabase(CancellationToken cancellationToken);
|
|
Task InitEventLogTable(CancellationToken cancellationToken);
|
|
Task<DateTime> GetLastEventDateTime(string infoBaseId, CancellationToken cancellationToken);
|
|
Task WriteEvents(EventLogItem[] events, CancellationToken cancellationToken);
|
|
Task<List<EventLogItem>> GetEventLogItems(string filter = "", CancellationToken cancellationToken = default);
|
|
Task<List<EventLogItem>> GetEventLogItems(int count, int offset, string filter = "",
|
|
CancellationToken cancellationToken = default);
|
|
Task<int> GetRowsCount(string filter = "", CancellationToken cancellationToken = default);
|
|
Task<List<string>> GetEventsTypes(string filter = "", CancellationToken cancellationToken = default);
|
|
} |