Table of Contents

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

StartUtc DateTimeOffset

When 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

long

FailedCount

How many runs were Failed, failures the trigger retried included.

public long FailedCount { get; init; }

Property Value

long

MaxDuration

The longest duration.

public TimeSpan MaxDuration { get; init; }

Property Value

TimeSpan

P50Duration

The median duration.

public TimeSpan P50Duration { get; init; }

Property Value

TimeSpan

P95Duration

The 95th percentile duration.

public TimeSpan P95Duration { get; init; }

Property Value

TimeSpan

RunCount

How many runs fired in the bucket, every result included.

public long RunCount { get; }

Property Value

long

SkippedCount

How many runs were Skipped.

public long SkippedCount { get; init; }

Property Value

long

StartUtc

When the bucket starts, inclusive. It ends one bucket size later, exclusive.

public DateTimeOffset StartUtc { get; init; }

Property Value

DateTimeOffset

SucceededCount

How many runs were Succeeded.

public long SucceededCount { get; init; }

Property Value

long

Methods

CountOf(JobRunResult)

How many runs had result; zero for a result this version does not know.

public long CountOf(JobRunResult result)

Parameters

result JobRunResult

The result to count.

Returns

long