def get_defender_action_and_severity(self, indicator):
        """To convert sentinel confidence value to defender action."""
        __method_name = inspect.currentframe().f_code.co_name
        try:
            confidence = indicator.get("properties", {}).get("confidence", "")
            actions = None
            severity = None
            if (
                confidence is None
                or confidence == ""
                or int(confidence) == consts.IMPACT_NONE
            ):
                actions = "Allowed"
                severity = "Informational"
            elif int(confidence) == consts.IMPACT_MINOR:
                actions = "Alert"
                severity = "Informational"
            elif (
                int(confidence) == consts.IMPACT_MODERATE
                or int(confidence) == consts.IMPACT_MEDIUM
            ):
                actions = "Warn"
                severity = "Medium"
            elif int(confidence) == consts.IMPACT_MAJOR:
                actions = "Block"
                severity = "High"
            else:
                raise CofenseIntelligenceException()
            return actions, severity
        except CofenseIntelligenceException as error:
            applogger.error(
                "{}(method={}) : {} : Unknown confidence value from sentinel. "
                "Sentinel Indicator name. Error : {}{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    consts.SENTINEL_TO_DEFENDER,
                    error,
                    confidence,
                )
            )
            raise CofenseIntelligenceException()
To convert sentinel confidence value to defender action.
Solutions/CofenseIntelligence/Data Connectors/CofenseIntelligenceDataConnector/SentinelToDefender/sentinel_to_defender_mapping.py