def check_environment_var_existance(self):
        """To verify that all required environment variables exist.

        Raises:
            RubrikException: raise exception if any of the required environment variable is not set.
        """
        __method_name = inspect.currentframe().f_code.co_name
        env_var = [
            {"Anomalies_table_name": ANOMALY_LOG_TYPE},
            {"RansomwareAnalysis_table_name": RANSOMWARE_LOG_TYPE},
            {"ThreatHunts_table_name": THREATHUNT_LOG_TYPE},
        ]
        try:
            applogger.debug(
                "{}(method={}) Checking environment variables are exist or not.".format(
                    self.logs_starts_with, __method_name
                )
            )
            for i in env_var:
                key, val = next(iter(i.items()))
                if val is None:
                    raise RubrikException(
                        "{} is not set in the environment please set the environment variable.".format(
                            key
                        )
                    )
            applogger.debug(
                "{}(method={}) All custom environment variables exist.".format(
                    self.logs_starts_with, __method_name
                )
            )
        except RubrikException as err:
            applogger.error(
                "{}".format(
                    self.error_logs.format(self.logs_starts_with, __method_name, err)
                )
            )
            raise RubrikException(err)
        except Exception as err:
            applogger.error(
                "{}".format(
                    self.error_logs.format(self.logs_starts_with, __method_name, err)
                )
            )
            raise RubrikException(err)
To verify that all required environment variables exist.

        Raises:
            RubrikException: raise exception if any of the required environment variable is not set.
        
Solutions/RubrikSecurityCloud/Data Connectors/RubrikWebhookEvents/RubrikActivity/rubrik.py