# Heartbeat notification events ServiceControl exposes two integration events related to the Heartbeats plugin. For information about how to subscribe to ServiceControl integration events, see [Using ServiceControl events](/servicecontrol/contracts.md). ## `HeartbeatStopped` The `HeartbeatStopped` event is published if the ServiceControl instance does not receive a heartbeat from an active endpoint instance within a [configured grace period](/servicecontrol/servicecontrol-instances/configuration.md#plugin-specific-servicecontrolheartbeatgraceperiod). ```csharp public class HeartbeatStopped { /// /// The date and time last heartbeat has been received from the endpoint. /// public DateTime LastReceivedAt { get; set; } /// /// The date and time the lack of heartbeat been detected by ServiceControl. /// public DateTime DetectedAt { get; set; } /// /// The name of the endpoint /// public string EndpointName { get; set; } /// /// The unique identifier for the host that runs the endpoint /// public Guid HostId { get; set; } /// /// The name of the host /// public string Host { get; set; } } ``` ## `HeartbeatRestored` The `HeartbeatRestored` event is published when the ServiceControl instance starts receiving heartbeats from a previously inactive endpoint instance. ```csharp public class HeartbeatRestored { /// /// The date and time the heartbeat has been again detected by ServiceControl. /// public DateTime RestoredAt { get; set; } /// /// The name of the endpoint /// public string EndpointName { get; set; } /// /// The unique identifier for the host that runs the endpoint /// public Guid HostId { get; set; } /// /// The name of the host /// public string Host { get; set; } } ```