[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 ServiceLevelObjective extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | /**
|
---|
| 23 | * @var string
|
---|
| 24 | */
|
---|
| 25 | public $calendarPeriod;
|
---|
| 26 | /**
|
---|
| 27 | * @var string
|
---|
| 28 | */
|
---|
| 29 | public $displayName;
|
---|
| 30 | public $goal;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $name;
|
---|
| 35 | /**
|
---|
| 36 | * @var string
|
---|
| 37 | */
|
---|
| 38 | public $rollingPeriod;
|
---|
| 39 | protected $serviceLevelIndicatorType = ServiceLevelIndicator::class;
|
---|
| 40 | protected $serviceLevelIndicatorDataType = '';
|
---|
| 41 | /**
|
---|
| 42 | * @var string[]
|
---|
| 43 | */
|
---|
| 44 | public $userLabels;
|
---|
| 45 |
|
---|
| 46 | /**
|
---|
| 47 | * @param string
|
---|
| 48 | */
|
---|
| 49 | public function setCalendarPeriod($calendarPeriod)
|
---|
| 50 | {
|
---|
| 51 | $this->calendarPeriod = $calendarPeriod;
|
---|
| 52 | }
|
---|
| 53 | /**
|
---|
| 54 | * @return string
|
---|
| 55 | */
|
---|
| 56 | public function getCalendarPeriod()
|
---|
| 57 | {
|
---|
| 58 | return $this->calendarPeriod;
|
---|
| 59 | }
|
---|
| 60 | /**
|
---|
| 61 | * @param string
|
---|
| 62 | */
|
---|
| 63 | public function setDisplayName($displayName)
|
---|
| 64 | {
|
---|
| 65 | $this->displayName = $displayName;
|
---|
| 66 | }
|
---|
| 67 | /**
|
---|
| 68 | * @return string
|
---|
| 69 | */
|
---|
| 70 | public function getDisplayName()
|
---|
| 71 | {
|
---|
| 72 | return $this->displayName;
|
---|
| 73 | }
|
---|
| 74 | public function setGoal($goal)
|
---|
| 75 | {
|
---|
| 76 | $this->goal = $goal;
|
---|
| 77 | }
|
---|
| 78 | public function getGoal()
|
---|
| 79 | {
|
---|
| 80 | return $this->goal;
|
---|
| 81 | }
|
---|
| 82 | /**
|
---|
| 83 | * @param string
|
---|
| 84 | */
|
---|
| 85 | public function setName($name)
|
---|
| 86 | {
|
---|
| 87 | $this->name = $name;
|
---|
| 88 | }
|
---|
| 89 | /**
|
---|
| 90 | * @return string
|
---|
| 91 | */
|
---|
| 92 | public function getName()
|
---|
| 93 | {
|
---|
| 94 | return $this->name;
|
---|
| 95 | }
|
---|
| 96 | /**
|
---|
| 97 | * @param string
|
---|
| 98 | */
|
---|
| 99 | public function setRollingPeriod($rollingPeriod)
|
---|
| 100 | {
|
---|
| 101 | $this->rollingPeriod = $rollingPeriod;
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * @return string
|
---|
| 105 | */
|
---|
| 106 | public function getRollingPeriod()
|
---|
| 107 | {
|
---|
| 108 | return $this->rollingPeriod;
|
---|
| 109 | }
|
---|
| 110 | /**
|
---|
| 111 | * @param ServiceLevelIndicator
|
---|
| 112 | */
|
---|
| 113 | public function setServiceLevelIndicator(ServiceLevelIndicator $serviceLevelIndicator)
|
---|
| 114 | {
|
---|
| 115 | $this->serviceLevelIndicator = $serviceLevelIndicator;
|
---|
| 116 | }
|
---|
| 117 | /**
|
---|
| 118 | * @return ServiceLevelIndicator
|
---|
| 119 | */
|
---|
| 120 | public function getServiceLevelIndicator()
|
---|
| 121 | {
|
---|
| 122 | return $this->serviceLevelIndicator;
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * @param string[]
|
---|
| 126 | */
|
---|
| 127 | public function setUserLabels($userLabels)
|
---|
| 128 | {
|
---|
| 129 | $this->userLabels = $userLabels;
|
---|
| 130 | }
|
---|
| 131 | /**
|
---|
| 132 | * @return string[]
|
---|
| 133 | */
|
---|
| 134 | public function getUserLabels()
|
---|
| 135 | {
|
---|
| 136 | return $this->userLabels;
|
---|
| 137 | }
|
---|
| 138 | }
|
---|
| 139 |
|
---|
| 140 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 141 | class_alias(ServiceLevelObjective::class, 'Google_Service_Monitoring_ServiceLevelObjective');
|
---|