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

Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing.HeartbeatProvider

Implementation of heartbeat functionality.
namespace Microsoft.ApplicationInsights.Extensibility.Implementation.Tracing { internal class HeartbeatProvider : IDisposable, IHeartbeatProvider, IHeartbeatPropertyManager { public static readonly TimeSpan DefaultHeartbeatInterval; public static readonly TimeSpan MinimumHeartbeatInterval; public TimeSpan HeartbeatInterval { get; set; } public string InstrumentationKey { get; set; } public bool IsHeartbeatEnabled { get; set; } public IList<string> ExcludedHeartbeatPropertyProviders { get; } public IList<string> ExcludedHeartbeatProperties { get; } public HeartbeatProvider(); public void Initialize(TelemetryConfiguration configuration); public bool AddHeartbeatProperty(string heartbeatPropertyName, string heartbeatPropertyValue, bool isHealthy); public bool SetHeartbeatProperty(string heartbeatPropertyName, string heartbeatPropertyValue = null, bool? isHealthy = default(bool?)); public void Dispose(); public bool AddHeartbeatProperty(string propertyName, bool overrideDefaultField, string propertyValue, bool isHealthy); public bool SetHeartbeatProperty(string propertyName, bool overrideDefaultField, string propertyValue = null, bool? isHealthy = default(bool?)); protected void Dispose(bool disposing); } }