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 : DependencyDefinitionBaseInheritance
Section titled “Inheritance”object ← DependencyDefinitionBase ← MongoDbDependencyDefinition
Inherited Members
Section titled “Inherited Members”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()
Constructors
Section titled “Constructors”MongoDbDependencyDefinition()
Section titled “ MongoDbDependencyDefinition()”Initializes a new instance of the
public MongoDbDependencyDefinition()Properties
Section titled “Properties”AllowInsecureTls
Section titled “ AllowInsecureTls”Gets or sets the optional value that controls whether TLS certificate validation should be relaxed.
public bool? AllowInsecureTls { get; set; }Property Value
Section titled “Property Value”bool?
AuthSource
Section titled “ AuthSource”Gets or sets the optional authentication source used when creating credentials from discrete settings.
public string? AuthSource { get; set; }Property Value
Section titled “Property Value”ConnectionString
Section titled “ ConnectionString”Gets or sets the optional full MongoDB connection string used for the probe.
public string? ConnectionString { get; set; }Property Value
Section titled “Property Value”Database
Section titled “ Database”Gets or sets the database name used for the health command.
public string Database { get; set; }Property Value
Section titled “Property Value”DirectConnection
Section titled “ DirectConnection”Gets or sets the optional value that controls whether the client should connect directly to the target server.
public bool? DirectConnection { get; set; }Property Value
Section titled “Property Value”bool?
HealthCommand
Section titled “ HealthCommand”Gets or sets the MongoDB database command executed to verify the dependency.
public string HealthCommand { get; set; }Property Value
Section titled “Property Value”Gets or sets the MongoDB host name or IP address to probe when no full connection string is supplied.
public string Host { get; set; }Property Value
Section titled “Property Value”Password
Section titled “ Password”Gets or sets the optional password used for authentication when no full connection string is supplied.
public string? Password { get; set; }Property Value
Section titled “Property Value”Gets or sets the MongoDB TCP port.
public int Port { get; set; }Property Value
Section titled “Property Value”UseTls
Section titled “ UseTls”Gets or sets the optional value that controls whether TLS should be used for the probe.
public bool? UseTls { get; set; }Property Value
Section titled “Property Value”bool?
Username
Section titled “ Username”Gets or sets the optional user name used for authentication when no full connection string is supplied.
public string? Username { get; set; }