< Summary

Information
Class: Elsa.Diagnostics.StructuredLogs.Models.StructuredLogSource
Assembly: Elsa.Diagnostics.StructuredLogs
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Diagnostics.StructuredLogs/Models/StructuredLogSource.cs
Line coverage
100%
Covered lines: 12
Uncovered lines: 0
Coverable lines: 12
Total lines: 17
Line coverage: 100%
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_Id()100%11100%
get_DisplayName()100%11100%
get_ServiceName()100%11100%
get_MachineName()100%11100%
get_ProcessId()100%11100%
get_PodName()100%11100%
get_Namespace()100%11100%
get_ContainerName()100%11100%
get_NodeName()100%11100%
get_StartedAt()100%11100%
get_LastSeen()100%11100%
get_Status()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Diagnostics.StructuredLogs/Models/StructuredLogSource.cs

#LineLine coverage
 1namespace Elsa.Diagnostics.StructuredLogs.Models;
 2
 3public record StructuredLogSource
 4{
 615    public string Id { get; init; } = default!;
 406    public string DisplayName { get; init; } = default!;
 197    public string? ServiceName { get; init; }
 488    public string MachineName { get; init; } = Environment.MachineName;
 489    public int ProcessId { get; init; } = Environment.ProcessId;
 1810    public string? PodName { get; init; }
 1911    public string? Namespace { get; init; }
 1912    public string? ContainerName { get; init; }
 1913    public string? NodeName { get; init; }
 1714    public DateTimeOffset? StartedAt { get; init; }
 4415    public DateTimeOffset? LastSeen { get; init; }
 5416    public StructuredLogSourceStatus Status { get; init; } = StructuredLogSourceStatus.Unknown;
 17}