9cff87fe85
Remove project bookkeeping citations from shipped code comments across the solution: hyphenated task IDs (WP-14, StoreAndForward-025), milestone/task/ issue refs (M3, Task 4, Audit Log #23, #21), Bundle X task-bundle labels, and C/D/K/S/T phase labels. Comment text only — no code logic, string/log literals, or XML-doc structure changed. Genuine descriptions are preserved (only the citation is stripped), and technical lookalikes are retained (UTF-8, SHA-256, T00:00:00, M365, UTC-5, pre-C4/pre-C5 schema versions). Flagged by the new CommentChecker TaskReferenceInComment / TrackingReferenceInComment checks plus targeted grep passes; full solution builds clean, append-only guard tests pass.
30 lines
1.3 KiB
C#
30 lines
1.3 KiB
C#
namespace ZB.MOM.WW.ScadaBridge.AuditLog.Central;
|
|
|
|
/// <summary>
|
|
/// Published on the actor-system EventStream by <see cref="AuditLogPurgeActor"/>
|
|
/// after each successful partition switch-out. Downstream consumers (central
|
|
/// health collector, ops dashboards, audit trails) subscribe so a
|
|
/// purge action is observable without the actor needing to know about any
|
|
/// specific subscriber.
|
|
/// </summary>
|
|
/// <param name="MonthBoundary">
|
|
/// The pf_AuditLog_Month lower-bound boundary that was switched out — i.e.
|
|
/// the first instant of the purged month in UTC.
|
|
/// </param>
|
|
/// <param name="RowsDeleted">
|
|
/// Approximate row count purged from the partition, sampled BEFORE the
|
|
/// switch. Exact accounting would require a post-switch scan of the staging
|
|
/// table, which the dance drops immediately, so this is the closest
|
|
/// observable proxy. Zero is a valid value when the actor's enumerator
|
|
/// included a partition the operator subsequently emptied by hand.
|
|
/// </param>
|
|
/// <param name="DurationMs">
|
|
/// Wall-clock time spent inside <c>SwitchOutPartitionAsync</c> for this
|
|
/// boundary, in milliseconds. Useful for spotting the rare slow purge
|
|
/// without spinning up dedicated telemetry.
|
|
/// </param>
|
|
public sealed record AuditLogPurgedEvent(
|
|
DateTime MonthBoundary,
|
|
long RowsDeleted,
|
|
long DurationMs);
|