source: vendor/google/apiclient-services/src/Monitoring/TimeSeries.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: 3.1 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 TimeSeries extends \Google\Collection
21{
22 protected $collection_key = 'points';
23 /**
24 * @var string
25 */
26 public $description;
27 protected $metadataType = MonitoredResourceMetadata::class;
28 protected $metadataDataType = '';
29 protected $metricType = Metric::class;
30 protected $metricDataType = '';
31 /**
32 * @var string
33 */
34 public $metricKind;
35 protected $pointsType = Point::class;
36 protected $pointsDataType = 'array';
37 protected $resourceType = MonitoredResource::class;
38 protected $resourceDataType = '';
39 /**
40 * @var string
41 */
42 public $unit;
43 /**
44 * @var string
45 */
46 public $valueType;
47
48 /**
49 * @param string
50 */
51 public function setDescription($description)
52 {
53 $this->description = $description;
54 }
55 /**
56 * @return string
57 */
58 public function getDescription()
59 {
60 return $this->description;
61 }
62 /**
63 * @param MonitoredResourceMetadata
64 */
65 public function setMetadata(MonitoredResourceMetadata $metadata)
66 {
67 $this->metadata = $metadata;
68 }
69 /**
70 * @return MonitoredResourceMetadata
71 */
72 public function getMetadata()
73 {
74 return $this->metadata;
75 }
76 /**
77 * @param Metric
78 */
79 public function setMetric(Metric $metric)
80 {
81 $this->metric = $metric;
82 }
83 /**
84 * @return Metric
85 */
86 public function getMetric()
87 {
88 return $this->metric;
89 }
90 /**
91 * @param string
92 */
93 public function setMetricKind($metricKind)
94 {
95 $this->metricKind = $metricKind;
96 }
97 /**
98 * @return string
99 */
100 public function getMetricKind()
101 {
102 return $this->metricKind;
103 }
104 /**
105 * @param Point[]
106 */
107 public function setPoints($points)
108 {
109 $this->points = $points;
110 }
111 /**
112 * @return Point[]
113 */
114 public function getPoints()
115 {
116 return $this->points;
117 }
118 /**
119 * @param MonitoredResource
120 */
121 public function setResource(MonitoredResource $resource)
122 {
123 $this->resource = $resource;
124 }
125 /**
126 * @return MonitoredResource
127 */
128 public function getResource()
129 {
130 return $this->resource;
131 }
132 /**
133 * @param string
134 */
135 public function setUnit($unit)
136 {
137 $this->unit = $unit;
138 }
139 /**
140 * @return string
141 */
142 public function getUnit()
143 {
144 return $this->unit;
145 }
146 /**
147 * @param string
148 */
149 public function setValueType($valueType)
150 {
151 $this->valueType = $valueType;
152 }
153 /**
154 * @return string
155 */
156 public function getValueType()
157 {
158 return $this->valueType;
159 }
160}
161
162// Adding a class alias for backwards compatibility with the previous class name.
163class_alias(TimeSeries::class, 'Google_Service_Monitoring_TimeSeries');
Note: See TracBrowser for help on using the repository browser.