Class ConsulHeartbeatOptions
Configuration values used for the heartbeat checks
Inheritance
System.Object
ConsulHeartbeatOptions
Namespace: Steeltoe.Discovery.Consul.Discovery
Assembly: Steeltoe.Discovery.Consul.dll
Syntax
public class ConsulHeartbeatOptions : object
Properties
| Edit this page View SourceEnabled
Gets or sets a value indicating whether heartbeats are enabled, defaults true
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IntervalRatio
Gets or sets the interval ratio
Declaration
public double IntervalRatio { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Ttl
Gets the time to live setting
Declaration
public string Ttl { get; }
Property Value
Type | Description |
---|---|
System.String |
TtlUnit
Gets or sets the time unit of the TtlValue, defaults = "s"
Declaration
public string TtlUnit { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TtlValue
Gets or sets the time to live heartbeat time, defaults 30
Declaration
public int TtlValue { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |