object; $isService = (isset($o->service_description)) ? true : false; $transitionObject = new \stdClass(); $transitionObject->handled = ($isService) ? $o->service_handled : $o->host_handled; $transitionObject->state = ($isService) ? $o->service_state : $o->host_state; $transitionObject->acknowledged = ($isService) ? $o->service_acknowledged : $o->host_acknowledged; $transitionObject->in_downtime = ($isService) ? $o->in_downtime : $o->host_in_downtime; $transitionObject->is_flapping = ($isService) ? $o->is_flapping : $o->host_is_flapping; $transitionObject->notifications_enabled = ($isService) ? $o->notifications_enabled : $o->service_notifications_enabled; $transitionObject->active_checks_enabled = ($isService) ? $o->active_checks_enabled : $o->host_active_checks_enabled; $transitionObject->passive_checks_enabled = ($isService) ? $o->passive_checks_enabled : $o->host_passive_checks_enabled; $transitionObject->last_comment = ($isService) ? $o->last_comment : $o->host_last_comment; ?> handled && $transitionObject->state > 0): ?> acknowledged && !$transitionObject->in_downtime): ?> is_flapping): ?> notifications_enabled): ?> in_downtime): ?> active_checks_enabled): ?> passive_checks_enabled): ?> last_comment !== null): ?>