feat(api, core): Workload - статус формирования отчетности. RedisCacheService - получить первую запись из кэш типа Hash.

This commit is contained in:
Mikhail Trubnikov
2026-05-18 16:46:42 +10:00
parent 911e6febcd
commit e5535857d4
11 changed files with 181 additions and 5 deletions

View File

@@ -0,0 +1,36 @@
using System.Text.Json.Serialization;
namespace PARR.Domain.DTOs.Workload
{
/// <summary>
/// Инфо о состоянии КЭШ для отчета Workload
/// </summary>
public record WorkloadCacheInfo
{
/// <summary>
/// Статус отчета
/// </summary>
[JsonConverter(typeof(JsonStringEnumConverter))]
public enum StatusEnum
{
/// <summary>
/// Отчет формируется
/// </summary>
Processing = 1,
/// <summary>
/// Отчет сформирован
/// </summary>
Generated = 2,
/// <summary>
/// Нет отчета
/// </summary>
NotFound = 3
}
public StatusEnum Status { get; init; }
public DateTimeOffset? Date { get; init; }
}
}