Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.HeartbeatProvider
Implementation of heartbeat functionality.
The default interval between heartbeats if not specified by the user. Left public for use in unit tests.
The minimum interval that can be set between heartbeats.
Gets a list of default field names that should not be sent with each heartbeat.
Gets a list of default heartbeat property providers that are disabled and will not contribute to the
default heartbeat properties.
Gets or sets the currently defined interval between heartbeats.
Gets or sets the currently defined instrumentation key to send heartbeat telemetry items to.
Note that if the heartbeat provider has not been initialized yet, this key would get reset to
whatever the telemetry configuration the heartbeat provider is initialized with.
Gets or sets a value indicating whether or not heartbeats are enabled.
public HeartbeatProvider()
public bool AddHeartbeatProperty(string heartbeatPropertyName, string heartbeatPropertyValue, bool isHealthy)
public bool AddHeartbeatProperty(string propertyName, bool overrideDefaultField, string propertyValue, bool isHealthy)
public bool SetHeartbeatProperty(string heartbeatPropertyName, string heartbeatPropertyValue = null, bool? isHealthy = default)
public bool SetHeartbeatProperty(string propertyName, bool overrideDefaultField, string propertyValue = null, bool? isHealthy = default)