diff --git a/src/Configurations/Pool.php b/src/Configurations/Pool.php index f28347b..7b45d41 100644 --- a/src/Configurations/Pool.php +++ b/src/Configurations/Pool.php @@ -90,6 +90,16 @@ class Pool implements Configurations return $this->configs['monitor'] ?? ''; } + public function setCheckRegions(array $checkRegions) + { + $this->configs['check_regions'] = $checkRegions; + } + + public function getCheckRegions():array + { + return $this->configs['check_regions'] ?? []; + } + public function setNotificationEmail(string $email) { if (filter_var($email, FILTER_VALIDATE_EMAIL) === false) { diff --git a/src/Endpoints/Pools.php b/src/Endpoints/Pools.php index 4a4f193..f6ceb59 100644 --- a/src/Endpoints/Pools.php +++ b/src/Endpoints/Pools.php @@ -83,6 +83,10 @@ class Pools implements API $poolConfiguration->setMonitor($pool->monitor); $poolConfiguration->setNotificationEmail($pool->notification_email); + if (is_array($pool->check_regions)) { + $poolConfiguration->setCheckRegions($pool->check_regions); + } + return $poolConfiguration; }