Skip to content

Class PostgresDependencyDefinition

Namespace: Cephalon.Observability.PostgresDependencies.Configuration
Assembly: Cephalon.Observability.PostgresDependencies.dll

Describes one Postgres dependency that should contribute to runtime health.

public sealed class PostgresDependencyDefinition : DependencyDefinitionBase

objectDependencyDefinitionBasePostgresDependencyDefinition

DependencyDefinitionBase.Id, DependencyDefinitionBase.DisplayName, DependencyDefinitionBase.Required, DependencyDefinitionBase.TimeoutSeconds, object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Initializes a new instance of the class.

public PostgresDependencyDefinition()

Gets or sets the optional full Postgres connection string used for the probe.

public string? ConnectionString { get; set; }

string?

Gets or sets the database name used for the health query.

public string Database { get; set; }

string

Gets or sets the SQL statement executed to verify the dependency.

public string HealthQuery { get; set; }

string

Gets or sets the Postgres host name or IP address to probe when no full connection string is supplied.

public string Host { get; set; }

string

Gets or sets the optional password used for authentication when no full connection string is supplied.

public string? Password { get; set; }

string?

Gets or sets the Postgres TCP port.

public int Port { get; set; }

int

Gets or sets the optional Postgres SSL mode used when building the probe connection string.

public string? SslMode { get; set; }

string?

Gets or sets the optional user name used for authentication when no full connection string is supplied.

public string? Username { get; set; }

string?