Class MaintenanceOperationData
One planned maintenance window: what it covers, when it lands, and where it has got to.
public sealed class MaintenanceOperationData
- Inheritance
-
MaintenanceOperationData
- Inherited Members
Remarks
The plan is rows, not a running procedure. Everything that acts on a server was written when the operation started; this record exists so an operator can see what was written, what the servers have done about it since, and — when it goes wrong — which target it went wrong on.
Properties
CancelReason
Why it was cancelled. Also recorded in the audit log.
public string CancelReason { get; set; }
Property Value
CancelledBy
The operator account that cancelled it, when one did.
public string CancelledBy { get; set; }
Property Value
CancelledUtc
When it was cancelled.
public DateTime? CancelledUtc { get; set; }
Property Value
CompletedUtc
When every target reached a terminal state, or null while it is running.
public DateTime? CompletedUtc { get; set; }
Property Value
DeadlineUtc
The absolute instant every target is due to stop.
public DateTime DeadlineUtc { get; set; }
Property Value
Remarks
One deadline for the whole operation rather than one per target, because a shard goes down together: staggering the deadlines would leave a world running with no scene servers under it, or the reverse.
DrainSeconds
How long players were given, in seconds.
public int DrainSeconds { get; set; }
Property Value
ID
Surrogate key.
public long ID { get; set; }
Property Value
Name
What the operator called it, for the list.
public string Name { get; set; }
Property Value
Outcome
What happened in the end, in words, for whoever reads this later.
public string Outcome { get; set; }
Property Value
Reason
Why. Mandatory, and also recorded in the audit log.
public string Reason { get; set; }
Property Value
SecondsUntilDeadline
Seconds until DeadlineUtc, measured by the database clock when this was read; zero or negative once it has passed.
public double SecondsUntilDeadline { get; set; }
Property Value
Remarks
Measured by the clock the deadline was planned on and every server counts down against,
never by the reader's. The panel used to subtract its own DateTime.UtcNow, so a
panel host running slow showed a countdown with time still on it for servers that had
already stopped. A reader that wants a live countdown anchors this on its own clock at
the moment the reply arrived.
StartedBy
The operator account that planned it. Copied, with no foreign key.
public string StartedBy { get; set; }
Property Value
StartedUtc
When the operation was planned and the rows were written.
public DateTime StartedUtc { get; set; }
Property Value
Status
Derived from the targets on every read. Never set independently of them.
public MaintenanceStatus Status { get; set; }
Property Value
Targets
Every server in the window, with its own progress.
public IReadOnlyList<MaintenanceTargetData> Targets { get; set; }