def get_formatted_time(self, alert_time):
        """Format alert time.

        Args:
            alert_time (str): time to format

        Returns:
            str: formatted time
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            if len(alert_time) != 19:
                if len(alert_time) == 10:
                    alert_time += "T00:00:00"
                    logging.info(
                        consts.LOG_FORMAT.format(__method_name, "'T:00:00:00' added as only date is available.")
                    )
                else:
                    splited_time = alert_time.split("T")
                    if len(splited_time[1]) == 5:
                        splited_time[1] += ":00"
                        logging.info(consts.LOG_FORMAT.format(__method_name, "':00' added as seconds not available."))
                    elif len(splited_time[1]) == 2:
                        splited_time[1] += ":00:00"
                        logging.info(
                            consts.LOG_FORMAT.format(__method_name, "':00:00' added as only hour is available.")
                        )
                    alert_time = "T".join(splited_time)
            return alert_time
        except KeyError as err:
            logging.error(consts.LOG_FORMAT.format(__method_name, "Key error : {}.".format(err)))
            raise ArmisException()
        except Exception as err:
            logging.error(
                consts.LOG_FORMAT.format(__method_name, "Error while posting alerts checkpoint : {}.".format(err))
            )
            raise ArmisException()
Format alert time.

        Args:
            alert_time (str): time to format

        Returns:
            str: formatted time
        
Solutions/Armis/Data Connectors/ArmisAlertsActivities/ArmisAlertActivitySentinelConnector/utils.py