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()函數發生沖突。
添加回答
舉報