source: vendor/google/apiclient-services/src/Monitoring/AlertPolicy.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload project files

  • Property mode set to 100644
File size: 4.8 KB
Line 
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\Monitoring;
19
20class AlertPolicy extends \Google\Collection
21{
22 protected $collection_key = 'notificationChannels';
23 protected $alertStrategyType = AlertStrategy::class;
24 protected $alertStrategyDataType = '';
25 /**
26 * @var string
27 */
28 public $combiner;
29 protected $conditionsType = Condition::class;
30 protected $conditionsDataType = 'array';
31 protected $creationRecordType = MutationRecord::class;
32 protected $creationRecordDataType = '';
33 /**
34 * @var string
35 */
36 public $displayName;
37 protected $documentationType = Documentation::class;
38 protected $documentationDataType = '';
39 /**
40 * @var bool
41 */
42 public $enabled;
43 protected $mutationRecordType = MutationRecord::class;
44 protected $mutationRecordDataType = '';
45 /**
46 * @var string
47 */
48 public $name;
49 /**
50 * @var string[]
51 */
52 public $notificationChannels;
53 /**
54 * @var string
55 */
56 public $severity;
57 /**
58 * @var string[]
59 */
60 public $userLabels;
61 protected $validityType = Status::class;
62 protected $validityDataType = '';
63
64 /**
65 * @param AlertStrategy
66 */
67 public function setAlertStrategy(AlertStrategy $alertStrategy)
68 {
69 $this->alertStrategy = $alertStrategy;
70 }
71 /**
72 * @return AlertStrategy
73 */
74 public function getAlertStrategy()
75 {
76 return $this->alertStrategy;
77 }
78 /**
79 * @param string
80 */
81 public function setCombiner($combiner)
82 {
83 $this->combiner = $combiner;
84 }
85 /**
86 * @return string
87 */
88 public function getCombiner()
89 {
90 return $this->combiner;
91 }
92 /**
93 * @param Condition[]
94 */
95 public function setConditions($conditions)
96 {
97 $this->conditions = $conditions;
98 }
99 /**
100 * @return Condition[]
101 */
102 public function getConditions()
103 {
104 return $this->conditions;
105 }
106 /**
107 * @param MutationRecord
108 */
109 public function setCreationRecord(MutationRecord $creationRecord)
110 {
111 $this->creationRecord = $creationRecord;
112 }
113 /**
114 * @return MutationRecord
115 */
116 public function getCreationRecord()
117 {
118 return $this->creationRecord;
119 }
120 /**
121 * @param string
122 */
123 public function setDisplayName($displayName)
124 {
125 $this->displayName = $displayName;
126 }
127 /**
128 * @return string
129 */
130 public function getDisplayName()
131 {
132 return $this->displayName;
133 }
134 /**
135 * @param Documentation
136 */
137 public function setDocumentation(Documentation $documentation)
138 {
139 $this->documentation = $documentation;
140 }
141 /**
142 * @return Documentation
143 */
144 public function getDocumentation()
145 {
146 return $this->documentation;
147 }
148 /**
149 * @param bool
150 */
151 public function setEnabled($enabled)
152 {
153 $this->enabled = $enabled;
154 }
155 /**
156 * @return bool
157 */
158 public function getEnabled()
159 {
160 return $this->enabled;
161 }
162 /**
163 * @param MutationRecord
164 */
165 public function setMutationRecord(MutationRecord $mutationRecord)
166 {
167 $this->mutationRecord = $mutationRecord;
168 }
169 /**
170 * @return MutationRecord
171 */
172 public function getMutationRecord()
173 {
174 return $this->mutationRecord;
175 }
176 /**
177 * @param string
178 */
179 public function setName($name)
180 {
181 $this->name = $name;
182 }
183 /**
184 * @return string
185 */
186 public function getName()
187 {
188 return $this->name;
189 }
190 /**
191 * @param string[]
192 */
193 public function setNotificationChannels($notificationChannels)
194 {
195 $this->notificationChannels = $notificationChannels;
196 }
197 /**
198 * @return string[]
199 */
200 public function getNotificationChannels()
201 {
202 return $this->notificationChannels;
203 }
204 /**
205 * @param string
206 */
207 public function setSeverity($severity)
208 {
209 $this->severity = $severity;
210 }
211 /**
212 * @return string
213 */
214 public function getSeverity()
215 {
216 return $this->severity;
217 }
218 /**
219 * @param string[]
220 */
221 public function setUserLabels($userLabels)
222 {
223 $this->userLabels = $userLabels;
224 }
225 /**
226 * @return string[]
227 */
228 public function getUserLabels()
229 {
230 return $this->userLabels;
231 }
232 /**
233 * @param Status
234 */
235 public function setValidity(Status $validity)
236 {
237 $this->validity = $validity;
238 }
239 /**
240 * @return Status
241 */
242 public function getValidity()
243 {
244 return $this->validity;
245 }
246}
247
248// Adding a class alias for backwards compatibility with the previous class name.
249class_alias(AlertPolicy::class, 'Google_Service_Monitoring_AlertPolicy');
Note: See TracBrowser for help on using the repository browser.