mirror of https://github.com/Icinga/icinga2.git
Encode perfdata
This commit is contained in:
parent
933de15c36
commit
08bfbbc070
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue