Skip to content

Class ElasticsearchDependencyHealthOptions

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

Configures Elasticsearch dependency probes contributed to Cephalon runtime health.

public sealed class ElasticsearchDependencyHealthOptions : DependencyHealthOptionsBase<ElasticsearchDependencyDefinition>

objectDependencyHealthOptionsBase<ElasticsearchDependencyDefinition>ElasticsearchDependencyHealthOptions

DependencyHealthOptionsBase<ElasticsearchDependencyDefinition>.RefreshIntervalSeconds, DependencyHealthOptionsBase<ElasticsearchDependencyDefinition>.Dependencies, 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 ElasticsearchDependencyHealthOptions()

FromConfiguration(IConfiguration, string)

Section titled “ FromConfiguration(IConfiguration, string)”

Binds Elasticsearch dependency-health options from configuration.

public static ElasticsearchDependencyHealthOptions FromConfiguration(IConfiguration configuration, string sectionPath = "Engine")

configuration IConfiguration

The application configuration root.

sectionPath string

The configuration section path that contains the engine settings. The default is Engine.

ElasticsearchDependencyHealthOptions

The bound dependency-health options.