Class BackupArchiveStatus
The WAL archive's state (#1418).
public sealed record BackupArchiveStatus : IEquatable<BackupArchiveStatus>
- Inheritance
-
BackupArchiveStatus
- Implements
- Inherited Members
Constructors
BackupArchiveStatus(BackupArchiveState, Guid, long, long, long, double, long, long, long, DateTime, int, string)
The WAL archive's state (#1418).
public BackupArchiveStatus(BackupArchiveState State, Guid TimelineId, long ArchivedThroughLsn, long LagBytes, long BacklogBytes, double LagSeconds, long GapsTotal, long LastGapFromLsn, long LastGapToLsn, DateTime LastArchivedSealUtc, int ConsecutiveFailures, string LastError)
Parameters
StateBackupArchiveStateWhat it is doing.
TimelineIdGuidThe timeline being archived.
ArchivedThroughLsnlongEvery LSN up to this one is archived; 0 = nothing yet.
LagByteslongDurable WAL bytes not archived yet.
BacklogByteslongWAL bytes held on disk for the archive alone.
LagSecondsdoubleThe RPO: 0 when everything durable is archived.
GapsTotallongGaps recorded this session.
LastGapFromLsnlongThe last gap's first LSN; 0 = none.
LastGapToLsnlongThe last gap's last LSN; 0 = none.
LastArchivedSealUtcDateTimeWhen the newest archived segment was sealed; MinValue when unknown.
ConsecutiveFailuresintStore failures in a row.
LastErrorstringThe last failure, or
null.
Properties
ArchivedThroughLsn
Every LSN up to this one is archived; 0 = nothing yet.
public long ArchivedThroughLsn { get; init; }
Property Value
BacklogBytes
WAL bytes held on disk for the archive alone.
public long BacklogBytes { get; init; }
Property Value
ConsecutiveFailures
Store failures in a row.
public int ConsecutiveFailures { get; init; }
Property Value
GapsTotal
Gaps recorded this session.
public long GapsTotal { get; init; }
Property Value
LagBytes
Durable WAL bytes not archived yet.
public long LagBytes { get; init; }
Property Value
LagSeconds
The RPO: 0 when everything durable is archived.
public double LagSeconds { get; init; }
Property Value
LastArchivedSealUtc
When the newest archived segment was sealed; MinValue when unknown.
public DateTime LastArchivedSealUtc { get; init; }
Property Value
LastError
The last failure, or null.
public string LastError { get; init; }
Property Value
LastGapFromLsn
The last gap's first LSN; 0 = none.
public long LastGapFromLsn { get; init; }
Property Value
LastGapToLsn
The last gap's last LSN; 0 = none.
public long LastGapToLsn { get; init; }
Property Value
Off
Archiving off.
public static BackupArchiveStatus Off { get; }
Property Value
State
What it is doing.
public BackupArchiveState State { get; init; }
Property Value
TimelineId
The timeline being archived.
public Guid TimelineId { get; init; }
Property Value
Methods
Deconstruct(out BackupArchiveState, out Guid, out long, out long, out long, out double, out long, out long, out long, out DateTime, out int, out string)
public void Deconstruct(out BackupArchiveState State, out Guid TimelineId, out long ArchivedThroughLsn, out long LagBytes, out long BacklogBytes, out double LagSeconds, out long GapsTotal, out long LastGapFromLsn, out long LastGapToLsn, out DateTime LastArchivedSealUtc, out int ConsecutiveFailures, out string LastError)
Parameters
StateBackupArchiveStateTimelineIdGuidArchivedThroughLsnlongLagByteslongBacklogByteslongLagSecondsdoubleGapsTotallongLastGapFromLsnlongLastGapToLsnlongLastArchivedSealUtcDateTimeConsecutiveFailuresintLastErrorstring
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
Equals(BackupArchiveStatus?)
public bool Equals(BackupArchiveStatus? other)
Parameters
otherBackupArchiveStatus
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BackupArchiveStatus?, BackupArchiveStatus?)
public static bool operator ==(BackupArchiveStatus? left, BackupArchiveStatus? right)
Parameters
leftBackupArchiveStatusrightBackupArchiveStatus
Returns
operator !=(BackupArchiveStatus?, BackupArchiveStatus?)
public static bool operator !=(BackupArchiveStatus? left, BackupArchiveStatus? right)
Parameters
leftBackupArchiveStatusrightBackupArchiveStatus