Class BackupStatus
An engine's backups at one instant (Status, backup.status.json): a published snapshot, read without a lock.
MinValue means "none" for every time.
public sealed record BackupStatus : IEquatable<BackupStatus>
- Inheritance
-
BackupStatus
- Implements
- Inherited Members
Constructors
BackupStatus(BackupHealth, BackupHealthReason, string, BackupRunState, BackupRunPhase, long, long, long, BackupPointSummary, DateTime, DateTime, int, BackupFailure, long, long, long, long, long, int, long, int, int, BackupDrillSummary, BackupDrillSummary, BackupRetentionBlock, BackupArchiveStatus, Guid, DateTime)
An engine's backups at one instant (Status, backup.status.json): a published snapshot, read without a lock.
MinValue means "none" for every time.
public BackupStatus(BackupHealth Health, BackupHealthReason Reason, string ReasonText, BackupRunState State, BackupRunPhase Phase, long ProgressPages, long ProgressOfPages, long ProgressBytes, BackupPointSummary LastPoint, DateTime LastSuccessUtc, DateTime NextDueUtc, int ConsecutiveFailures, BackupFailure LastFailure, long PointsTotal, long FailuresTotal, long CbwCopiesTotal, long CbwAbortsTotal, long SuspectPagesTotal, int ChainDepth, long StoreBytes, int RestorablePoints, int FreePageSuspects, BackupDrillSummary LastDrill, BackupDrillSummary LastPassedDrill, BackupRetentionBlock RetentionBlocked, BackupArchiveStatus Archive, Guid LastRequestId, DateTime UpdatedUtc)
Parameters
HealthBackupHealthThe verdict.
ReasonBackupHealthReasonWhy.
ReasonTextstringWhy, in one sentence.
StateBackupRunStateIdle, running, stopped.
PhaseBackupRunPhaseWhat the running job does.
ProgressPageslongPages the running capture has read.
ProgressOfPageslongPages it will read.
ProgressByteslongBytes the running compaction has read.
LastPointBackupPointSummaryThe newest point this engine knows of on its timeline, or
null.LastSuccessUtcDateTimeWhen that point's tail copy ended.
NextDueUtcDateTimeWhen the schedule next takes a point (an estimate: the schedule runs on a monotonic clock); in the past while overdue (the instant it became due).
ConsecutiveFailuresintFailed backups in a row (refusals that only defer are not counted).
LastFailureBackupFailureThe last failure, or
null.PointsTotallongPoints this session published.
FailuresTotallongBackups this session that failed.
CbwCopiesTotallongCopy-before-write copies this session.
CbwAbortsTotallongCaptures this session abandoned because a writer could not wait.
SuspectPagesTotallongSuspect pages in the points this session published.
ChainDepthintThe packs a restore of the newest point reads.
StoreByteslongThe store's pack bytes.
RestorablePointsintThe store's restorable points.
FreePageSuspectsintSuspect pages of the newest point on pages its occupancy marks free (no warning: nothing there is data).
LastDrillBackupDrillSummaryThe newest drill, or
null.LastPassedDrillBackupDrillSummaryThe newest drill that passed, or
null.RetentionBlockedBackupRetentionBlockWhat the last retention could not meet.
ArchiveBackupArchiveStatusThe WAL archive.
LastRequestIdGuidThe last
backup.requestwhose job started.UpdatedUtcDateTimeWhen this snapshot was published.
Properties
Archive
The WAL archive.
public BackupArchiveStatus Archive { get; init; }
Property Value
CbwAbortsTotal
Captures this session abandoned because a writer could not wait.
public long CbwAbortsTotal { get; init; }
Property Value
CbwCopiesTotal
Copy-before-write copies this session.
public long CbwCopiesTotal { get; init; }
Property Value
ChainDepth
The packs a restore of the newest point reads.
public int ChainDepth { get; init; }
Property Value
ConsecutiveFailures
Failed backups in a row (refusals that only defer are not counted).
public int ConsecutiveFailures { get; init; }
Property Value
FailuresTotal
Backups this session that failed.
public long FailuresTotal { get; init; }
Property Value
FreePageSuspects
Suspect pages of the newest point on pages its occupancy marks free (no warning: nothing there is data).
public int FreePageSuspects { get; init; }
Property Value
Health
The verdict.
public BackupHealth Health { get; init; }
Property Value
LastDrill
The newest drill, or null.
public BackupDrillSummary LastDrill { get; init; }
Property Value
LastFailure
The last failure, or null.
public BackupFailure LastFailure { get; init; }
Property Value
LastPassedDrill
The newest drill that passed, or null.
public BackupDrillSummary LastPassedDrill { get; init; }
Property Value
LastPoint
The newest point this engine knows of on its timeline, or null.
public BackupPointSummary LastPoint { get; init; }
Property Value
LastRequestId
The last backup.request whose job started.
public Guid LastRequestId { get; init; }
Property Value
LastSuccessUtc
When that point's tail copy ended.
public DateTime LastSuccessUtc { get; init; }
Property Value
NextDueUtc
When the schedule next takes a point (an estimate: the schedule runs on a monotonic clock); in the past while overdue (the instant it became due).
public DateTime NextDueUtc { get; init; }
Property Value
Off
Backup not configured.
public static BackupStatus Off { get; }
Property Value
Phase
What the running job does.
public BackupRunPhase Phase { get; init; }
Property Value
PointsTotal
Points this session published.
public long PointsTotal { get; init; }
Property Value
ProgressBytes
Bytes the running compaction has read.
public long ProgressBytes { get; init; }
Property Value
ProgressOfPages
Pages it will read.
public long ProgressOfPages { get; init; }
Property Value
ProgressPages
Pages the running capture has read.
public long ProgressPages { get; init; }
Property Value
Reason
Why.
public BackupHealthReason Reason { get; init; }
Property Value
ReasonText
Why, in one sentence.
public string ReasonText { get; init; }
Property Value
RestorablePoints
The store's restorable points.
public int RestorablePoints { get; init; }
Property Value
RetentionBlocked
What the last retention could not meet.
public BackupRetentionBlock RetentionBlocked { get; init; }
Property Value
State
Idle, running, stopped.
public BackupRunState State { get; init; }
Property Value
StoreBytes
The store's pack bytes.
public long StoreBytes { get; init; }
Property Value
SuspectPagesTotal
Suspect pages in the points this session published.
public long SuspectPagesTotal { get; init; }
Property Value
UpdatedUtc
When this snapshot was published.
public DateTime UpdatedUtc { get; init; }
Property Value
Methods
Deconstruct(out BackupHealth, out BackupHealthReason, out string, out BackupRunState, out BackupRunPhase, out long, out long, out long, out BackupPointSummary, out DateTime, out DateTime, out int, out BackupFailure, out long, out long, out long, out long, out long, out int, out long, out int, out int, out BackupDrillSummary, out BackupDrillSummary, out BackupRetentionBlock, out BackupArchiveStatus, out Guid, out DateTime)
public void Deconstruct(out BackupHealth Health, out BackupHealthReason Reason, out string ReasonText, out BackupRunState State, out BackupRunPhase Phase, out long ProgressPages, out long ProgressOfPages, out long ProgressBytes, out BackupPointSummary LastPoint, out DateTime LastSuccessUtc, out DateTime NextDueUtc, out int ConsecutiveFailures, out BackupFailure LastFailure, out long PointsTotal, out long FailuresTotal, out long CbwCopiesTotal, out long CbwAbortsTotal, out long SuspectPagesTotal, out int ChainDepth, out long StoreBytes, out int RestorablePoints, out int FreePageSuspects, out BackupDrillSummary LastDrill, out BackupDrillSummary LastPassedDrill, out BackupRetentionBlock RetentionBlocked, out BackupArchiveStatus Archive, out Guid LastRequestId, out DateTime UpdatedUtc)
Parameters
HealthBackupHealthReasonBackupHealthReasonReasonTextstringStateBackupRunStatePhaseBackupRunPhaseProgressPageslongProgressOfPageslongProgressByteslongLastPointBackupPointSummaryLastSuccessUtcDateTimeNextDueUtcDateTimeConsecutiveFailuresintLastFailureBackupFailurePointsTotallongFailuresTotallongCbwCopiesTotallongCbwAbortsTotallongSuspectPagesTotallongChainDepthintStoreByteslongRestorablePointsintFreePageSuspectsintLastDrillBackupDrillSummaryLastPassedDrillBackupDrillSummaryRetentionBlockedBackupRetentionBlockArchiveBackupArchiveStatusLastRequestIdGuidUpdatedUtcDateTime
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BackupStatus?)
public bool Equals(BackupStatus? other)
Parameters
otherBackupStatus
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BackupStatus?, BackupStatus?)
public static bool operator ==(BackupStatus? left, BackupStatus? right)
Parameters
leftBackupStatusrightBackupStatus
Returns
operator !=(BackupStatus?, BackupStatus?)
public static bool operator !=(BackupStatus? left, BackupStatus? right)
Parameters
leftBackupStatusrightBackupStatus