Class DatabaseRoleRuntimeDescriptor
Namespace: Cephalon.Abstractions.Data
Assembly: Cephalon.Abstractions.dll
Describes additive runtime state projected for one logical database role.
public sealed class DatabaseRoleRuntimeDescriptorInheritance
Section titled “Inheritance”object ← DatabaseRoleRuntimeDescriptor
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”DatabaseRoleId
Section titled “ DatabaseRoleId”Gets the logical database-role identifier that this runtime state applies to.
public string DatabaseRoleId { get; }Property Value
Section titled “Property Value”HealthDescription
Section titled “ HealthDescription”Gets the operator-facing health description for the role, when known.
public string? HealthDescription { get; }Property Value
Section titled “Property Value”HealthState
Section titled “ HealthState”Gets the current runtime health state for the role, when known.
public HealthState? HealthState { get; }Property Value
Section titled “Property Value”Metadata
Section titled “ Metadata”Gets optional runtime metadata associated with the role.
public IReadOnlyDictionary<string, string> Metadata { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
MigrationDescription
Section titled “ MigrationDescription”Gets the operator-facing migration description for the role, when known.
public string? MigrationDescription { get; }Property Value
Section titled “Property Value”MigrationState
Section titled “ MigrationState”Gets the current migration execution state for the role, when known.
public string? MigrationState { get; }Property Value
Section titled “Property Value”ObservedAtUtc
Section titled “ ObservedAtUtc”Gets the UTC timestamp when this runtime state was last observed.
public DateTimeOffset? ObservedAtUtc { get; }Property Value
Section titled “Property Value”Gets the stable probe-freshness answer for the role, when known.
public DatabaseRoleProbeDescriptor? Probe { get; }