if (service)
result->Set("service", service->GetShortName());
- result->Set("state", service ? service->GetState() : host->GetState());
+ result->Set("state", service ? static_cast<int>(service->GetState()) : static_cast<int>(host->GetState()));
result->Set("state_type", checkable->GetStateType());
result->Set("check_result", Serialize(cr));
if (service)
result->Set("service", service->GetShortName());
- result->Set("state", service ? service->GetState() : host->GetState());
+ result->Set("state", service ? static_cast<int>(service->GetState()) : static_cast<int>(host->GetState()));
result->Set("state_type", checkable->GetStateType());
result->Set("is_flapping", checkable->IsFlapping());
if (service)
result->Set("service", service->GetShortName());
- result->Set("state", service ? service->GetState() : host->GetState());
+ result->Set("state", service ? static_cast<int>(service->GetState()) : static_cast<int>(host->GetState()));
result->Set("state_type", checkable->GetStateType());
result->Set("author", author);
if (service)
result->Set("service", service->GetShortName());
- result->Set("state", service ? service->GetState() : host->GetState());
+ result->Set("state", service ? static_cast<int>(service->GetState()) : static_cast<int>(host->GetState()));
result->Set("state_type", checkable->GetStateType());
BOOST_FOREACH(const EventQueue::Ptr& queue, queues) {