[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 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 | protected $forecastOptionsType = ForecastOptions::class;
|
---|
| 48 | protected $forecastOptionsDataType = '';
|
---|
| 49 | public $thresholdValue;
|
---|
| 50 | protected $triggerType = Trigger::class;
|
---|
| 51 | protected $triggerDataType = '';
|
---|
| 52 |
|
---|
| 53 | /**
|
---|
| 54 | * @param Aggregation[]
|
---|
| 55 | */
|
---|
| 56 | public function setAggregations($aggregations)
|
---|
| 57 | {
|
---|
| 58 | $this->aggregations = $aggregations;
|
---|
| 59 | }
|
---|
| 60 | /**
|
---|
| 61 | * @return Aggregation[]
|
---|
| 62 | */
|
---|
| 63 | public function getAggregations()
|
---|
| 64 | {
|
---|
| 65 | return $this->aggregations;
|
---|
| 66 | }
|
---|
| 67 | /**
|
---|
| 68 | * @param string
|
---|
| 69 | */
|
---|
| 70 | public function setComparison($comparison)
|
---|
| 71 | {
|
---|
| 72 | $this->comparison = $comparison;
|
---|
| 73 | }
|
---|
| 74 | /**
|
---|
| 75 | * @return string
|
---|
| 76 | */
|
---|
| 77 | public function getComparison()
|
---|
| 78 | {
|
---|
| 79 | return $this->comparison;
|
---|
| 80 | }
|
---|
| 81 | /**
|
---|
| 82 | * @param Aggregation[]
|
---|
| 83 | */
|
---|
| 84 | public function setDenominatorAggregations($denominatorAggregations)
|
---|
| 85 | {
|
---|
| 86 | $this->denominatorAggregations = $denominatorAggregations;
|
---|
| 87 | }
|
---|
| 88 | /**
|
---|
| 89 | * @return Aggregation[]
|
---|
| 90 | */
|
---|
| 91 | public function getDenominatorAggregations()
|
---|
| 92 | {
|
---|
| 93 | return $this->denominatorAggregations;
|
---|
| 94 | }
|
---|
| 95 | /**
|
---|
| 96 | * @param string
|
---|
| 97 | */
|
---|
| 98 | public function setDenominatorFilter($denominatorFilter)
|
---|
| 99 | {
|
---|
| 100 | $this->denominatorFilter = $denominatorFilter;
|
---|
| 101 | }
|
---|
| 102 | /**
|
---|
| 103 | * @return string
|
---|
| 104 | */
|
---|
| 105 | public function getDenominatorFilter()
|
---|
| 106 | {
|
---|
| 107 | return $this->denominatorFilter;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @param string
|
---|
| 111 | */
|
---|
| 112 | public function setDuration($duration)
|
---|
| 113 | {
|
---|
| 114 | $this->duration = $duration;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @return string
|
---|
| 118 | */
|
---|
| 119 | public function getDuration()
|
---|
| 120 | {
|
---|
| 121 | return $this->duration;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @param string
|
---|
| 125 | */
|
---|
| 126 | public function setEvaluationMissingData($evaluationMissingData)
|
---|
| 127 | {
|
---|
| 128 | $this->evaluationMissingData = $evaluationMissingData;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @return string
|
---|
| 132 | */
|
---|
| 133 | public function getEvaluationMissingData()
|
---|
| 134 | {
|
---|
| 135 | return $this->evaluationMissingData;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @param string
|
---|
| 139 | */
|
---|
| 140 | public function setFilter($filter)
|
---|
| 141 | {
|
---|
| 142 | $this->filter = $filter;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @return string
|
---|
| 146 | */
|
---|
| 147 | public function getFilter()
|
---|
| 148 | {
|
---|
| 149 | return $this->filter;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @param ForecastOptions
|
---|
| 153 | */
|
---|
| 154 | public function setForecastOptions(ForecastOptions $forecastOptions)
|
---|
| 155 | {
|
---|
| 156 | $this->forecastOptions = $forecastOptions;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @return ForecastOptions
|
---|
| 160 | */
|
---|
| 161 | public function getForecastOptions()
|
---|
| 162 | {
|
---|
| 163 | return $this->forecastOptions;
|
---|
| 164 | }
|
---|
| 165 | public function setThresholdValue($thresholdValue)
|
---|
| 166 | {
|
---|
| 167 | $this->thresholdValue = $thresholdValue;
|
---|
| 168 | }
|
---|
| 169 | public function getThresholdValue()
|
---|
| 170 | {
|
---|
| 171 | return $this->thresholdValue;
|
---|
| 172 | }
|
---|
| 173 | /**
|
---|
| 174 | * @param Trigger
|
---|
| 175 | */
|
---|
| 176 | public function setTrigger(Trigger $trigger)
|
---|
| 177 | {
|
---|
| 178 | $this->trigger = $trigger;
|
---|
| 179 | }
|
---|
| 180 | /**
|
---|
| 181 | * @return Trigger
|
---|
| 182 | */
|
---|
| 183 | public function getTrigger()
|
---|
| 184 | {
|
---|
| 185 | return $this->trigger;
|
---|
| 186 | }
|
---|
| 187 | }
|
---|
| 188 |
|
---|
| 189 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 190 | class_alias(MetricThreshold::class, 'Google_Service_Monitoring_MetricThreshold');
|
---|