Class ReactiveTaskSnapshot<TTask>
Represents a snapshot of reactive task's state.
public sealed record ReactiveTaskSnapshot<TTask> : IEquatable<ReactiveTaskSnapshot<TTask>> where TTask : notnull
Type Parameters
TTaskReactive task type.
- Inheritance
-
ReactiveTaskSnapshot<TTask>
- Implements
-
IEquatable<ReactiveTaskSnapshot<TTask>>
- Inherited Members
Constructors
ReactiveTaskSnapshot(TTask, Timestamp?, Timestamp?, long, long, long, long, long, long, long, long, long, long, Duration, Duration, FloatingDuration)
Represents a snapshot of reactive task's state.
public ReactiveTaskSnapshot(TTask Task, Timestamp? FirstInvocationTimestamp, Timestamp? LastInvocationTimestamp, long TotalInvocations, long ActiveInvocations, long CompletedInvocations, long DelayedInvocations, long FailedInvocations, long CancelledInvocations, long QueuedInvocations, long MaxQueuedInvocations, long ActiveTasks, long MaxActiveTasks, Duration MinElapsedTime, Duration MaxElapsedTime, FloatingDuration AverageElapsedTime)
Parameters
TaskTTaskReactive task.
FirstInvocationTimestampTimestamp?Timestamp of the first invocation.
LastInvocationTimestampTimestamp?Timestamp of the last invocation.
TotalInvocationslongNumber of total task invocations.
ActiveInvocationslongNumber of currently active invocations.
CompletedInvocationslongNumber of completed invocations.
DelayedInvocationslongNumber of invocations that have been delayed due to maximum concurrency limit.
FailedInvocationslongNumber of completed invocations that ended with an error.
CancelledInvocationslongNumber of completed invocations that ended due to cancellation.
QueuedInvocationslongNumber of currently queued invocations due to maximum concurrency limit.
MaxQueuedInvocationslongNumber of maximum queued invocations at the same time.
ActiveTaskslongNumber of currently running tasks.
MaxActiveTaskslongNumber of maximum running tasks at the same time.
MinElapsedTimeDurationMinimum amount of time taken to complete a single invocation.
MaxElapsedTimeDurationMaximum amount of time taken to complete a single invocation.
AverageElapsedTimeFloatingDurationAverage amount of time taken to complete a single invocation.
Properties
ActiveInvocations
Number of currently active invocations.
public long ActiveInvocations { get; init; }
Property Value
ActiveTasks
Number of currently running tasks.
public long ActiveTasks { get; init; }
Property Value
AverageElapsedTime
Average amount of time taken to complete a single invocation.
public FloatingDuration AverageElapsedTime { get; init; }
Property Value
CancelledInvocations
Number of completed invocations that ended due to cancellation.
public long CancelledInvocations { get; init; }
Property Value
CompletedInvocations
Number of completed invocations.
public long CompletedInvocations { get; init; }
Property Value
DelayedInvocations
Number of invocations that have been delayed due to maximum concurrency limit.
public long DelayedInvocations { get; init; }
Property Value
FailedInvocations
Number of completed invocations that ended with an error.
public long FailedInvocations { get; init; }
Property Value
FirstInvocationTimestamp
Timestamp of the first invocation.
public Timestamp? FirstInvocationTimestamp { get; init; }
Property Value
LastInvocationTimestamp
Timestamp of the last invocation.
public Timestamp? LastInvocationTimestamp { get; init; }
Property Value
MaxActiveTasks
Number of maximum running tasks at the same time.
public long MaxActiveTasks { get; init; }
Property Value
MaxElapsedTime
Maximum amount of time taken to complete a single invocation.
public Duration MaxElapsedTime { get; init; }
Property Value
MaxQueuedInvocations
Number of maximum queued invocations at the same time.
public long MaxQueuedInvocations { get; init; }
Property Value
MinElapsedTime
Minimum amount of time taken to complete a single invocation.
public Duration MinElapsedTime { get; init; }
Property Value
QueuedInvocations
Number of currently queued invocations due to maximum concurrency limit.
public long QueuedInvocations { get; init; }
Property Value
SkippedInvocations
Number of skipped invocations.
public long SkippedInvocations { get; }
Property Value
Task
Reactive task.
public TTask Task { get; init; }
Property Value
- TTask
TotalInvocations
Number of total task invocations.
public long TotalInvocations { get; init; }