Table of Contents

Class ScheduledJobDto

Namespace
Integrations.Contracts.Admin
Assembly
Integrations.Contracts.dll

A scheduled job and its last run (shared by every Worker replica).

public sealed record ScheduledJobDto : IEquatable<ScheduledJobDto>
Inheritance
ScheduledJobDto
Implements
Inherited Members

Constructors

ScheduledJobDto(string, TimeSpan, TimeOnly?, DateTimeOffset?, DateTimeOffset?, DateTimeOffset?, string?, long?)

A scheduled job and its last run (shared by every Worker replica).

public ScheduledJobDto(string Name, TimeSpan Interval, TimeOnly? RunAt, DateTimeOffset? LastStartedAt, DateTimeOffset? LastSucceededAt, DateTimeOffset? LastFailedAt, string? LastError, long? LastDurationMs)

Parameters

Name string

Job name, as used by POST /api/v1/admin/jobs/{name}/run.

Interval TimeSpan

Time between runs (ignored when RunAt is set), e.g. 00:02:00.

RunAt TimeOnly?

Daily wall-clock time in the business time zone, for jobs that run once a day.

LastStartedAt DateTimeOffset?

When the last run started.

LastSucceededAt DateTimeOffset?

When the last successful run finished.

LastFailedAt DateTimeOffset?

When the last failed run finished.

LastError string

Error of the last failed run, cleared by a success.

LastDurationMs long?

Duration of the last run in milliseconds.

Properties

Interval

Time between runs (ignored when RunAt is set), e.g. 00:02:00.

public TimeSpan Interval { get; init; }

Property Value

TimeSpan

LastDurationMs

Duration of the last run in milliseconds.

public long? LastDurationMs { get; init; }

Property Value

long?

LastError

Error of the last failed run, cleared by a success.

public string? LastError { get; init; }

Property Value

string

LastFailedAt

When the last failed run finished.

public DateTimeOffset? LastFailedAt { get; init; }

Property Value

DateTimeOffset?

LastStartedAt

When the last run started.

public DateTimeOffset? LastStartedAt { get; init; }

Property Value

DateTimeOffset?

LastSucceededAt

When the last successful run finished.

public DateTimeOffset? LastSucceededAt { get; init; }

Property Value

DateTimeOffset?

Name

Job name, as used by POST /api/v1/admin/jobs/{name}/run.

public string Name { get; init; }

Property Value

string

RunAt

Daily wall-clock time in the business time zone, for jobs that run once a day.

public TimeOnly? RunAt { get; init; }

Property Value

TimeOnly?