Class NatsDependencyDefinition
Namespace: Cephalon.Observability.NatsDependencies.Configuration
Assembly: Cephalon.Observability.NatsDependencies.dll
Describes one NATS dependency that should contribute to runtime health.
public sealed class NatsDependencyDefinition : DependencyDefinitionBaseInheritance
Section titled “Inheritance”object ← DependencyDefinitionBase ← NatsDependencyDefinition
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”NatsDependencyDefinition()
Section titled “ NatsDependencyDefinition()”Initializes a new instance of the
public NatsDependencyDefinition()Properties
Section titled “Properties”ClientName
Section titled “ ClientName”Gets or sets the optional client name sent in the NATS CONNECT payload.
public string? ClientName { get; set; }Property Value
Section titled “Property Value”Gets or sets the NATS host name or IP address to probe.
public string Host { get; set; }Property Value
Section titled “Property Value”Password
Section titled “ Password”Gets or sets the optional password used for NATS user/password authentication.
public string? Password { get; set; }Property Value
Section titled “Property Value”Gets or sets the NATS client port.
public int Port { get; set; }Property Value
Section titled “Property Value”TlsServerName
Section titled “ TlsServerName”Gets or sets the TLS server name used for certificate validation when
public string? TlsServerName { get; set; }Property Value
Section titled “Property Value”Gets or sets the optional auth token used for token-based NATS authentication.
public string? Token { get; set; }Property Value
Section titled “Property Value”UseTls
Section titled “ UseTls”Gets or sets a value indicating whether the probe should upgrade the connection to TLS after reading the initial server info line.
public bool UseTls { get; set; }Property Value
Section titled “Property Value”Username
Section titled “ Username”Gets or sets the optional user name used for NATS user/password authentication.
public string? Username { get; set; }