< Summary

Information
Class: Elsa.Api.Client.Resources.WorkflowInstances.Models.ActivityIncident
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/ActivityIncident.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 16
Coverable lines: 16
Total lines: 56
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
.ctor()100%210%
.ctor(...)100%210%
get_ActivityId()100%210%
get_ActivityNodeId()100%210%
get_ActivityType()100%210%
get_Message()100%210%
get_Exception()100%210%
get_Timestamp()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/WorkflowInstances/Models/ActivityIncident.cs

#LineLine coverage
 1using System.Text.Json.Serialization;
 2
 3namespace Elsa.Api.Client.Resources.WorkflowInstances.Models;
 4
 5/// <summary>
 6/// Holds information about an activity incident.
 7/// </summary>
 8public class ActivityIncident
 9{
 10    /// <summary>
 11    /// Initializes a new instance of the <see cref="ActivityIncident"/> class.
 12    /// </summary>
 13    [JsonConstructor]
 014    public ActivityIncident()
 15    {
 016    }
 17
 18    /// <summary>
 19    /// Initializes a new instance of the <see cref="ActivityIncident"/> class.
 20    /// </summary>
 21    /// <param name="activityId">The ID of the activity that caused the incident.</param>
 22    /// <param name="activityNodeId">The Node ID of the activity that caused the incident.</param>
 23    /// <param name="activityType">The type of the activity that caused the incident.</param>
 24    /// <param name="message">The message of the incident.</param>
 25    /// <param name="exception">The exception that caused the incident.</param>
 26    /// <param name="timestamp">The timestamp of the incident.</param>
 027    public ActivityIncident(string activityId, string activityNodeId, string activityType, string message, ExceptionStat
 28    {
 029        ActivityId = activityId;
 030        ActivityNodeId = activityNodeId;
 031        ActivityType = activityType;
 032        Message = message;
 033        Exception = exception;
 034        Timestamp = timestamp;
 035    }
 36
 37    /// <summary>The ID of the activity that caused the incident.</summary>
 038    public string ActivityId { get; init; } = default!;
 39
 40    /// <summary>The Node ID of the activity that caused the incident.</summary>
 041    public string ActivityNodeId { get; init; } = default!;
 42
 43    /// <summary>The type of the activity that caused the incident.</summary>
 044    public string ActivityType { get; init; } = default!;
 45
 46    /// <summary>The message of the incident.</summary>
 047    public string Message { get; init; } = default!;
 48
 49    /// <summary>The exception that caused the incident.</summary>
 050    public ExceptionState? Exception { get; init; }
 51
 52    /// <summary>
 53    /// The timestamp of the incident.
 54    /// </summary>
 055    public DateTimeOffset Timestamp { get; init; }
 56}