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