feature: Prometheus Metrics, Supervisor Dashboard, and Promotion Retry Job

This commit is contained in:
voltsrage
2026-06-27 13:29:04 +08:00
parent e22d33b654
commit 04bdb7e85c
31 changed files with 4482 additions and 259 deletions
@@ -0,0 +1,12 @@
public interface IBatchEventService
{
/// <summary>
/// Returns cursor-paginated audit trail events for a batch.
/// Events are ordered by OccurredAt ascending (oldest first).
/// </summary>
/// <param name="batchId">The batch to query events for.</param>
/// <param name="after">Cursor: ISO-8601 timestamp. Only events after this timestamp are returned.</param>
/// <param name="pageSize">Number of events per page. Default 50, max 200.</param>
Task<CursorPagedResult<BatchEventResponse>> GetEventsAsync(
Guid batchId, DateTimeOffset? after, int pageSize);
}