<PackageReference Include="Microsoft.ApplicationInsights" Version="2.22.0" />

Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.IHeartbeatPropertyManager

public interface IHeartbeatPropertyManager
Defines an implementation for management of the heartbeat feature of the Application Insights SDK meant for public consumption. Add/Set properties, disable/enable the heartbeat, and set the interval between heartbeat pulses. If a module is present in the SDK at runtime that implements this interface, the heartbeat feature can be extended or configured as necessary.

Gets a list of property names that are not to be sent with the heartbeats.

Gets a list of default heartbeat property providers that are disabled and will not contribute to the default heartbeat properties.

Gets or sets the delay between heartbeats.

bool IsHeartbeatEnabled { get; set; }

Gets or sets a value indicating whether or not the Heartbeat feature is disabled.

bool AddHeartbeatProperty(string propertyName, string propertyValue, bool isHealthy)

Add a new Heartbeat property to the payload sent with each heartbeat.

bool SetHeartbeatProperty(string propertyName, string propertyValue = null, bool? isHealthy = default)

Set an updated value into an existing property of the heartbeat.