HttpProbe class
A health probe that performs an HTTP GET request to a specified URL and interprets the JSON response according to the health probe contract.
public sealed class HttpProbe : IProbe
| parameter | description |
|---|---|
| name | The name of the probe. |
| tags | The tags associated with the probe. |
| http | The HTTP client to use. |
| url | The URL to probe. |
| timeout | The timeout for the probe. |
| logger | Optional logger; if null a contextual logger is created. |
Public Members
| name | description |
|---|---|
| HttpProbe(…) | A health probe that performs an HTTP GET request to a specified URL and interprets the JSON response according to the health probe contract. |
| Logger { get; set; } | Logger used for diagnostics. |
| Name { get; } | The name of the probe. |
| Tags { get; } | The tags associated with the probe. |
| CheckAsync(…) | Executes the HTTP GET request and interprets the response according to the health probe contract. |
Remarks
Initializes a new instance of the HttpProbe class.
See Also
- interface IProbe
- namespace Kestrun.Health