def post_data_to_checkpoint(self, key, value):
        """Post the checkpoint data to the Azure File share.

        Args:
            key (str): Key to store,
            value (str): Value of the key to store.
        """
        __method_name = inspect.currentframe().f_code.co_name
        try:
            checkpoint_data = self.state_manager_object.get(self.azure_function_name)
            if checkpoint_data == "" or checkpoint_data is None:
                data_to_send = {key: value}
                self.state_manager_object.post(json.dumps(data_to_send))
                applogger.info(
                    "{}(method={}) : {} : checkpoint file created and data posted successfully: {}.".format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        self.azure_function_name,
                        data_to_send,
                    )
                )
            else:
                json_checkpoint = json.loads(checkpoint_data)
                json_checkpoint[key] = value
                self.state_manager_object.post(json.dumps(json_checkpoint))
                applogger.info(
                    "{}(method={}) : {} : Updated checkpoint successfully: {}.".format(
                        consts.LOGS_STARTS_WITH,
                        __method_name,
                        self.azure_function_name,
                        json_checkpoint,
                    )
                )
        except Exception as error:
            applogger.error(
                "{}(method={}) : {} : error while posting checkpoint :{}.".format(
                    consts.LOGS_STARTS_WITH,
                    __method_name,
                    self.azure_function_name,
                    error,
                )
            )
            raise CofenseIntelligenceException()
Post the checkpoint data to the Azure File share.

        Args:
            key (str): Key to store,
            value (str): Value of the key to store.
        
Solutions/CofenseIntelligence/Data Connectors/CofenseIntelligenceDataConnector/SharedCode/manage_checkpoints.py