def get_entities_checkpoint(self, entity_state):
        """Fetch last data from checkpoint file for entities.

        Args:
            entity_state (object): State manager object

        Returns:
            None/json: last_data
        """
        try:
            __method_name = inspect.currentframe().f_code.co_name
            self.applogger.debug(
                "{}(method={}) : {} : Fetching last data from checkpoint file.".format(
                    consts.LOGS_STARTS_WITH, __method_name, self.function_name
                )
            )
            checkpoint = entity_state.get()
            if checkpoint:
                checkpoint = json.loads(checkpoint)
                if checkpoint.get("last_modified_timestamp", None):
                    checkpoint = checkpoint.get("last_modified_timestamp")
                    self.applogger.info(
                        '{}(method={}) : {} : Checkpoint value="{}"'.format(
                            consts.LOGS_STARTS_WITH,
                            __method_name,
                            self.function_name,
                            checkpoint,
                        )
                    )
                    return checkpoint
            return None
        except Exception as ex:
            self.applogger.error(
                '{}(method={}) : {} : Unexpected error while getting checkpoint: err="{}"'.format(
                    consts.LOGS_STARTS_WITH, __method_name, self.function_name, str(ex)
                )
            )
            raise Exception(ex)
Fetch last data from checkpoint file for entities.

        Args:
            entity_state (object): State manager object

        Returns:
            None/json: last_data
        
Solutions/Vectra XDR/Data Connectors/VectraDataConnector/SharedCode/collector.py