Skip to content

Class DatabaseRoleProbeDescriptor

Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll

Describes the stable probe-freshness runtime state published for one database role.

public sealed class DatabaseRoleProbeDescriptor

objectDatabaseRoleProbeDescriptor

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

DatabaseRoleProbeDescriptor(bool, int, string?, string?, DateTimeOffset?, int?)

Section titled “ DatabaseRoleProbeDescriptor(bool, int, string?, string?, DateTimeOffset?, int?)”

Creates a new database-role probe descriptor.

public DatabaseRoleProbeDescriptor(bool cacheEnabled, int freshnessSeconds, string? freshnessOrigin = null, string? source = null, DateTimeOffset? freshUntilUtc = null, int? ageSeconds = null)

cacheEnabled bool

Whether cached probe answers are enabled for the role.

freshnessSeconds int

The configured or default freshness window in seconds.

freshnessOrigin string?

The source of the effective freshness window, such as configured or default.

source string?

The source of the current answer, such as live or cache.

freshUntilUtc DateTimeOffset?

The UTC timestamp until which the current answer remains fresh, when known.

ageSeconds int?

The age in seconds of the current answer, when known.

Gets the age in seconds of the current answer, when known.

public int? AgeSeconds { get; }

int?

Gets a value indicating whether cached probe answers are enabled for the role.

public bool CacheEnabled { get; }

bool

Gets the UTC timestamp until which the current answer remains fresh, when known.

public DateTimeOffset? FreshUntilUtc { get; }

DateTimeOffset?

Gets the source of the effective freshness window, when known.

public string? FreshnessOrigin { get; }

string?

Gets the configured or default freshness window in seconds.

public int FreshnessSeconds { get; }

int

Gets the source of the current answer, such as live or cache, when known.

public string? Source { get; }

string?