1 回答

TA贡献1829条经验 获得超4个赞
尝试这个:
message = { "source": "datapipeline",
"application_nm": "omni",
"severity": "2",
"batch_run_start_dttm": "$actualStartTime",
"batch_run_end_dttm": "actualEndTime",
"batch_run_status_cd": "failed",
"job_orchestration_id": "NA",
"stage_nm": "NA",
"stage_start_dttm": "NA",
"stage_end_dttm": "NA",
"stage_status_cd": "failed",
"job_run_id": "NA",
"source_nm": "NA",
"target_nm": "NA",
"source_details": "NA",
"target_details": "NA",
"msg": "These mentioned hours having difference more than 50% from previous week:" +"%s" ,
"counts":"0",
"notes": "After hourly comparison check, the above mentioned hours is having difference more than 50%",
"list": list # this is how to do it
}
顺便说一句,将变量命名为“列表”是一个非常糟糕的主意,它与内置list()函数发生冲突。
添加回答
举报