Class ConsulHeartbeatOptions
- Namespace
- Steeltoe.Discovery.Consul.Configuration
- Assembly
- Steeltoe.Discovery.Consul.dll
Configuration values used for the heartbeat checks.
public sealed class ConsulHeartbeatOptions
- Inheritance
-
ConsulHeartbeatOptions
- Inherited Members
Properties
Enabled
Gets or sets a value indicating whether the running app periodically sends TTL (time-to-live) heartbeats. Default value: true.
public bool Enabled { get; set; }
Property Value
Remarks
This setting only has effect when RegisterHealthCheck is true.
IntervalRatio
Gets or sets the rate at which the running app sends TTL heartbeats, relative to TtlValue and TtlUnit. Default value: 0.66.
public double IntervalRatio { get; set; }
Property Value
TtlUnit
Gets or sets the unit for TtlValue ("ms", "s", "m" or "h"). Default value: s.
public string? TtlUnit { get; set; }
Property Value
TtlValue
Gets or sets how often a TTL heartbeat must be sent to be considered healthy. Default value: 30.
public int TtlValue { get; set; }