// SPDX-License-Identifier: GPL-3.0-or-later#include"health.h"#define WORKER_HEALTH_JOB_RRD_LOCK 0#define WORKER_HEALTH_JOB_HOST_LOCK 1#define WORKER_HEALTH_JOB_DB_QUERY 2#define WORKER_HEALTH_JOB_CALC_EVAL 3#define WORKER_HEALTH_JOB_WARNING_EVAL 4#define WORKER_HEALTH_JOB_CRITICAL_EVAL 5#define WORKER_HEALTH_JOB_ALARM_LOG_ENTRY 6#define WORKER_HEALTH_JOB_ALARM_LOG_PROCESS 7#define WORKER_HEALTH_JOB_DELAYED_INIT_RRDSET 8#define WORKER_HEALTH_JOB_DELAYED_INIT_RRDDIM 9#if WORKER_UTILIZATION_MAX_JOB_TYPES < 10#error WORKER_UTILIZATION_MAX_JOB_TYPES has to be at least 10#endifunsignedintdefault_health_enabled=1;char*silencers_filename;// the queue of executed alarm notifications that haven't been waited for yetstatic__threadstruct{ALARM_ENTRY*head;// oldestALARM_ENTRY*tail;// latest}alarm_notifications_in_progress={NULL,NULL};typedefstructactive_alerts{char*name;time_tlast_status_change;RRDCALC_STATUSstatus;}active_alerts_t;stati