<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.
namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing { public interface IHeartbeatPropertyManager { bool IsHeartbeatEnabled { get; set; } IList<string> ExcludedHeartbeatPropertyProviders { get; } TimeSpan HeartbeatInterval { get; set; } IList<string> ExcludedHeartbeatProperties { get; } bool AddHeartbeatProperty(string propertyName, string propertyValue, bool isHealthy); bool SetHeartbeatProperty(string propertyName, string propertyValue = null, bool? isHealthy = default(bool?)); } }