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