JobSchedule
AgentPrism.Abstractions.dllThe schedule record defining when and how a job runs.
public sealed record JobSchedule : IEquatable<JobSchedule>Inheritance
Section titled “Inheritance”Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”If Cron is left empty, the schedule is triggered only
manually (POST .../trigger); no automatic next-run time is computed.
Constructors
Section titled “Constructors”JobSchedule()
Section titled “ JobSchedule()”public JobSchedule()Properties
Section titled “Properties”CreatedAt
Section titled “ CreatedAt”The creation time (UTC).
public required DateTimeOffset CreatedAt { get; init; }Property Value
Section titled “Property Value”CreatedBy
Section titled “ CreatedBy”The identifier of the user/service that created the schedule.
public string? CreatedBy { get; init; }Property Value
Section titled “Property Value”The five-field cron expression (minute hour day-of-month month day-of-week). If null, the schedule is triggered only manually.
public string? Cron { get; init; }Property Value
Section titled “Property Value”Enabled
Section titled “ Enabled”Whether the schedule is enabled. If disabled, it is not triggered automatically.
public bool Enabled { get; init; }Property Value
Section titled “Property Value”The schedule identifier.
public Guid Id { get; init; }Property Value
Section titled “Property Value”The kind of job this schedule produces.
public required JobKind Kind { get; init; }Property Value
Section titled “Property Value”LastRunAt
Section titled “ LastRunAt”The last run time (UTC). null if it never ran.
public DateTimeOffset? LastRunAt { get; init; }Property Value
Section titled “Property Value”The schedule name, unique within the tenant.
public required string Name { get; init; }Property Value
Section titled “Property Value”NextRunAt
Section titled “ NextRunAt”The next automatic run time (UTC). null if there is no cron.
public DateTimeOffset? NextRunAt { get; init; }Property Value
Section titled “Property Value”Payload
Section titled “ Payload”The input set or parameters. Interpreted according to the job kind.
public JsonElement Payload { get; init; }Property Value
Section titled “Property Value”TargetName
Section titled “ TargetName”The agent or workflow name to run.
public required string TargetName { get; init; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”The tenant the schedule belongs to.
public required string TenantId { get; init; }Property Value
Section titled “Property Value”TimeZone
Section titled “ TimeZone”The time zone the Cron expression is interpreted in.
public string TimeZone { get; init; }Property Value
Section titled “Property Value”UpdatedAt
Section titled “ UpdatedAt”The last-updated time (UTC).
public required DateTimeOffset UpdatedAt { get; init; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”Equals(object?)
Section titled “ Equals(object?)”public override bool Equals(object? obj)Parameters
Section titled “Parameters”obj object?
Returns
Section titled “Returns”Equals(JobSchedule?)
Section titled “ Equals(JobSchedule?)”public bool Equals(JobSchedule? other)Parameters
Section titled “Parameters”other JobSchedule?
Returns
Section titled “Returns”GetHashCode()
Section titled “ GetHashCode()”public override int GetHashCode()Returns
Section titled “Returns”ToString()
Section titled “ ToString()”public override string ToString()Returns
Section titled “Returns”Operators
Section titled “Operators”operator ==(JobSchedule?, JobSchedule?)
Section titled “ operator ==(JobSchedule?, JobSchedule?)”public static bool operator ==(JobSchedule? left, JobSchedule? right)Parameters
Section titled “Parameters”left JobSchedule?
right JobSchedule?
Returns
Section titled “Returns”operator !=(JobSchedule?, JobSchedule?)
Section titled “ operator !=(JobSchedule?, JobSchedule?)”public static bool operator !=(JobSchedule? left, JobSchedule? right)Parameters
Section titled “Parameters”left JobSchedule?
right JobSchedule?