Class ExecutionStatisticsBucket
- Namespace
- Quartz
- Assembly
- Quartz.dll
The runs that fired in one bucket: how many there were of each result, and how long they took.
public sealed record ExecutionStatisticsBucket : IEquatable<ExecutionStatisticsBucket>
- Inheritance
-
ExecutionStatisticsBucket
- Implements
- Inherited Members
Remarks
A run is counted by its EffectiveResult, so a row written before 4.4 counts as succeeded or failed.
The durations are over every run in the bucket, whatever its result. A percentile interpolates between
the two runs nearest its rank, as SQL's PERCENTILE_CONT does: with the durations sorted, the
p-th percentile of n runs lies at position (n - 1) * p.
Constructors
ExecutionStatisticsBucket(DateTimeOffset)
The runs that fired in one bucket: how many there were of each result, and how long they took.
public ExecutionStatisticsBucket(DateTimeOffset StartUtc)
Parameters
StartUtcDateTimeOffsetWhen the bucket starts, inclusive. It ends one bucket size later, exclusive.
Remarks
A run is counted by its EffectiveResult, so a row written before 4.4 counts as succeeded or failed.
The durations are over every run in the bucket, whatever its result. A percentile interpolates between
the two runs nearest its rank, as SQL's PERCENTILE_CONT does: with the durations sorted, the
p-th percentile of n runs lies at position (n - 1) * p.
Properties
CancelledCount
How many runs were Cancelled.
public long CancelledCount { get; init; }
Property Value
FailedCount
How many runs were Failed, failures the trigger retried included.
public long FailedCount { get; init; }
Property Value
MaxDuration
The longest duration.
public TimeSpan MaxDuration { get; init; }
Property Value
P50Duration
The median duration.
public TimeSpan P50Duration { get; init; }
Property Value
P95Duration
The 95th percentile duration.
public TimeSpan P95Duration { get; init; }
Property Value
RunCount
How many runs fired in the bucket, every result included.
public long RunCount { get; }
Property Value
SkippedCount
How many runs were Skipped.
public long SkippedCount { get; init; }
Property Value
StartUtc
When the bucket starts, inclusive. It ends one bucket size later, exclusive.
public DateTimeOffset StartUtc { get; init; }
Property Value
SucceededCount
How many runs were Succeeded.
public long SucceededCount { get; init; }
Property Value
Methods
CountOf(JobRunResult)
How many runs had result; zero for a result this version does not know.
public long CountOf(JobRunResult result)
Parameters
resultJobRunResultThe result to count.