得到
//www.jy710.com/api/app/项目//连接器//历史
可能的状态
成功
:所有项目均已导入并可以在项目中查看。有关导入统计的报告排队
:请求已安排并正在等待运行跑步
:目前正在导入数据失败的
:由于某些不可退回的错误无法处理导入。有关更多详细信息,请参阅回复中的错误消息
进步
是浮标,范围[0,1]
curl -x获取https://www.jy710.com/api/app/project/projects/ {project_id }/connectors/ {Connector_id }/history-user-user“ {svc_account}:{secret}:{secret}
{“ status”:“ ok”,“结果”:{“ url”:null,“ has_more”:false,“ data”:[{“ id”:“”,“ start_time”:“ 0001-01-01 00:00:00 +0000 utc“,” end_time“:”,“ status”:“ queued”,“ progres”:0,“错误”:{“ message”:“”,“”,“代码”:“”},,“ connector_properties”:{“ num_events_imported”:0,“ num_events_processed”:0,“ num_events_dropped”:0,“ num_files_imported”:0,“ size_imported”:“ size_imported”:0}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
{“ status”:“ ok”,“结果”:{“ url”:null,“ has_more”:false,“ data”:[{“ id”:“”,“ start_time”:“ 2020-09-16 07:00:00 +0000 UTC", "end_time": "", "status": "running", "progress": 0.25, "error": { "message": "", "code": "" }, "connector_properties": { "num_events_imported": 0, "num_events_processed": 0, "num_events_dropped": 0, "num_files_imported": 0, "size_imported": 0 } }] } }
{“ status”:“ ok”,“结果”:{“ url”:null,“ has_more”:false,“ data”:[{“ id”:“”,“ start_time”:“ 2020-09-16 07:00:00 +0000 UTC", "end_time": "2020-09-17 02:17:49.831793 +0000 UTC", "status": "success", "progress": 1, "error": { "message": "", "code": "" }, "connector_properties": { "num_events_imported": 13, "num_events_processed": 13, "num_events_dropped": 0, "num_files_imported": 4, "size_imported": 1610 } }] } }
{“ status”:“ ok”,“结果”:{“ url”:null,“ has_more”:false,“ data”:[{“ run_id”:“”,“ start_time”:“ 2020-09-16 07:00:00 +0000 UTC", "end_time": "", "status": "failed", "progress": 0, "error": { "message": "No compression specified but Gzip detected. Please submit a new request with correct compression as param", "code": "" }, "connector_properties": { "num_events_imported": 0, "num_events_processed": 0, "num_events_dropped": 0, "num_files_imported": 0, "size_imported": 0 } } ] } }