Encode perfdata

This commit is contained in:
Jean Flach 2018-11-30 15:40:31 +01:00 committed by Michael Friedrich
parent 933de15c36
commit 08bfbbc070
1 changed files with 1 additions and 1 deletions

View File

@ -662,7 +662,7 @@ Dictionary::Ptr RedisWriter::SerializeState(const Checkable::Ptr& checkable)
if (cr) {
attrs->Set("output", CompatUtility::GetCheckResultOutput(cr));
attrs->Set("long_output", CompatUtility::GetCheckResultLongOutput(cr));
attrs->Set("performance_data", cr->GetPerformanceData());
attrs->Set("performance_data", JsonEncode(cr->GetPerformanceData()));
attrs->Set("command", cr->GetCommand());
attrs->Set("execution_time", cr->CalculateExecutionTime());
attrs->Set("latency", cr->CalculateLatency());