mirror of https://github.com/Icinga/icinga2.git
Stop json-encoding everything
This commit is contained in:
parent
d104eb4ac1
commit
af05a354fa
|
@ -654,10 +654,10 @@ Dictionary::Ptr RedisWriter::SerializeState(const Checkable::Ptr& checkable)
|
|||
|
||||
if (cr) {
|
||||
// TODO: Long Output did not work in my test cases. Need to investigate
|
||||
attrs->Set("output", JsonEncode(CompatUtility::GetCheckResultOutput(cr)));
|
||||
attrs->Set("output", CompatUtility::GetCheckResultOutput(cr));
|
||||
attrs->Set("long_output", CompatUtility::GetCheckResultLongOutput(cr));
|
||||
attrs->Set("performance_data", JsonEncode(cr->GetPerformanceData()));
|
||||
attrs->Set("command", JsonEncode(cr->GetCommand()));
|
||||
attrs->Set("performance_data", cr->GetPerformanceData());
|
||||
attrs->Set("command", cr->GetCommand());
|
||||
attrs->Set("execution_time", cr->CalculateExecutionTime());
|
||||
attrs->Set("latency", cr->CalculateLatency());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue