IngestBatchJournal.cs 1.3 KB

1234567891011121314151617181920212223242526
  1. namespace Admin.NET.Plugin.AiDOP.DataPlatform.Core;
  2. public static class IngestBatchJournal
  3. {
  4. public const string Insert = """
  5. INSERT INTO mdp_ingest_batch_event
  6. (batch_id,tenant_id,factory_id,dataset_id,source_id,event_code,attempt_number,record_count,diagnostic,created_at)
  7. VALUES (@BatchId,@TenantId,@FactoryId,@DatasetId,@SourceId,@EventCode,@Attempt,@Count,@Diagnostic,UTC_TIMESTAMP(6))
  8. """;
  9. public const string RawStored = "RAW_STORED";
  10. public const string RawAccepted = "RAW_ACCEPTED";
  11. public const string RawRejected = "RAW_REJECTED";
  12. public const string RawEmpty = "RAW_EMPTY";
  13. public const string RawExpired = "RAW_EXPIRED";
  14. public const string WorkerClaimed = "WORKER_CLAIMED";
  15. public const string WorkerReclaimed = "WORKER_RECLAIMED";
  16. public const string WorkerLeaseExpired = "WORKER_LEASE_EXPIRED";
  17. public const string WorkerRetry = "WORKER_RETRY";
  18. public const string WorkerFailed = "WORKER_FAILED";
  19. public const string RowsIsolated = "ROWS_ISOLATED";
  20. public const string PackageFrozen = "PACKAGE_FROZEN";
  21. public const string DeliveryRetry = "DELIVERY_RETRY";
  22. public const string DeliveryFailed = "DELIVERY_FAILED";
  23. public const string DeliveryConfirmed = "DELIVERY_CONFIRMED";
  24. }