Skip to content

Class DatabaseRoleRuntimeDescriptor

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

Describes additive runtime state projected for one logical database role.

public sealed class DatabaseRoleRuntimeDescriptor

object ← DatabaseRoleRuntimeDescriptor

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

DatabaseRoleRuntimeDescriptor(string, HealthState?, string?, string?, string?, DateTimeOffset?, DatabaseRoleProbeDescriptor?, IReadOnlyDictionary<string, string>?)

Section titled “ DatabaseRoleRuntimeDescriptor(string, HealthState?, string?, string?, string?, DateTimeOffset?, DatabaseRoleProbeDescriptor?, IReadOnlyDictionary<string, string>?)”

Creates a new database-role runtime descriptor.

public DatabaseRoleRuntimeDescriptor(string databaseRoleId, HealthState? healthState = null, string? healthDescription = null, string? migrationState = null, string? migrationDescription = null, DateTimeOffset? observedAtUtc = null, DatabaseRoleProbeDescriptor? probe = null, IReadOnlyDictionary<string, string>? metadata = null)

databaseRoleId string

The logical database-role identifier that this runtime state applies to.

healthState HealthState?

The current runtime health state for the role, when known.

healthDescription string?

The operator-facing health description for the role, when known.

migrationState string?

The current migration execution state for the role, when known.

migrationDescription string?

The operator-facing migration description for the role, when known.

observedAtUtc DateTimeOffset?

The UTC timestamp when this runtime state was last observed.

probe DatabaseRoleProbeDescriptor?

The stable probe-freshness answer for the role, when known.

metadata IReadOnlyDictionary<string, string>?

Optional runtime metadata associated with the role.

Gets the logical database-role identifier that this runtime state applies to.

public string DatabaseRoleId { get; }

string

Gets the operator-facing health description for the role, when known.

public string? HealthDescription { get; }

string?

Gets the current runtime health state for the role, when known.

public HealthState? HealthState { get; }

HealthState?

Gets optional runtime metadata associated with the role.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the operator-facing migration description for the role, when known.

public string? MigrationDescription { get; }

string?

Gets the current migration execution state for the role, when known.

public string? MigrationState { get; }

string?

Gets the UTC timestamp when this runtime state was last observed.

public DateTimeOffset? ObservedAtUtc { get; }

DateTimeOffset?

Gets the stable probe-freshness answer for the role, when known.

public DatabaseRoleProbeDescriptor? Probe { get; }

DatabaseRoleProbeDescriptor?