namespace Elsa.Workflows.Runtime; /// /// A service for reading activity execution logs. /// public interface IActivityExecutionStatsService { /// /// Gets execution stats for the specified activities. /// /// The workflow instance ID. /// The activity node IDs. /// An optional cancellation token. /// The activity execution stats. Task> GetStatsAsync(string workflowInstanceId, IEnumerable activityNodeIds, CancellationToken cancellationToken = default); /// /// Gets execution stats for the specified activity. /// /// The workflow instance ID. /// The activity node ID. /// An optional cancellation token. /// The activity execution stats. Task GetStatsAsync(string workflowInstanceId, string activityNodeId, CancellationToken cancellationToken = default); }