Implemented a new endpoint for exporting debug data related to channel scheduling, allowing users to download an archive containing channel settings, slot states, and trace information. Updated the frontend to include a button for triggering the export, along with necessary API adjustments for handling the download. Enhanced localization strings to support the new debug export feature in both English and Russian. Updated .gitignore to include debug export files while ensuring the directory structure is maintained for development.
21 lines
1.1 KiB
C#
21 lines
1.1 KiB
C#
namespace TeleWave.Application.Common;
|
|
|
|
/// <summary>Настройки отладочного дампа. Секция «Debug».</summary>
|
|
public sealed class DebugExportOptions
|
|
{
|
|
public const string SectionName = "Debug";
|
|
|
|
/// <summary>
|
|
/// Куда класть копии архивов. Пусто — не класть никуда, отдавать только в браузер: на сервере
|
|
/// дампы на диске не нужны, а в разработке путь указывает на папку рядом с репозиторием.
|
|
/// Относительный путь считается от рабочего каталога приложения.
|
|
/// </summary>
|
|
public string? ExportDirectory { get; init; }
|
|
|
|
/// <summary>
|
|
/// Сколько последних архивов держать в каталоге. Дамп канала — это мегабайты, а собирают их
|
|
/// пачками, отлаживая одну и ту же сетку; без потолка папка растёт молча.
|
|
/// </summary>
|
|
public int KeepLast { get; init; } = 20;
|
|
}
|