< 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{
 1825    public string Id { get; init; } = default!;
 1186    public string DisplayName { get; init; } = default!;
 507    public string? ServiceName { get; init; }
 1428    public string MachineName { get; init; } = Environment.MachineName;
 1489    public int ProcessId { get; init; } = Environment.ProcessId;
 4510    public string? PodName { get; init; }
 4611    public string? Namespace { get; init; }
 4612    public string? ContainerName { get; init; }
 4613    public string? NodeName { get; init; }
 4414    public DateTimeOffset? StartedAt { get; init; }
 21615    public DateTimeOffset? LastSeen { get; init; }
 25016    public StructuredLogSourceStatus Status { get; init; } = StructuredLogSourceStatus.Unknown;
 17}