# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This file is autogenerated by the `bin/generate_features.py` script.
# To update:
# - Edit `gcm/features/feature_definitions/health_checks_features.py`
# - Run `python bin/generate_features.py`
# - Run `ufmt format gcm`

import logging
from pathlib import Path
from typing import Any, ClassVar, Dict, Optional

import tomli

logger = logging.getLogger(__name__)


class FeatureValueHealthChecksFeatures:
    """This class reads features from an (optional) `config_path` file
    such as the `health_checks/config_example/feature_example.toml` file.
    To support dynamic updates, we load the config file on every check
    that is performed, so that the values of the config can change during
    runtime and affect the execution environment.
    """

    config_path: ClassVar[Optional[Path]]

    def load_config(self) -> Dict[str, Any]:
        if FeatureValueHealthChecksFeatures.config_path is not None:
            try:
                with FeatureValueHealthChecksFeatures.config_path.open("rb") as f:
                    features = tomli.load(f)
            except tomli.TOMLDecodeError as e:
                logger.exception(
                    f"Error reading toml file. {FeatureValueHealthChecksFeatures.config_path} does not contain valid TOML. Error: {e}"
                )
                raise tomli.TOMLDecodeError(
                    f"{FeatureValueHealthChecksFeatures.config_path} does not contain valid TOML.",
                ) from e
        else:
            raise ValueError(
                "The path for the config is not set. Please provide a config path argument."
            )

        return features

    def get_healthchecksfeatures_disable_check_ssh_certs(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_ssh_certs", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_ssh_certs, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_cuda_memtest(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_cuda_memtest", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_cuda_memtest, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_zombie(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_zombie", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_zombie, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_dstate(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_dstate", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_dstate, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_link_flap(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get("disable_link_flap", False)
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_link_flap, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_xid_errors(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_xid_errors", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_xid_errors, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_io_errors(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get("disable_io_errors", False)
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_io_errors, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_proc_freq(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get("disable_proc_freq", False)
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_proc_freq, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_freq_governor(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_freq_governor", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_freq_governor, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_mem_size(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_mem_size", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_mem_size, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_buddyinfo(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_buddyinfo", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_buddyinfo, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_ipmi_sel(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get("disable_ipmi_sel", False)
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_ipmi_sel, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_hca_count(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get("disable_hca_count", False)
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_hca_count, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_disk_usage(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_disk_usage", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_disk_usage, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_disk_size(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get("disable_disk_size", False)
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_disk_size, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_mounted_dir(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_mounted_dir", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_mounted_dir, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_file_exists(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_file_exists", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_file_exists, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_dir_exists(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_dir_exists", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_dir_exists, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_running_process(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_running_process", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_running_process, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_ssh(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get("disable_check_ssh", False)
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_ssh, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_slurm_state(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_slurm_state", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_slurm_state, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_slrmctld_count(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_slrmctld_count", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_slrmctld_count, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_slurm_cluster_avail(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_slurm_cluster_avail", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_slurm_cluster_avail, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_service_status(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_service_status", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_service_status, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_package_version(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_package_version", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_package_version, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nccl_tests(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nccl_tests", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nccl_tests, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_gpu_num(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_gpu_num", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_gpu_num, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_clock_freq(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_clock_freq", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_clock_freq, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_running_procs(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_running_procs", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_running_procs, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_running_procs_and_kill(
        self,
    ) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_running_procs_and_kill", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_running_procs_and_kill, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_gpu_temp(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_gpu_temp", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_gpu_temp, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_mem_usage(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_mem_usage", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_mem_usage, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_retired_pages(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_retired_pages", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_retired_pages, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_ecc_uncorrected(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_ecc_uncorrected", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_ecc_uncorrected, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_ecc_corrected(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_ecc_corrected", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_ecc_corrected, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_row_remap(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_row_remap", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_row_remap, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_row_remap_pending(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_row_remap_pending", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_row_remap_pending, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_row_remap_failed(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_row_remap_failed", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_row_remap_failed, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_nvidia_smi_vbios_mismatch(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_nvidia_smi_vbios_mismatch", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_nvidia_smi_vbios_mismatch, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_dcgmi_diag(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_dcgmi_diag", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_dcgmi_diag, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_dcgmi_nvlink(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_dcgmi_nvlink", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_dcgmi_nvlink, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_dcgmi_nvlink_error(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_dcgmi_nvlink_error", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_dcgmi_nvlink_error, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_dcgmi_nvlink_status(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_dcgmi_nvlink_status", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_dcgmi_nvlink_status, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_ibstat(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_ibstat", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_ibstat, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_ib_interfaces(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_ib_interfaces", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_ib_interfaces, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_iblink(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_iblink", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_iblink, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_pass_status(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_pass_status", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_pass_status, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_user_access_path_check(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_user_access_path_check", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_user_access_path_check, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_uptime(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_uptime", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_uptime, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_module(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_module", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_module, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_dnf_repos(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_dnf_repos", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_dnf_repos, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_mountpoint(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_mountpoint", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_mountpoint, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_pci(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get("disable_check_pci", False)
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_pci, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_blockdev(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_blockdev", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_blockdev, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_ethlink(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_ethlink", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_ethlink, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_clocksource(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_clocksource", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_clocksource, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_airstore_credential_count(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_airstore_credential_count", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_airstore_credential_count, got {type(value).__name__} instead."
            )
        return value

    def get_healthchecksfeatures_disable_check_sensors(self) -> bool:
        try:
            features = self.load_config()
        except Exception:
            return False
        value = features.get("HealthChecksFeatures", {}).get(
            "disable_check_sensors", False
        )
        if not isinstance(value, bool):
            raise TypeError(
                f"Expected bool value for HealthChecksFeatures.disable_check_sensors, got {type(value).__name__} instead."
            )
        return value
