| | | 1 | | using System.ComponentModel.DataAnnotations; |
| | | 2 | | |
| | | 3 | | namespace OzonDomains.Models; |
| | | 4 | | |
| | | 5 | | /// <summary>Постоянный аудит фактических HTTP/SOAP-вызовов API-поставщиков.</summary> |
| | | 6 | | public sealed class ApiSupplierRequestAuditEntry |
| | | 7 | | { |
| | 0 | 8 | | public long Id { get; set; } |
| | 2 | 9 | | public DateTime OccurredAtUtc { get; set; } = DateTime.UtcNow; |
| | 2 | 10 | | [Required, MaxLength(64)] public string ProviderKey { get; set; } = string.Empty; |
| | 1 | 11 | | [Required, MaxLength(500)] public string Source { get; set; } = string.Empty; |
| | 0 | 12 | | [MaxLength(450)] public string? Actor { get; set; } |
| | 1 | 13 | | [Required, MaxLength(12)] public string Method { get; set; } = string.Empty; |
| | 1 | 14 | | [Required, MaxLength(2048)] public string Endpoint { get; set; } = string.Empty; |
| | 0 | 15 | | public int? StatusCode { get; set; } |
| | 0 | 16 | | public long DurationMs { get; set; } |
| | 1 | 17 | | public bool IsSuccess { get; set; } |
| | 0 | 18 | | public string? Request { get; set; } |
| | 0 | 19 | | public string? Response { get; set; } |
| | | 20 | | } |