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
NamestringJob name, as used by
POST /api/v1/admin/jobs/{name}/run.IntervalTimeSpanTime between runs (ignored when
RunAtis set), e.g.00:02:00.RunAtTimeOnly?Daily wall-clock time in the business time zone, for jobs that run once a day.
LastStartedAtDateTimeOffset?When the last run started.
LastSucceededAtDateTimeOffset?When the last successful run finished.
LastFailedAtDateTimeOffset?When the last failed run finished.
LastErrorstringError of the last failed run, cleared by a success.
LastDurationMslong?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
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
LastFailedAt
When the last failed run finished.
public DateTimeOffset? LastFailedAt { get; init; }
Property Value
LastStartedAt
When the last run started.
public DateTimeOffset? LastStartedAt { get; init; }
Property Value
LastSucceededAt
When the last successful run finished.
public DateTimeOffset? LastSucceededAt { get; init; }
Property Value
Name
Job name, as used by POST /api/v1/admin/jobs/{name}/run.
public string Name { get; init; }
Property Value
RunAt
Daily wall-clock time in the business time zone, for jobs that run once a day.
public TimeOnly? RunAt { get; init; }