[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Monitoring;
|
---|
| 19 |
|
---|
| 20 | class UptimeCheckConfig extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'selectedRegions';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $checkerType;
|
---|
| 27 | protected $contentMatchersType = ContentMatcher::class;
|
---|
| 28 | protected $contentMatchersDataType = 'array';
|
---|
| 29 | /**
|
---|
| 30 | * @var string
|
---|
| 31 | */
|
---|
| 32 | public $displayName;
|
---|
| 33 | protected $httpCheckType = HttpCheck::class;
|
---|
| 34 | protected $httpCheckDataType = '';
|
---|
| 35 | protected $internalCheckersType = InternalChecker::class;
|
---|
| 36 | protected $internalCheckersDataType = 'array';
|
---|
| 37 | /**
|
---|
| 38 | * @var bool
|
---|
| 39 | */
|
---|
| 40 | public $isInternal;
|
---|
| 41 | protected $monitoredResourceType = MonitoredResource::class;
|
---|
| 42 | protected $monitoredResourceDataType = '';
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $name;
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $period;
|
---|
| 51 | protected $resourceGroupType = ResourceGroup::class;
|
---|
| 52 | protected $resourceGroupDataType = '';
|
---|
| 53 | /**
|
---|
| 54 | * @var string[]
|
---|
| 55 | */
|
---|
| 56 | public $selectedRegions;
|
---|
| 57 | protected $syntheticMonitorType = SyntheticMonitorTarget::class;
|
---|
| 58 | protected $syntheticMonitorDataType = '';
|
---|
| 59 | protected $tcpCheckType = TcpCheck::class;
|
---|
| 60 | protected $tcpCheckDataType = '';
|
---|
| 61 | /**
|
---|
| 62 | * @var string
|
---|
| 63 | */
|
---|
| 64 | public $timeout;
|
---|
| 65 | /**
|
---|
| 66 | * @var string[]
|
---|
| 67 | */
|
---|
| 68 | public $userLabels;
|
---|
| 69 |
|
---|
| 70 | /**
|
---|
| 71 | * @param string
|
---|
| 72 | */
|
---|
| 73 | public function setCheckerType($checkerType)
|
---|
| 74 | {
|
---|
| 75 | $this->checkerType = $checkerType;
|
---|
| 76 | }
|
---|
| 77 | /**
|
---|
| 78 | * @return string
|
---|
| 79 | */
|
---|
| 80 | public function getCheckerType()
|
---|
| 81 | {
|
---|
| 82 | return $this->checkerType;
|
---|
| 83 | }
|
---|
| 84 | /**
|
---|
| 85 | * @param ContentMatcher[]
|
---|
| 86 | */
|
---|
| 87 | public function setContentMatchers($contentMatchers)
|
---|
| 88 | {
|
---|
| 89 | $this->contentMatchers = $contentMatchers;
|
---|
| 90 | }
|
---|
| 91 | /**
|
---|
| 92 | * @return ContentMatcher[]
|
---|
| 93 | */
|
---|
| 94 | public function getContentMatchers()
|
---|
| 95 | {
|
---|
| 96 | return $this->contentMatchers;
|
---|
| 97 | }
|
---|
| 98 | /**
|
---|
| 99 | * @param string
|
---|
| 100 | */
|
---|
| 101 | public function setDisplayName($displayName)
|
---|
| 102 | {
|
---|
| 103 | $this->displayName = $displayName;
|
---|
| 104 | }
|
---|
| 105 | /**
|
---|
| 106 | * @return string
|
---|
| 107 | */
|
---|
| 108 | public function getDisplayName()
|
---|
| 109 | {
|
---|
| 110 | return $this->displayName;
|
---|
| 111 | }
|
---|
| 112 | /**
|
---|
| 113 | * @param HttpCheck
|
---|
| 114 | */
|
---|
| 115 | public function setHttpCheck(HttpCheck $httpCheck)
|
---|
| 116 | {
|
---|
| 117 | $this->httpCheck = $httpCheck;
|
---|
| 118 | }
|
---|
| 119 | /**
|
---|
| 120 | * @return HttpCheck
|
---|
| 121 | */
|
---|
| 122 | public function getHttpCheck()
|
---|
| 123 | {
|
---|
| 124 | return $this->httpCheck;
|
---|
| 125 | }
|
---|
| 126 | /**
|
---|
| 127 | * @param InternalChecker[]
|
---|
| 128 | */
|
---|
| 129 | public function setInternalCheckers($internalCheckers)
|
---|
| 130 | {
|
---|
| 131 | $this->internalCheckers = $internalCheckers;
|
---|
| 132 | }
|
---|
| 133 | /**
|
---|
| 134 | * @return InternalChecker[]
|
---|
| 135 | */
|
---|
| 136 | public function getInternalCheckers()
|
---|
| 137 | {
|
---|
| 138 | return $this->internalCheckers;
|
---|
| 139 | }
|
---|
| 140 | /**
|
---|
| 141 | * @param bool
|
---|
| 142 | */
|
---|
| 143 | public function setIsInternal($isInternal)
|
---|
| 144 | {
|
---|
| 145 | $this->isInternal = $isInternal;
|
---|
| 146 | }
|
---|
| 147 | /**
|
---|
| 148 | * @return bool
|
---|
| 149 | */
|
---|
| 150 | public function getIsInternal()
|
---|
| 151 | {
|
---|
| 152 | return $this->isInternal;
|
---|
| 153 | }
|
---|
| 154 | /**
|
---|
| 155 | * @param MonitoredResource
|
---|
| 156 | */
|
---|
| 157 | public function setMonitoredResource(MonitoredResource $monitoredResource)
|
---|
| 158 | {
|
---|
| 159 | $this->monitoredResource = $monitoredResource;
|
---|
| 160 | }
|
---|
| 161 | /**
|
---|
| 162 | * @return MonitoredResource
|
---|
| 163 | */
|
---|
| 164 | public function getMonitoredResource()
|
---|
| 165 | {
|
---|
| 166 | return $this->monitoredResource;
|
---|
| 167 | }
|
---|
| 168 | /**
|
---|
| 169 | * @param string
|
---|
| 170 | */
|
---|
| 171 | public function setName($name)
|
---|
| 172 | {
|
---|
| 173 | $this->name = $name;
|
---|
| 174 | }
|
---|
| 175 | /**
|
---|
| 176 | * @return string
|
---|
| 177 | */
|
---|
| 178 | public function getName()
|
---|
| 179 | {
|
---|
| 180 | return $this->name;
|
---|
| 181 | }
|
---|
| 182 | /**
|
---|
| 183 | * @param string
|
---|
| 184 | */
|
---|
| 185 | public function setPeriod($period)
|
---|
| 186 | {
|
---|
| 187 | $this->period = $period;
|
---|
| 188 | }
|
---|
| 189 | /**
|
---|
| 190 | * @return string
|
---|
| 191 | */
|
---|
| 192 | public function getPeriod()
|
---|
| 193 | {
|
---|
| 194 | return $this->period;
|
---|
| 195 | }
|
---|
| 196 | /**
|
---|
| 197 | * @param ResourceGroup
|
---|
| 198 | */
|
---|
| 199 | public function setResourceGroup(ResourceGroup $resourceGroup)
|
---|
| 200 | {
|
---|
| 201 | $this->resourceGroup = $resourceGroup;
|
---|
| 202 | }
|
---|
| 203 | /**
|
---|
| 204 | * @return ResourceGroup
|
---|
| 205 | */
|
---|
| 206 | public function getResourceGroup()
|
---|
| 207 | {
|
---|
| 208 | return $this->resourceGroup;
|
---|
| 209 | }
|
---|
| 210 | /**
|
---|
| 211 | * @param string[]
|
---|
| 212 | */
|
---|
| 213 | public function setSelectedRegions($selectedRegions)
|
---|
| 214 | {
|
---|
| 215 | $this->selectedRegions = $selectedRegions;
|
---|
| 216 | }
|
---|
| 217 | /**
|
---|
| 218 | * @return string[]
|
---|
| 219 | */
|
---|
| 220 | public function getSelectedRegions()
|
---|
| 221 | {
|
---|
| 222 | return $this->selectedRegions;
|
---|
| 223 | }
|
---|
| 224 | /**
|
---|
| 225 | * @param SyntheticMonitorTarget
|
---|
| 226 | */
|
---|
| 227 | public function setSyntheticMonitor(SyntheticMonitorTarget $syntheticMonitor)
|
---|
| 228 | {
|
---|
| 229 | $this->syntheticMonitor = $syntheticMonitor;
|
---|
| 230 | }
|
---|
| 231 | /**
|
---|
| 232 | * @return SyntheticMonitorTarget
|
---|
| 233 | */
|
---|
| 234 | public function getSyntheticMonitor()
|
---|
| 235 | {
|
---|
| 236 | return $this->syntheticMonitor;
|
---|
| 237 | }
|
---|
| 238 | /**
|
---|
| 239 | * @param TcpCheck
|
---|
| 240 | */
|
---|
| 241 | public function setTcpCheck(TcpCheck $tcpCheck)
|
---|
| 242 | {
|
---|
| 243 | $this->tcpCheck = $tcpCheck;
|
---|
| 244 | }
|
---|
| 245 | /**
|
---|
| 246 | * @return TcpCheck
|
---|
| 247 | */
|
---|
| 248 | public function getTcpCheck()
|
---|
| 249 | {
|
---|
| 250 | return $this->tcpCheck;
|
---|
| 251 | }
|
---|
| 252 | /**
|
---|
| 253 | * @param string
|
---|
| 254 | */
|
---|
| 255 | public function setTimeout($timeout)
|
---|
| 256 | {
|
---|
| 257 | $this->timeout = $timeout;
|
---|
| 258 | }
|
---|
| 259 | /**
|
---|
| 260 | * @return string
|
---|
| 261 | */
|
---|
| 262 | public function getTimeout()
|
---|
| 263 | {
|
---|
| 264 | return $this->timeout;
|
---|
| 265 | }
|
---|
| 266 | /**
|
---|
| 267 | * @param string[]
|
---|
| 268 | */
|
---|
| 269 | public function setUserLabels($userLabels)
|
---|
| 270 | {
|
---|
| 271 | $this->userLabels = $userLabels;
|
---|
| 272 | }
|
---|
| 273 | /**
|
---|
| 274 | * @return string[]
|
---|
| 275 | */
|
---|
| 276 | public function getUserLabels()
|
---|
| 277 | {
|
---|
| 278 | return $this->userLabels;
|
---|
| 279 | }
|
---|
| 280 | }
|
---|
| 281 |
|
---|
| 282 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 283 | class_alias(UptimeCheckConfig::class, 'Google_Service_Monitoring_UptimeCheckConfig');
|
---|