Skip to content

Class MongoDbDependencyDefinition

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

Describes one MongoDB dependency that should contribute to runtime health.

public sealed class MongoDbDependencyDefinition : DependencyDefinitionBase

objectDependencyDefinitionBaseMongoDbDependencyDefinition

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 MongoDbDependencyDefinition()

Gets or sets the optional value that controls whether TLS certificate validation should be relaxed.

public bool? AllowInsecureTls { get; set; }

bool?

Gets or sets the optional authentication source used when creating credentials from discrete settings.

public string? AuthSource { get; set; }

string?

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

public string? ConnectionString { get; set; }

string?

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

public string Database { get; set; }

string

Gets or sets the optional value that controls whether the client should connect directly to the target server.

public bool? DirectConnection { get; set; }

bool?

Gets or sets the MongoDB database command executed to verify the dependency.

public string HealthCommand { get; set; }

string

Gets or sets the MongoDB 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 MongoDB TCP port.

public int Port { get; set; }

int

Gets or sets the optional value that controls whether TLS should be used for the probe.

public bool? UseTls { get; set; }

bool?

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

public string? Username { get; set; }

string?