ข้ามไปยังเนื้อหา

Class HttpDependencyDefinition

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

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

Describes one external HTTP dependency that should contribute to runtime health.

public sealed class HttpDependencyDefinition : DependencyDefinitionBase

objectDependencyDefinitionBaseHttpDependencyDefinition

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

Gets or sets the absolute endpoint that should be probed for this dependency.

public string Endpoint { get; set; }

string

Gets or sets the explicit HTTP status codes that should be treated as healthy.

public IReadOnlyList<int> ExpectedStatusCodes { get; set; }

IReadOnlyList<int>

Gets or sets the HTTP method used for the probe request.

public string Method { get; set; }

string