public void storeInstance(InstanceProfile instance) {
        if (instance.allRequiredKeyExist()) {
            String keyName = getKeyByTaskAndInstanceId(instance.get(TaskConstants.TASK_ID),
                    instance.get(TaskConstants.INSTANCE_ID));
            KeyValueEntity entity = new KeyValueEntity(keyName,
                    instance.toJsonStr(), instance.get(TaskConstants.INSTANCE_ID));
            store.put(entity);
        } else {
            LOGGER.error("instance profile invalid!");
        }
    }
store instance profile.

@param instance instance
inlong-agent/agent-common/src/main/java/org/apache/inlong/agent/store/InstanceStore.java