save progress
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System.Collections.Generic;
|
||||
using StellaOps.Scheduler.Models;
|
||||
|
||||
namespace StellaOps.Scheduler.WebService.Schedules;
|
||||
|
||||
public interface ISchedulerAuditService
|
||||
{
|
||||
Task<AuditRecord> WriteAsync(SchedulerAuditEvent auditEvent, CancellationToken cancellationToken = default);
|
||||
}
|
||||
|
||||
public sealed record SchedulerAuditEvent(
|
||||
string TenantId,
|
||||
string Category,
|
||||
string Action,
|
||||
AuditActor Actor,
|
||||
DateTimeOffset? OccurredAt = null,
|
||||
string? AuditId = null,
|
||||
string? EntityId = null,
|
||||
string? ScheduleId = null,
|
||||
string? RunId = null,
|
||||
string? CorrelationId = null,
|
||||
IReadOnlyDictionary<string, string>? Metadata = null,
|
||||
string? Message = null);
|
||||
Reference in New Issue
Block a user