< Summary

Information
Class: OzonOrdersWeb.WebServices.JobLogs.JobLogsBadgeSummaryDto
Assembly: OzonOrdersWeb
File(s): /home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/WebServices/JobLogs/JobLogsBadgeModels.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 48
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Success()100%210%
get_Clear()100%210%
get_Push()100%210%
get_Transactions()100%210%
get_Webhook()100%210%
get_EmailRouting()100%210%
get_FileUpload()100%210%
get_StockSync()100%210%
get_OrderSearch()100%210%
get_SystemAlerts()100%210%

File(s)

/home/runner/work/Studio2Prod/Studio2Prod/OzonOrdersWeb/WebServices/JobLogs/JobLogsBadgeModels.cs

#LineLine coverage
 1namespace OzonOrdersWeb.WebServices.JobLogs;
 2
 3public sealed class JobLogsBadgeSummaryDto
 4{
 05    public bool Success { get; set; } = true;
 06    public JobLogsChannelBadgeDto Clear { get; set; } = new();
 07    public JobLogsChannelBadgeDto Push { get; set; } = new();
 08    public JobLogsChannelBadgeDto? Transactions { get; set; }
 09    public JobLogsChannelBadgeDto Webhook { get; set; } = new();
 010    public JobLogsChannelBadgeDto EmailRouting { get; set; } = new();
 011    public JobLogsChannelBadgeDto FileUpload { get; set; } = new();
 012    public JobLogsChannelBadgeDto StockSync { get; set; } = new();
 013    public JobLogsOrderSearchBadgeDto? OrderSearch { get; set; }
 14
 15    /// <summary>Постоянные предупреждения для админов (баннер сверху, без кнопки закрытия, пока проблема не устранена).
 016    public List<JobLogsSystemAlertDto> SystemAlerts { get; set; } = [];
 17}
 18
 19public sealed class JobLogsSystemAlertDto
 20{
 21    public string Key { get; set; } = string.Empty;
 22    public string Domain { get; set; } = string.Empty;
 23
 24    /// <summary><c>danger</c> — красный (сбой), <c>warning</c> — жёлтый (на проверке).</summary>
 25    public string Severity { get; set; } = "danger";
 26
 27    public string Title { get; set; } = string.Empty;
 28    public List<string> Lines { get; set; } = [];
 29    public string Url { get; set; } = string.Empty;
 30}
 31
 32public sealed class JobLogsOrderSearchBadgeDto
 33{
 34    public bool HasCountDrift { get; set; }
 35    public long CountDrift { get; set; }
 36}
 37
 38public sealed class JobLogsChannelBadgeDto
 39{
 40    public long? LatestId { get; set; }
 41    public DateTime? LatestAtUtc { get; set; }
 42    public string? LatestStatus { get; set; }
 43    public bool IsRunning { get; set; }
 44    public bool HasRecentFailure { get; set; }
 45    public int RecentFailureCount { get; set; }
 46    public int RunningCount { get; set; }
 47    public int UnreadCount { get; set; }
 48}