< Summary

Information
Class: Elsa.Api.Client.Resources.ActivityExecutions.Models.ActivityExecutionStats
Assembly: Elsa.Api.Client
File(s): /home/runner/work/elsa-core/elsa-core/src/clients/Elsa.Api.Client/Resources/ActivityExecutions/Models/ActivityExecutionStats.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 47
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
get_ActivityId()100%210%
get_ActivityNodeId()100%210%
get_StartedCount()100%210%
get_CompletedCount()100%210%
get_UncompletedCount()100%210%
get_IsBlocked()100%210%
get_IsFaulted()100%210%
get_Metadata()100%210%

File(s)

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

#LineLine coverage
 1namespace Elsa.Api.Client.Resources.ActivityExecutions.Models;
 2
 3/// <summary>
 4/// Represents statistics about the execution of an activity.
 5/// </summary>
 6public class ActivityExecutionStats
 7{
 8    /// <summary>
 9    /// Gets or sets the ID of the activity.
 10    /// </summary>
 011    public string ActivityId { get; set; } = null!;
 12
 13    /// <summary>
 14    /// Gets or sets the node ID of the activity.
 15    /// </summary>
 016    public string ActivityNodeId { get; set; } = null!;
 17
 18    /// <summary>
 19    /// Gets or sets the number of uncompleted executions.
 20    /// </summary>
 021    public long StartedCount { get; set; }
 22
 23    /// <summary>
 24    /// Gets or sets the number of completed executions.
 25    /// </summary>
 026    public long CompletedCount { get; set; }
 27
 28    /// <summary>
 29    /// Gets or sets the number of uncompleted executions.
 30    /// </summary>
 031    public long UncompletedCount { get; set; }
 32
 33    /// <summary>
 34    /// Gets or sets a value whether this activity is waiting for bookmarks to be resumed.
 35    /// </summary>
 036    public bool IsBlocked { get; set; }
 37
 38    /// <summary>
 39    /// Gets or sets a value whether this activity is faulted.
 40    /// </summary>
 041    public bool IsFaulted { get; set; }
 42
 43    /// <summary>
 44    /// Gets or sets additional metadata associated with the activity execution.
 45    /// </summary>
 046    public IDictionary<string, object>? Metadata { get; set; }
 47}