Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthChecker ¶
type HealthChecker struct {
// contains filtered or unexported fields
}
func NewHealthChecker ¶
func (*HealthChecker) CloseInstanceConnections ¶
func (hc *HealthChecker) CloseInstanceConnections(instanceName string)
CloseInstanceConnections closes the cached connection for a specific instance. Called when an instance is stopped, destroyed, or about to be reconfigured.
func (*HealthChecker) ResetInProgressRecords ¶
func (hc *HealthChecker) ResetInProgressRecords() error
ResetInProgressRecords resets any stuck in_progress records on startup
func (*HealthChecker) RunHealthCheck ¶
func (hc *HealthChecker) RunHealthCheck(ctx context.Context) error
RunHealthCheck performs a complete health check cycle
type HealthNotificationEvaluator ¶
type HealthNotificationEvaluator struct {
// contains filtered or unexported fields
}
HealthNotificationEvaluator evaluates health records and determines if notifications should be sent
func NewHealthNotificationEvaluator ¶
func NewHealthNotificationEvaluator(store *store.Store) *HealthNotificationEvaluator
func (*HealthNotificationEvaluator) EvaluateAndNotify ¶
func (e *HealthNotificationEvaluator) EvaluateAndNotify(ctx context.Context) error
EvaluateAndNotify checks if notification thresholds are met and sends notifications if needed
type HostCheckResult ¶
type InstanceHealthResult ¶
type NotificationSender ¶
type NotificationSender struct {
// contains filtered or unexported fields
}
func NewNotificationSender ¶
func NewNotificationSender(notifStore *notifications.NotificationStore, kvstore *store.Store) *NotificationSender
func (*NotificationSender) Send ¶
func (s *NotificationSender) Send(ctx context.Context, name, subject, body string) error
type NotificationState ¶
type NotificationState int
NotificationState represents the current notification state
const ( StateUnknown NotificationState = iota StateHealthy StateDegraded )
func (NotificationState) String ¶
func (s NotificationState) String() string
Click to show internal directories.
Click to hide internal directories.