< Summary

Information
Class: Intentum.Observability.PolicyExecutionRecord
Assembly: Intentum.Observability
File(s): /home/runner/work/Intentum/Intentum/src/Intentum.Observability/PolicyExecutionRecord.cs
Line coverage
100%
Covered lines: 8
Uncovered lines: 0
Coverable lines: 8
Total lines: 23
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 Cyclomatic complexity NPath complexity Sequence coverage
.ctor(...)100%11100%

File(s)

/home/runner/work/Intentum/Intentum/src/Intentum.Observability/PolicyExecutionRecord.cs

#LineLine coverage
 1using Intentum.Runtime.Policy;
 2
 3namespace Intentum.Observability;
 4
 5/// <summary>
 6/// Record of a single policy evaluation for logging and correlation (matched rule, intent name, decision, duration).
 7/// Use with <see cref="ObservablePolicyEngine.DecideWithExecutionLog"/> to log policy execution and failure trace.
 8/// </summary>
 9/// <param name="IntentName">Name of the intent that was evaluated.</param>
 10/// <param name="MatchedRuleName">Name of the rule that matched, or null if none.</param>
 11/// <param name="Decision">Policy decision (Allow, Block, Observe, etc.).</param>
 12/// <param name="DurationMs">Evaluation duration in milliseconds.</param>
 13/// <param name="Success">True if evaluation completed without exception.</param>
 14/// <param name="ExceptionMessage">Exception message when Success is false; null otherwise.</param>
 15/// <param name="ExceptionTrace">Stack trace when Success is false; null otherwise.</param>
 1316public sealed record PolicyExecutionRecord(
 217    string IntentName,
 218    string? MatchedRuleName,
 219    PolicyDecision Decision,
 120    double DurationMs,
 421    bool Success = true,
 422    string? ExceptionMessage = null,
 1623    string? ExceptionTrace = null);