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 MetricThreshold extends \Google\Collection
21{
22  protected $collection_key = 'denominatorAggregations';
23  protected $aggregationsType = Aggregation::class;
24  protected $aggregationsDataType = 'array';
25  /**
26   * @var string
27   */
28  public $comparison;
29  protected $denominatorAggregationsType = Aggregation::class;
30  protected $denominatorAggregationsDataType = 'array';
31  /**
32   * @var string
33   */
34  public $denominatorFilter;
35  /**
36   * @var string
37   */
38  public $duration;
39  /**
40   * @var string
41   */
42  public $evaluationMissingData;
43  /**
44   * @var string
45   */
46  public $filter;
47  public $thresholdValue;
48  protected $triggerType = Trigger::class;
49  protected $triggerDataType = '';
50
51  /**
52   * @param Aggregation[]
53   */
54  public function setAggregations($aggregations)
55  {
56    $this->aggregations = $aggregations;
57  }
58  /**
59   * @return Aggregation[]
60   */
61  public function getAggregations()
62  {
63    return $this->aggregations;
64  }
65  /**
66   * @param string
67   */
68  public function setComparison($comparison)
69  {
70    $this->comparison = $comparison;
71  }
72  /**
73   * @return string
74   */
75  public function getComparison()
76  {
77    return $this->comparison;
78  }
79  /**
80   * @param Aggregation[]
81   */
82  public function setDenominatorAggregations($denominatorAggregations)
83  {
84    $this->denominatorAggregations = $denominatorAggregations;
85  }
86  /**
87   * @return Aggregation[]
88   */
89  public function getDenominatorAggregations()
90  {
91    return $this->denominatorAggregations;
92  }
93  /**
94   * @param string
95   */
96  public function setDenominatorFilter($denominatorFilter)
97  {
98    $this->denominatorFilter = $denominatorFilter;
99  }
100  /**
101   * @return string
102   */
103  public function getDenominatorFilter()
104  {
105    return $this->denominatorFilter;
106  }
107  /**
108   * @param string
109   */
110  public function setDuration($duration)
111  {
112    $this->duration = $duration;
113  }
114  /**
115   * @return string
116   */
117  public function getDuration()
118  {
119    return $this->duration;
120  }
121  /**
122   * @param string
123   */
124  public function setEvaluationMissingData($evaluationMissingData)
125  {
126    $this->evaluationMissingData = $evaluationMissingData;
127  }
128  /**
129   * @return string
130   */
131  public function getEvaluationMissingData()
132  {
133    return $this->evaluationMissingData;
134  }
135  /**
136   * @param string
137   */
138  public function setFilter($filter)
139  {
140    $this->filter = $filter;
141  }
142  /**
143   * @return string
144   */
145  public function getFilter()
146  {
147    return $this->filter;
148  }
149  public function setThresholdValue($thresholdValue)
150  {
151    $this->thresholdValue = $thresholdValue;
152  }
153  public function getThresholdValue()
154  {
155    return $this->thresholdValue;
156  }
157  /**
158   * @param Trigger
159   */
160  public function setTrigger(Trigger $trigger)
161  {
162    $this->trigger = $trigger;
163  }
164  /**
165   * @return Trigger
166   */
167  public function getTrigger()
168  {
169    return $this->trigger;
170  }
171}
172
173// Adding a class alias for backwards compatibility with the previous class name.
174class_alias(MetricThreshold::class, 'Google_Service_Monitoring_MetricThreshold');
175