< Summary

Information
Class: Elsa.AI.Abstractions.Models.AIAuditEvent
Assembly: Elsa.AI.Abstractions
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Abstractions/Models/AIAuditEvent.cs
Line coverage
81%
Covered lines: 9
Uncovered lines: 2
Coverable lines: 11
Total lines: 16
Line coverage: 81.8%
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_TenantId()100%11100%
get_ActorId()100%11100%
get_ConversationId()100%11100%
get_ProposalId()100%210%
get_ToolInvocationId()100%11100%
get_Type()100%11100%
get_Timestamp()100%11100%
get_TraceId()100%210%
get_Summary()100%11100%
get_Data()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.AI.Abstractions/Models/AIAuditEvent.cs

#LineLine coverage
 1namespace Elsa.AI.Abstractions.Models;
 2
 3public record AIAuditEvent
 4{
 1115    public string Id { get; init; } = Guid.NewGuid().ToString("N");
 1106    public string? TenantId { get; init; }
 2217    public string ActorId { get; init; } = "";
 1108    public string? ConversationId { get; init; }
 09    public string? ProposalId { get; init; }
 2810    public string? ToolInvocationId { get; init; }
 23711    public string Type { get; init; } = "";
 22212    public DateTimeOffset Timestamp { get; init; } = DateTimeOffset.UtcNow;
 013    public string? TraceId { get; init; }
 21914    public string Summary { get; init; } = "";
 22015    public JsonObject Data { get; init; } = [];
 16}