def gen_action(self, **kwargs):
"""
single ES doc that gets consumed inside bulk uploads
"""
action = {
"_op_type": _op_type,
"_index": kwargs['index_name'],
"_type": kwargs['doc_type'],
"_id": kwargs['uid'],
# "@timestamp": kwargs['timestamp'],
"_source": kwargs['data']
}
return action
cfme_csv2elastic.py 文件源码
python
阅读 17
收藏 0
点赞 0
评论 0
评论列表
文章目录