From 6e49ef020866ad9a9fb04e0a2a396e652da07b5b Mon Sep 17 00:00:00 2001 From: Giuseppe Nucifora Date: Fri, 22 Jul 2022 11:49:58 +0200 Subject: [PATCH] fix status --- src/Service/UptimeRobotMonitorService.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Service/UptimeRobotMonitorService.php b/src/Service/UptimeRobotMonitorService.php index 2916805..b9e5946 100644 --- a/src/Service/UptimeRobotMonitorService.php +++ b/src/Service/UptimeRobotMonitorService.php @@ -86,7 +86,8 @@ class UptimeRobotMonitorService extends UptimeRobotService 'http_username' => $monitor->getHttpUsername(), 'http_password' => $monitor->getHttpPassword(), 'alert_contacts' => $alertContactsString, - 'mwindows' => '' + 'mwindows' => '', + 'status' => $monitor->getStatus() ] ); } catch (\Vdhicts\UptimeRobot\Client\Exceptions\FailedRequestException $exception) { @@ -138,7 +139,8 @@ class UptimeRobotMonitorService extends UptimeRobotService 'interval' => $monitor->getInterval(), 'http_username' => $monitor->getHttpUsername(), 'http_password' => $monitor->getHttpPassword(), - 'mwindows' => '' + 'mwindows' => '', + 'status' => $monitor->getStatus() ]; if (!empty($alertContactsString)){