source: vendor/google/apiclient-services/src/Monitoring/Condition.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.0 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 Condition extends \Google\Model
21{
22 protected $conditionAbsentType = MetricAbsence::class;
23 protected $conditionAbsentDataType = '';
24 protected $conditionMatchedLogType = LogMatch::class;
25 protected $conditionMatchedLogDataType = '';
26 protected $conditionMonitoringQueryLanguageType = MonitoringQueryLanguageCondition::class;
27 protected $conditionMonitoringQueryLanguageDataType = '';
28 protected $conditionPrometheusQueryLanguageType = PrometheusQueryLanguageCondition::class;
29 protected $conditionPrometheusQueryLanguageDataType = '';
30 protected $conditionSqlType = SqlCondition::class;
31 protected $conditionSqlDataType = '';
32 protected $conditionThresholdType = MetricThreshold::class;
33 protected $conditionThresholdDataType = '';
34 /**
35 * @var string
36 */
37 public $displayName;
38 /**
39 * @var string
40 */
41 public $name;
42
43 /**
44 * @param MetricAbsence
45 */
46 public function setConditionAbsent(MetricAbsence $conditionAbsent)
47 {
48 $this->conditionAbsent = $conditionAbsent;
49 }
50 /**
51 * @return MetricAbsence
52 */
53 public function getConditionAbsent()
54 {
55 return $this->conditionAbsent;
56 }
57 /**
58 * @param LogMatch
59 */
60 public function setConditionMatchedLog(LogMatch $conditionMatchedLog)
61 {
62 $this->conditionMatchedLog = $conditionMatchedLog;
63 }
64 /**
65 * @return LogMatch
66 */
67 public function getConditionMatchedLog()
68 {
69 return $this->conditionMatchedLog;
70 }
71 /**
72 * @param MonitoringQueryLanguageCondition
73 */
74 public function setConditionMonitoringQueryLanguage(MonitoringQueryLanguageCondition $conditionMonitoringQueryLanguage)
75 {
76 $this->conditionMonitoringQueryLanguage = $conditionMonitoringQueryLanguage;
77 }
78 /**
79 * @return MonitoringQueryLanguageCondition
80 */
81 public function getConditionMonitoringQueryLanguage()
82 {
83 return $this->conditionMonitoringQueryLanguage;
84 }
85 /**
86 * @param PrometheusQueryLanguageCondition
87 */
88 public function setConditionPrometheusQueryLanguage(PrometheusQueryLanguageCondition $conditionPrometheusQueryLanguage)
89 {
90 $this->conditionPrometheusQueryLanguage = $conditionPrometheusQueryLanguage;
91 }
92 /**
93 * @return PrometheusQueryLanguageCondition
94 */
95 public function getConditionPrometheusQueryLanguage()
96 {
97 return $this->conditionPrometheusQueryLanguage;
98 }
99 /**
100 * @param SqlCondition
101 */
102 public function setConditionSql(SqlCondition $conditionSql)
103 {
104 $this->conditionSql = $conditionSql;
105 }
106 /**
107 * @return SqlCondition
108 */
109 public function getConditionSql()
110 {
111 return $this->conditionSql;
112 }
113 /**
114 * @param MetricThreshold
115 */
116 public function setConditionThreshold(MetricThreshold $conditionThreshold)
117 {
118 $this->conditionThreshold = $conditionThreshold;
119 }
120 /**
121 * @return MetricThreshold
122 */
123 public function getConditionThreshold()
124 {
125 return $this->conditionThreshold;
126 }
127 /**
128 * @param string
129 */
130 public function setDisplayName($displayName)
131 {
132 $this->displayName = $displayName;
133 }
134 /**
135 * @return string
136 */
137 public function getDisplayName()
138 {
139 return $this->displayName;
140 }
141 /**
142 * @param string
143 */
144 public function setName($name)
145 {
146 $this->name = $name;
147 }
148 /**
149 * @return string
150 */
151 public function getName()
152 {
153 return $this->name;
154 }
155}
156
157// Adding a class alias for backwards compatibility with the previous class name.
158class_alias(Condition::class, 'Google_Service_Monitoring_Condition');
Note: See TracBrowser for help on using the repository browser.