Class ReactiveTaskSnapshot<TTask>
Represents a snapshot of reactive task's state.
public sealed record ReactiveTaskSnapshot<TTask> : IEquatable<ReactiveTaskSnapshot<TTask>> where TTask : notnull
Type Parameters
TTask
Reactive 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
Task
TTaskReactive task.
FirstInvocationTimestamp
Timestamp?Timestamp of the first invocation.
LastInvocationTimestamp
Timestamp?Timestamp of the last invocation.
TotalInvocations
longNumber of total task invocations.
ActiveInvocations
longNumber of currently active invocations.
CompletedInvocations
longNumber of completed invocations.
DelayedInvocations
longNumber of invocations that have been delayed due to maximum concurrency limit.
FailedInvocations
longNumber of completed invocations that ended with an error.
CancelledInvocations
longNumber of completed invocations that ended due to cancellation.
QueuedInvocations
longNumber of currently queued invocations due to maximum concurrency limit.
MaxQueuedInvocations
longNumber of maximum queued invocations at the same time.
ActiveTasks
longNumber of currently running tasks.
MaxActiveTasks
longNumber of maximum running tasks at the same time.
MinElapsedTime
DurationMinimum amount of time taken to complete a single invocation.
MaxElapsedTime
DurationMaximum amount of time taken to complete a single invocation.
AverageElapsedTime
FloatingDurationAverage 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; }