comparison OrthancFramework/Sources/JobsEngine/JobInfo.cpp @ 4667:08ee98bf103e

"/jobs/..." has new field "ErrorDetails" to help identify the cause of an error
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 May 2021 15:59:03 +0200
parents d9473bd5ed43
children e1711b6e141f
comparison
equal deleted inserted replaced
4666:3294385a245a 4667:08ee98bf103e
174 target = Json::objectValue; 174 target = Json::objectValue;
175 target["ID"] = id_; 175 target["ID"] = id_;
176 target["Priority"] = priority_; 176 target["Priority"] = priority_;
177 target["ErrorCode"] = static_cast<int>(status_.GetErrorCode()); 177 target["ErrorCode"] = static_cast<int>(status_.GetErrorCode());
178 target["ErrorDescription"] = EnumerationToString(status_.GetErrorCode()); 178 target["ErrorDescription"] = EnumerationToString(status_.GetErrorCode());
179 target["ErrorDetails"] = status_.GetDetails();
179 target["State"] = EnumerationToString(state_); 180 target["State"] = EnumerationToString(state_);
180 target["Timestamp"] = boost::posix_time::to_iso_string(timestamp_); 181 target["Timestamp"] = boost::posix_time::to_iso_string(timestamp_);
181 target["CreationTime"] = boost::posix_time::to_iso_string(creationTime_); 182 target["CreationTime"] = boost::posix_time::to_iso_string(creationTime_);
182 target["EffectiveRuntime"] = static_cast<double>(runtime_.total_milliseconds()) / 1000.0; 183 target["EffectiveRuntime"] = static_cast<double>(runtime_.total_milliseconds()) / 1000.0;
183 target["Progress"] = boost::math::iround(status_.GetProgress() * 100.0f); 184 target["Progress"] = boost::math::iround(status_.GetProgress() * 100.0f);