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
18namespace Google\Service\Compute;
19
20class OutlierDetection extends \Google\Model
21{
22  protected $baseEjectionTimeType = Duration::class;
23  protected $baseEjectionTimeDataType = '';
24  /**
25   * @var int
26   */
27  public $consecutiveErrors;
28  /**
29   * @var int
30   */
31  public $consecutiveGatewayFailure;
32  /**
33   * @var int
34   */
35  public $enforcingConsecutiveErrors;
36  /**
37   * @var int
38   */
39  public $enforcingConsecutiveGatewayFailure;
40  /**
41   * @var int
42   */
43  public $enforcingSuccessRate;
44  protected $intervalType = Duration::class;
45  protected $intervalDataType = '';
46  /**
47   * @var int
48   */
49  public $maxEjectionPercent;
50  /**
51   * @var int
52   */
53  public $successRateMinimumHosts;
54  /**
55   * @var int
56   */
57  public $successRateRequestVolume;
58  /**
59   * @var int
60   */
61  public $successRateStdevFactor;
62
63  /**
64   * @param Duration
65   */
66  public function setBaseEjectionTime(Duration $baseEjectionTime)
67  {
68    $this->baseEjectionTime = $baseEjectionTime;
69  }
70  /**
71   * @return Duration
72   */
73  public function getBaseEjectionTime()
74  {
75    return $this->baseEjectionTime;
76  }
77  /**
78   * @param int
79   */
80  public function setConsecutiveErrors($consecutiveErrors)
81  {
82    $this->consecutiveErrors = $consecutiveErrors;
83  }
84  /**
85   * @return int
86   */
87  public function getConsecutiveErrors()
88  {
89    return $this->consecutiveErrors;
90  }
91  /**
92   * @param int
93   */
94  public function setConsecutiveGatewayFailure($consecutiveGatewayFailure)
95  {
96    $this->consecutiveGatewayFailure = $consecutiveGatewayFailure;
97  }
98  /**
99   * @return int
100   */
101  public function getConsecutiveGatewayFailure()
102  {
103    return $this->consecutiveGatewayFailure;
104  }
105  /**
106   * @param int
107   */
108  public function setEnforcingConsecutiveErrors($enforcingConsecutiveErrors)
109  {
110    $this->enforcingConsecutiveErrors = $enforcingConsecutiveErrors;
111  }
112  /**
113   * @return int
114   */
115  public function getEnforcingConsecutiveErrors()
116  {
117    return $this->enforcingConsecutiveErrors;
118  }
119  /**
120   * @param int
121   */
122  public function setEnforcingConsecutiveGatewayFailure($enforcingConsecutiveGatewayFailure)
123  {
124    $this->enforcingConsecutiveGatewayFailure = $enforcingConsecutiveGatewayFailure;
125  }
126  /**
127   * @return int
128   */
129  public function getEnforcingConsecutiveGatewayFailure()
130  {
131    return $this->enforcingConsecutiveGatewayFailure;
132  }
133  /**
134   * @param int
135   */
136  public function setEnforcingSuccessRate($enforcingSuccessRate)
137  {
138    $this->enforcingSuccessRate = $enforcingSuccessRate;
139  }
140  /**
141   * @return int
142   */
143  public function getEnforcingSuccessRate()
144  {
145    return $this->enforcingSuccessRate;
146  }
147  /**
148   * @param Duration
149   */
150  public function setInterval(Duration $interval)
151  {
152    $this->interval = $interval;
153  }
154  /**
155   * @return Duration
156   */
157  public function getInterval()
158  {
159    return $this->interval;
160  }
161  /**
162   * @param int
163   */
164  public function setMaxEjectionPercent($maxEjectionPercent)
165  {
166    $this->maxEjectionPercent = $maxEjectionPercent;
167  }
168  /**
169   * @return int
170   */
171  public function getMaxEjectionPercent()
172  {
173    return $this->maxEjectionPercent;
174  }
175  /**
176   * @param int
177   */
178  public function setSuccessRateMinimumHosts($successRateMinimumHosts)
179  {
180    $this->successRateMinimumHosts = $successRateMinimumHosts;
181  }
182  /**
183   * @return int
184   */
185  public function getSuccessRateMinimumHosts()
186  {
187    return $this->successRateMinimumHosts;
188  }
189  /**
190   * @param int
191   */
192  public function setSuccessRateRequestVolume($successRateRequestVolume)
193  {
194    $this->successRateRequestVolume = $successRateRequestVolume;
195  }
196  /**
197   * @return int
198   */
199  public function getSuccessRateRequestVolume()
200  {
201    return $this->successRateRequestVolume;
202  }
203  /**
204   * @param int
205   */
206  public function setSuccessRateStdevFactor($successRateStdevFactor)
207  {
208    $this->successRateStdevFactor = $successRateStdevFactor;
209  }
210  /**
211   * @return int
212   */
213  public function getSuccessRateStdevFactor()
214  {
215    return $this->successRateStdevFactor;
216  }
217}
218
219// Adding a class alias for backwards compatibility with the previous class name.
220class_alias(OutlierDetection::class, 'Google_Service_Compute_OutlierDetection');
221