PluginProbe
Authorizer / 2.6.17
Authorizer v2.6.17
3.15.3 3.15.2 3.15.1 3.15.0 3.14.3 3.14.4 3.14.2 3.14.1 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.10 2.9.11 2.9.12 2.9.13 2.9.2 2.9.3 2.9.6 All 126 releases
authorizer / vendor / google-api-php-client / src / Google / Service / CloudMonitoring.php

CloudMonitoring.php in Authorizer 2.6.17, at vendor/google-api-php-client/src/Google/Service/CloudMonitoring.php

1,162 lines 33.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16 /**
17 * Service definition for CloudMonitoring (v2beta2).
18 *
19 * <p>
20 * API for accessing Google Cloud and API monitoring data.</p>
21 *
22 * <p>
23 * For more information about this service, see the API
24 * <a href="https://cloud.google.com/monitoring/v2beta2/" target="_blank">Documentation</a>
25 * </p>
26 *
27 * @author Google, Inc.
28 */
29 class Google_Service_CloudMonitoring extends Google_Service
30 {
31 /** View and manage your data across Google Cloud Platform services. */
32 const CLOUD_PLATFORM =
33 "https://www.googleapis.com/auth/cloud-platform";
34 /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */
35 const MONITORING =
36 "https://www.googleapis.com/auth/monitoring";
37
38 public $metricDescriptors;
39 public $timeseries;
40 public $timeseriesDescriptors;
41
42
43 /**
44 * Constructs the internal representation of the CloudMonitoring service.
45 *
46 * @param Google_Client $client
47 */
48 public function __construct(Google_Client $client)
49 {
50 parent::__construct($client);
51 $this->rootUrl = 'https://www.googleapis.com/';
52 $this->servicePath = 'cloudmonitoring/v2beta2/projects/';
53 $this->version = 'v2beta2';
54 $this->serviceName = 'cloudmonitoring';
55
56 $this->metricDescriptors = new Google_Service_CloudMonitoring_MetricDescriptors_Resource(
57 $this,
58 $this->serviceName,
59 'metricDescriptors',
60 array(
61 'methods' => array(
62 'create' => array(
63 'path' => '{project}/metricDescriptors',
64 'httpMethod' => 'POST',
65 'parameters' => array(
66 'project' => array(
67 'location' => 'path',
68 'type' => 'string',
69 'required' => true,
70 ),
71 ),
72 ),'delete' => array(
73 'path' => '{project}/metricDescriptors/{metric}',
74 'httpMethod' => 'DELETE',
75 'parameters' => array(
76 'project' => array(
77 'location' => 'path',
78 'type' => 'string',
79 'required' => true,
80 ),
81 'metric' => array(
82 'location' => 'path',
83 'type' => 'string',
84 'required' => true,
85 ),
86 ),
87 ),'list' => array(
88 'path' => '{project}/metricDescriptors',
89 'httpMethod' => 'GET',
90 'parameters' => array(
91 'project' => array(
92 'location' => 'path',
93 'type' => 'string',
94 'required' => true,
95 ),
96 'count' => array(
97 'location' => 'query',
98 'type' => 'integer',
99 ),
100 'pageToken' => array(
101 'location' => 'query',
102 'type' => 'string',
103 ),
104 'query' => array(
105 'location' => 'query',
106 'type' => 'string',
107 ),
108 ),
109 ),
110 )
111 )
112 );
113 $this->timeseries = new Google_Service_CloudMonitoring_Timeseries_Resource(
114 $this,
115 $this->serviceName,
116 'timeseries',
117 array(
118 'methods' => array(
119 'list' => array(
120 'path' => '{project}/timeseries/{metric}',
121 'httpMethod' => 'GET',
122 'parameters' => array(
123 'project' => array(
124 'location' => 'path',
125 'type' => 'string',
126 'required' => true,
127 ),
128 'metric' => array(
129 'location' => 'path',
130 'type' => 'string',
131 'required' => true,
132 ),
133 'youngest' => array(
134 'location' => 'query',
135 'type' => 'string',
136 'required' => true,
137 ),
138 'aggregator' => array(
139 'location' => 'query',
140 'type' => 'string',
141 ),
142 'count' => array(
143 'location' => 'query',
144 'type' => 'integer',
145 ),
146 'labels' => array(
147 'location' => 'query',
148 'type' => 'string',
149 'repeated' => true,
150 ),
151 'oldest' => array(
152 'location' => 'query',
153 'type' => 'string',
154 ),
155 'pageToken' => array(
156 'location' => 'query',
157 'type' => 'string',
158 ),
159 'timespan' => array(
160 'location' => 'query',
161 'type' => 'string',
162 ),
163 'window' => array(
164 'location' => 'query',
165 'type' => 'string',
166 ),
167 ),
168 ),'write' => array(
169 'path' => '{project}/timeseries:write',
170 'httpMethod' => 'POST',
171 'parameters' => array(
172 'project' => array(
173 'location' => 'path',
174 'type' => 'string',
175 'required' => true,
176 ),
177 ),
178 ),
179 )
180 )
181 );
182 $this->timeseriesDescriptors = new Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource(
183 $this,
184 $this->serviceName,
185 'timeseriesDescriptors',
186 array(
187 'methods' => array(
188 'list' => array(
189 'path' => '{project}/timeseriesDescriptors/{metric}',
190 'httpMethod' => 'GET',
191 'parameters' => array(
192 'project' => array(
193 'location' => 'path',
194 'type' => 'string',
195 'required' => true,
196 ),
197 'metric' => array(
198 'location' => 'path',
199 'type' => 'string',
200 'required' => true,
201 ),
202 'youngest' => array(
203 'location' => 'query',
204 'type' => 'string',
205 'required' => true,
206 ),
207 'aggregator' => array(
208 'location' => 'query',
209 'type' => 'string',
210 ),
211 'count' => array(
212 'location' => 'query',
213 'type' => 'integer',
214 ),
215 'labels' => array(
216 'location' => 'query',
217 'type' => 'string',
218 'repeated' => true,
219 ),
220 'oldest' => array(
221 'location' => 'query',
222 'type' => 'string',
223 ),
224 'pageToken' => array(
225 'location' => 'query',
226 'type' => 'string',
227 ),
228 'timespan' => array(
229 'location' => 'query',
230 'type' => 'string',
231 ),
232 'window' => array(
233 'location' => 'query',
234 'type' => 'string',
235 ),
236 ),
237 ),
238 )
239 )
240 );
241 }
242 }
243
244
245 /**
246 * The "metricDescriptors" collection of methods.
247 * Typical usage is:
248 * <code>
249 * $cloudmonitoringService = new Google_Service_CloudMonitoring(...);
250 * $metricDescriptors = $cloudmonitoringService->metricDescriptors;
251 * </code>
252 */
253 class Google_Service_CloudMonitoring_MetricDescriptors_Resource extends Google_Service_Resource
254 {
255
256 /**
257 * Create a new metric. (metricDescriptors.create)
258 *
259 * @param string $project The project id. The value can be the numeric project
260 * ID or string-based project name.
261 * @param Google_MetricDescriptor $postBody
262 * @param array $optParams Optional parameters.
263 * @return Google_Service_CloudMonitoring_MetricDescriptor
264 */
265 public function create($project, Google_Service_CloudMonitoring_MetricDescriptor $postBody, $optParams = array())
266 {
267 $params = array('project' => $project, 'postBody' => $postBody);
268 $params = array_merge($params, $optParams);
269 return $this->call('create', array($params), "Google_Service_CloudMonitoring_MetricDescriptor");
270 }
271
272 /**
273 * Delete an existing metric. (metricDescriptors.delete)
274 *
275 * @param string $project The project ID to which the metric belongs.
276 * @param string $metric Name of the metric.
277 * @param array $optParams Optional parameters.
278 * @return Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse
279 */
280 public function delete($project, $metric, $optParams = array())
281 {
282 $params = array('project' => $project, 'metric' => $metric);
283 $params = array_merge($params, $optParams);
284 return $this->call('delete', array($params), "Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse");
285 }
286
287 /**
288 * List metric descriptors that match the query. If the query is not set, then
289 * all of the metric descriptors will be returned. Large responses will be
290 * paginated, use the nextPageToken returned in the response to request
291 * subsequent pages of results by setting the pageToken query parameter to the
292 * value of the nextPageToken. (metricDescriptors.listMetricDescriptors)
293 *
294 * @param string $project The project id. The value can be the numeric project
295 * ID or string-based project name.
296 * @param array $optParams Optional parameters.
297 *
298 * @opt_param int count Maximum number of metric descriptors per page. Used for
299 * pagination. If not specified, count = 100.
300 * @opt_param string pageToken The pagination token, which is used to page
301 * through large result sets. Set this value to the value of the nextPageToken
302 * to retrieve the next page of results.
303 * @opt_param string query The query used to search against existing metrics.
304 * Separate keywords with a space; the service joins all keywords with AND,
305 * meaning that all keywords must match for a metric to be returned. If this
306 * field is omitted, all metrics are returned. If an empty string is passed with
307 * this field, no metrics are returned.
308 * @return Google_Service_CloudMonitoring_ListMetricDescriptorsResponse
309 */
310 public function listMetricDescriptors($project, $optParams = array())
311 {
312 $params = array('project' => $project);
313 $params = array_merge($params, $optParams);
314 return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListMetricDescriptorsResponse");
315 }
316 }
317
318 /**
319 * The "timeseries" collection of methods.
320 * Typical usage is:
321 * <code>
322 * $cloudmonitoringService = new Google_Service_CloudMonitoring(...);
323 * $timeseries = $cloudmonitoringService->timeseries;
324 * </code>
325 */
326 class Google_Service_CloudMonitoring_Timeseries_Resource extends Google_Service_Resource
327 {
328
329 /**
330 * List the data points of the time series that match the metric and labels
331 * values and that have data points in the interval. Large responses are
332 * paginated; use the nextPageToken returned in the response to request
333 * subsequent pages of results by setting the pageToken query parameter to the
334 * value of the nextPageToken. (timeseries.listTimeseries)
335 *
336 * @param string $project The project ID to which this time series belongs. The
337 * value can be the numeric project ID or string-based project name.
338 * @param string $metric Metric names are protocol-free URLs as listed in the
339 * Supported Metrics page. For example,
340 * compute.googleapis.com/instance/disk/read_ops_count.
341 * @param string $youngest End of the time interval (inclusive), which is
342 * expressed as an RFC 3339 timestamp.
343 * @param array $optParams Optional parameters.
344 *
345 * @opt_param string aggregator The aggregation function that will reduce the
346 * data points in each window to a single point. This parameter is only valid
347 * for non-cumulative metrics with a value type of INT64 or DOUBLE.
348 * @opt_param int count Maximum number of data points per page, which is used
349 * for pagination of results.
350 * @opt_param string labels A collection of labels for the matching time series,
351 * which are represented as: - key==value: key equals the value - key=~value:
352 * key regex matches the value - key!=value: key does not equal the value -
353 * key!~value: key regex does not match the value For example, to list all of
354 * the time series descriptors for the region us-central1, you could specify:
355 * label=cloud.googleapis.com%2Flocation=~us-central1.*
356 * @opt_param string oldest Start of the time interval (exclusive), which is
357 * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is
358 * specified, the default time interval will be (youngest - 4 hours, youngest]
359 * @opt_param string pageToken The pagination token, which is used to page
360 * through large result sets. Set this value to the value of the nextPageToken
361 * to retrieve the next page of results.
362 * @opt_param string timespan Length of the time interval to query, which is an
363 * alternative way to declare the interval: (youngest - timespan, youngest]. The
364 * timespan and oldest parameters should not be used together. Units: - s:
365 * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w.
366 * Only one unit is allowed, for example: 2w3d is not allowed; you should use
367 * 17d instead.
368 *
369 * If neither oldest nor timespan is specified, the default time interval will
370 * be (youngest - 4 hours, youngest].
371 * @opt_param string window The sampling window. At most one data point will be
372 * returned for each window in the requested time interval. This parameter is
373 * only valid for non-cumulative metric types. Units: - m: minute - h: hour -
374 * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example:
375 * 2w3d is not allowed; you should use 17d instead.
376 * @return Google_Service_CloudMonitoring_ListTimeseriesResponse
377 */
378 public function listTimeseries($project, $metric, $youngest, $optParams = array())
379 {
380 $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest);
381 $params = array_merge($params, $optParams);
382 return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesResponse");
383 }
384
385 /**
386 * Put data points to one or more time series for one or more metrics. If a time
387 * series does not exist, a new time series will be created. It is not allowed
388 * to write a time series point that is older than the existing youngest point
389 * of that time series. Points that are older than the existing youngest point
390 * of that time series will be discarded silently. Therefore, users should make
391 * sure that points of a time series are written sequentially in the order of
392 * their end time. (timeseries.write)
393 *
394 * @param string $project The project ID. The value can be the numeric project
395 * ID or string-based project name.
396 * @param Google_WriteTimeseriesRequest $postBody
397 * @param array $optParams Optional parameters.
398 * @return Google_Service_CloudMonitoring_WriteTimeseriesResponse
399 */
400 public function write($project, Google_Service_CloudMonitoring_WriteTimeseriesRequest $postBody, $optParams = array())
401 {
402 $params = array('project' => $project, 'postBody' => $postBody);
403 $params = array_merge($params, $optParams);
404 return $this->call('write', array($params), "Google_Service_CloudMonitoring_WriteTimeseriesResponse");
405 }
406 }
407
408 /**
409 * The "timeseriesDescriptors" collection of methods.
410 * Typical usage is:
411 * <code>
412 * $cloudmonitoringService = new Google_Service_CloudMonitoring(...);
413 * $timeseriesDescriptors = $cloudmonitoringService->timeseriesDescriptors;
414 * </code>
415 */
416 class Google_Service_CloudMonitoring_TimeseriesDescriptors_Resource extends Google_Service_Resource
417 {
418
419 /**
420 * List the descriptors of the time series that match the metric and labels
421 * values and that have data points in the interval. Large responses are
422 * paginated; use the nextPageToken returned in the response to request
423 * subsequent pages of results by setting the pageToken query parameter to the
424 * value of the nextPageToken. (timeseriesDescriptors.listTimeseriesDescriptors)
425 *
426 * @param string $project The project ID to which this time series belongs. The
427 * value can be the numeric project ID or string-based project name.
428 * @param string $metric Metric names are protocol-free URLs as listed in the
429 * Supported Metrics page. For example,
430 * compute.googleapis.com/instance/disk/read_ops_count.
431 * @param string $youngest End of the time interval (inclusive), which is
432 * expressed as an RFC 3339 timestamp.
433 * @param array $optParams Optional parameters.
434 *
435 * @opt_param string aggregator The aggregation function that will reduce the
436 * data points in each window to a single point. This parameter is only valid
437 * for non-cumulative metrics with a value type of INT64 or DOUBLE.
438 * @opt_param int count Maximum number of time series descriptors per page. Used
439 * for pagination. If not specified, count = 100.
440 * @opt_param string labels A collection of labels for the matching time series,
441 * which are represented as: - key==value: key equals the value - key=~value:
442 * key regex matches the value - key!=value: key does not equal the value -
443 * key!~value: key regex does not match the value For example, to list all of
444 * the time series descriptors for the region us-central1, you could specify:
445 * label=cloud.googleapis.com%2Flocation=~us-central1.*
446 * @opt_param string oldest Start of the time interval (exclusive), which is
447 * expressed as an RFC 3339 timestamp. If neither oldest nor timespan is
448 * specified, the default time interval will be (youngest - 4 hours, youngest]
449 * @opt_param string pageToken The pagination token, which is used to page
450 * through large result sets. Set this value to the value of the nextPageToken
451 * to retrieve the next page of results.
452 * @opt_param string timespan Length of the time interval to query, which is an
453 * alternative way to declare the interval: (youngest - timespan, youngest]. The
454 * timespan and oldest parameters should not be used together. Units: - s:
455 * second - m: minute - h: hour - d: day - w: week Examples: 2s, 3m, 4w.
456 * Only one unit is allowed, for example: 2w3d is not allowed; you should use
457 * 17d instead.
458 *
459 * If neither oldest nor timespan is specified, the default time interval will
460 * be (youngest - 4 hours, youngest].
461 * @opt_param string window The sampling window. At most one data point will be
462 * returned for each window in the requested time interval. This parameter is
463 * only valid for non-cumulative metric types. Units: - m: minute - h: hour -
464 * d: day - w: week Examples: 3m, 4w. Only one unit is allowed, for example:
465 * 2w3d is not allowed; you should use 17d instead.
466 * @return Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse
467 */
468 public function listTimeseriesDescriptors($project, $metric, $youngest, $optParams = array())
469 {
470 $params = array('project' => $project, 'metric' => $metric, 'youngest' => $youngest);
471 $params = array_merge($params, $optParams);
472 return $this->call('list', array($params), "Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse");
473 }
474 }
475
476
477
478
479 class Google_Service_CloudMonitoring_DeleteMetricDescriptorResponse extends Google_Model
480 {
481 protected $internal_gapi_mappings = array(
482 );
483 public $kind;
484
485
486 public function setKind($kind)
487 {
488 $this->kind = $kind;
489 }
490 public function getKind()
491 {
492 return $this->kind;
493 }
494 }
495
496 class Google_Service_CloudMonitoring_ListMetricDescriptorsRequest extends Google_Model
497 {
498 protected $internal_gapi_mappings = array(
499 );
500 public $kind;
501
502
503 public function setKind($kind)
504 {
505 $this->kind = $kind;
506 }
507 public function getKind()
508 {
509 return $this->kind;
510 }
511 }
512
513 class Google_Service_CloudMonitoring_ListMetricDescriptorsResponse extends Google_Collection
514 {
515 protected $collection_key = 'metrics';
516 protected $internal_gapi_mappings = array(
517 );
518 public $kind;
519 protected $metricsType = 'Google_Service_CloudMonitoring_MetricDescriptor';
520 protected $metricsDataType = 'array';
521 public $nextPageToken;
522
523
524 public function setKind($kind)
525 {
526 $this->kind = $kind;
527 }
528 public function getKind()
529 {
530 return $this->kind;
531 }
532 public function setMetrics($metrics)
533 {
534 $this->metrics = $metrics;
535 }
536 public function getMetrics()
537 {
538 return $this->metrics;
539 }
540 public function setNextPageToken($nextPageToken)
541 {
542 $this->nextPageToken = $nextPageToken;
543 }
544 public function getNextPageToken()
545 {
546 return $this->nextPageToken;
547 }
548 }
549
550 class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsRequest extends Google_Model
551 {
552 protected $internal_gapi_mappings = array(
553 );
554 public $kind;
555
556
557 public function setKind($kind)
558 {
559 $this->kind = $kind;
560 }
561 public function getKind()
562 {
563 return $this->kind;
564 }
565 }
566
567 class Google_Service_CloudMonitoring_ListTimeseriesDescriptorsResponse extends Google_Collection
568 {
569 protected $collection_key = 'timeseries';
570 protected $internal_gapi_mappings = array(
571 );
572 public $kind;
573 public $nextPageToken;
574 public $oldest;
575 protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor';
576 protected $timeseriesDataType = 'array';
577 public $youngest;
578
579
580 public function setKind($kind)
581 {
582 $this->kind = $kind;
583 }
584 public function getKind()
585 {
586 return $this->kind;
587 }
588 public function setNextPageToken($nextPageToken)
589 {
590 $this->nextPageToken = $nextPageToken;
591 }
592 public function getNextPageToken()
593 {
594 return $this->nextPageToken;
595 }
596 public function setOldest($oldest)
597 {
598 $this->oldest = $oldest;
599 }
600 public function getOldest()
601 {
602 return $this->oldest;
603 }
604 public function setTimeseries($timeseries)
605 {
606 $this->timeseries = $timeseries;
607 }
608 public function getTimeseries()
609 {
610 return $this->timeseries;
611 }
612 public function setYoungest($youngest)
613 {
614 $this->youngest = $youngest;
615 }
616 public function getYoungest()
617 {
618 return $this->youngest;
619 }
620 }
621
622 class Google_Service_CloudMonitoring_ListTimeseriesRequest extends Google_Model
623 {
624 protected $internal_gapi_mappings = array(
625 );
626 public $kind;
627
628
629 public function setKind($kind)
630 {
631 $this->kind = $kind;
632 }
633 public function getKind()
634 {
635 return $this->kind;
636 }
637 }
638
639 class Google_Service_CloudMonitoring_ListTimeseriesResponse extends Google_Collection
640 {
641 protected $collection_key = 'timeseries';
642 protected $internal_gapi_mappings = array(
643 );
644 public $kind;
645 public $nextPageToken;
646 public $oldest;
647 protected $timeseriesType = 'Google_Service_CloudMonitoring_Timeseries';
648 protected $timeseriesDataType = 'array';
649 public $youngest;
650
651
652 public function setKind($kind)
653 {
654 $this->kind = $kind;
655 }
656 public function getKind()
657 {
658 return $this->kind;
659 }
660 public function setNextPageToken($nextPageToken)
661 {
662 $this->nextPageToken = $nextPageToken;
663 }
664 public function getNextPageToken()
665 {
666 return $this->nextPageToken;
667 }
668 public function setOldest($oldest)
669 {
670 $this->oldest = $oldest;
671 }
672 public function getOldest()
673 {
674 return $this->oldest;
675 }
676 public function setTimeseries($timeseries)
677 {
678 $this->timeseries = $timeseries;
679 }
680 public function getTimeseries()
681 {
682 return $this->timeseries;
683 }
684 public function setYoungest($youngest)
685 {
686 $this->youngest = $youngest;
687 }
688 public function getYoungest()
689 {
690 return $this->youngest;
691 }
692 }
693
694 class Google_Service_CloudMonitoring_MetricDescriptor extends Google_Collection
695 {
696 protected $collection_key = 'labels';
697 protected $internal_gapi_mappings = array(
698 );
699 public $description;
700 protected $labelsType = 'Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor';
701 protected $labelsDataType = 'array';
702 public $name;
703 public $project;
704 protected $typeDescriptorType = 'Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor';
705 protected $typeDescriptorDataType = '';
706
707
708 public function setDescription($description)
709 {
710 $this->description = $description;
711 }
712 public function getDescription()
713 {
714 return $this->description;
715 }
716 public function setLabels($labels)
717 {
718 $this->labels = $labels;
719 }
720 public function getLabels()
721 {
722 return $this->labels;
723 }
724 public function setName($name)
725 {
726 $this->name = $name;
727 }
728 public function getName()
729 {
730 return $this->name;
731 }
732 public function setProject($project)
733 {
734 $this->project = $project;
735 }
736 public function getProject()
737 {
738 return $this->project;
739 }
740 public function setTypeDescriptor(Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor $typeDescriptor)
741 {
742 $this->typeDescriptor = $typeDescriptor;
743 }
744 public function getTypeDescriptor()
745 {
746 return $this->typeDescriptor;
747 }
748 }
749
750 class Google_Service_CloudMonitoring_MetricDescriptorLabelDescriptor extends Google_Model
751 {
752 protected $internal_gapi_mappings = array(
753 );
754 public $description;
755 public $key;
756
757
758 public function setDescription($description)
759 {
760 $this->description = $description;
761 }
762 public function getDescription()
763 {
764 return $this->description;
765 }
766 public function setKey($key)
767 {
768 $this->key = $key;
769 }
770 public function getKey()
771 {
772 return $this->key;
773 }
774 }
775
776 class Google_Service_CloudMonitoring_MetricDescriptorTypeDescriptor extends Google_Model
777 {
778 protected $internal_gapi_mappings = array(
779 );
780 public $metricType;
781 public $valueType;
782
783
784 public function setMetricType($metricType)
785 {
786 $this->metricType = $metricType;
787 }
788 public function getMetricType()
789 {
790 return $this->metricType;
791 }
792 public function setValueType($valueType)
793 {
794 $this->valueType = $valueType;
795 }
796 public function getValueType()
797 {
798 return $this->valueType;
799 }
800 }
801
802 class Google_Service_CloudMonitoring_Point extends Google_Model
803 {
804 protected $internal_gapi_mappings = array(
805 );
806 public $boolValue;
807 protected $distributionValueType = 'Google_Service_CloudMonitoring_PointDistribution';
808 protected $distributionValueDataType = '';
809 public $doubleValue;
810 public $end;
811 public $int64Value;
812 public $start;
813 public $stringValue;
814
815
816 public function setBoolValue($boolValue)
817 {
818 $this->boolValue = $boolValue;
819 }
820 public function getBoolValue()
821 {
822 return $this->boolValue;
823 }
824 public function setDistributionValue(Google_Service_CloudMonitoring_PointDistribution $distributionValue)
825 {
826 $this->distributionValue = $distributionValue;
827 }
828 public function getDistributionValue()
829 {
830 return $this->distributionValue;
831 }
832 public function setDoubleValue($doubleValue)
833 {
834 $this->doubleValue = $doubleValue;
835 }
836 public function getDoubleValue()
837 {
838 return $this->doubleValue;
839 }
840 public function setEnd($end)
841 {
842 $this->end = $end;
843 }
844 public function getEnd()
845 {
846 return $this->end;
847 }
848 public function setInt64Value($int64Value)
849 {
850 $this->int64Value = $int64Value;
851 }
852 public function getInt64Value()
853 {
854 return $this->int64Value;
855 }
856 public function setStart($start)
857 {
858 $this->start = $start;
859 }
860 public function getStart()
861 {
862 return $this->start;
863 }
864 public function setStringValue($stringValue)
865 {
866 $this->stringValue = $stringValue;
867 }
868 public function getStringValue()
869 {
870 return $this->stringValue;
871 }
872 }
873
874 class Google_Service_CloudMonitoring_PointDistribution extends Google_Collection
875 {
876 protected $collection_key = 'buckets';
877 protected $internal_gapi_mappings = array(
878 );
879 protected $bucketsType = 'Google_Service_CloudMonitoring_PointDistributionBucket';
880 protected $bucketsDataType = 'array';
881 protected $overflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionOverflowBucket';
882 protected $overflowBucketDataType = '';
883 protected $underflowBucketType = 'Google_Service_CloudMonitoring_PointDistributionUnderflowBucket';
884 protected $underflowBucketDataType = '';
885
886
887 public function setBuckets($buckets)
888 {
889 $this->buckets = $buckets;
890 }
891 public function getBuckets()
892 {
893 return $this->buckets;
894 }
895 public function setOverflowBucket(Google_Service_CloudMonitoring_PointDistributionOverflowBucket $overflowBucket)
896 {
897 $this->overflowBucket = $overflowBucket;
898 }
899 public function getOverflowBucket()
900 {
901 return $this->overflowBucket;
902 }
903 public function setUnderflowBucket(Google_Service_CloudMonitoring_PointDistributionUnderflowBucket $underflowBucket)
904 {
905 $this->underflowBucket = $underflowBucket;
906 }
907 public function getUnderflowBucket()
908 {
909 return $this->underflowBucket;
910 }
911 }
912
913 class Google_Service_CloudMonitoring_PointDistributionBucket extends Google_Model
914 {
915 protected $internal_gapi_mappings = array(
916 );
917 public $count;
918 public $lowerBound;
919 public $upperBound;
920
921
922 public function setCount($count)
923 {
924 $this->count = $count;
925 }
926 public function getCount()
927 {
928 return $this->count;
929 }
930 public function setLowerBound($lowerBound)
931 {
932 $this->lowerBound = $lowerBound;
933 }
934 public function getLowerBound()
935 {
936 return $this->lowerBound;
937 }
938 public function setUpperBound($upperBound)
939 {
940 $this->upperBound = $upperBound;
941 }
942 public function getUpperBound()
943 {
944 return $this->upperBound;
945 }
946 }
947
948 class Google_Service_CloudMonitoring_PointDistributionOverflowBucket extends Google_Model
949 {
950 protected $internal_gapi_mappings = array(
951 );
952 public $count;
953 public $lowerBound;
954
955
956 public function setCount($count)
957 {
958 $this->count = $count;
959 }
960 public function getCount()
961 {
962 return $this->count;
963 }
964 public function setLowerBound($lowerBound)
965 {
966 $this->lowerBound = $lowerBound;
967 }
968 public function getLowerBound()
969 {
970 return $this->lowerBound;
971 }
972 }
973
974 class Google_Service_CloudMonitoring_PointDistributionUnderflowBucket extends Google_Model
975 {
976 protected $internal_gapi_mappings = array(
977 );
978 public $count;
979 public $upperBound;
980
981
982 public function setCount($count)
983 {
984 $this->count = $count;
985 }
986 public function getCount()
987 {
988 return $this->count;
989 }
990 public function setUpperBound($upperBound)
991 {
992 $this->upperBound = $upperBound;
993 }
994 public function getUpperBound()
995 {
996 return $this->upperBound;
997 }
998 }
999
1000 class Google_Service_CloudMonitoring_Timeseries extends Google_Collection
1001 {
1002 protected $collection_key = 'points';
1003 protected $internal_gapi_mappings = array(
1004 );
1005 protected $pointsType = 'Google_Service_CloudMonitoring_Point';
1006 protected $pointsDataType = 'array';
1007 protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor';
1008 protected $timeseriesDescDataType = '';
1009
1010
1011 public function setPoints($points)
1012 {
1013 $this->points = $points;
1014 }
1015 public function getPoints()
1016 {
1017 return $this->points;
1018 }
1019 public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc)
1020 {
1021 $this->timeseriesDesc = $timeseriesDesc;
1022 }
1023 public function getTimeseriesDesc()
1024 {
1025 return $this->timeseriesDesc;
1026 }
1027 }
1028
1029 class Google_Service_CloudMonitoring_TimeseriesDescriptor extends Google_Model
1030 {
1031 protected $internal_gapi_mappings = array(
1032 );
1033 public $labels;
1034 public $metric;
1035 public $project;
1036
1037
1038 public function setLabels($labels)
1039 {
1040 $this->labels = $labels;
1041 }
1042 public function getLabels()
1043 {
1044 return $this->labels;
1045 }
1046 public function setMetric($metric)
1047 {
1048 $this->metric = $metric;
1049 }
1050 public function getMetric()
1051 {
1052 return $this->metric;
1053 }
1054 public function setProject($project)
1055 {
1056 $this->project = $project;
1057 }
1058 public function getProject()
1059 {
1060 return $this->project;
1061 }
1062 }
1063
1064 class Google_Service_CloudMonitoring_TimeseriesDescriptorLabel extends Google_Model
1065 {
1066 protected $internal_gapi_mappings = array(
1067 );
1068 public $key;
1069 public $value;
1070
1071
1072 public function setKey($key)
1073 {
1074 $this->key = $key;
1075 }
1076 public function getKey()
1077 {
1078 return $this->key;
1079 }
1080 public function setValue($value)
1081 {
1082 $this->value = $value;
1083 }
1084 public function getValue()
1085 {
1086 return $this->value;
1087 }
1088 }
1089
1090 class Google_Service_CloudMonitoring_TimeseriesPoint extends Google_Model
1091 {
1092 protected $internal_gapi_mappings = array(
1093 );
1094 protected $pointType = 'Google_Service_CloudMonitoring_Point';
1095 protected $pointDataType = '';
1096 protected $timeseriesDescType = 'Google_Service_CloudMonitoring_TimeseriesDescriptor';
1097 protected $timeseriesDescDataType = '';
1098
1099
1100 public function setPoint(Google_Service_CloudMonitoring_Point $point)
1101 {
1102 $this->point = $point;
1103 }
1104 public function getPoint()
1105 {
1106 return $this->point;
1107 }
1108 public function setTimeseriesDesc(Google_Service_CloudMonitoring_TimeseriesDescriptor $timeseriesDesc)
1109 {
1110 $this->timeseriesDesc = $timeseriesDesc;
1111 }
1112 public function getTimeseriesDesc()
1113 {
1114 return $this->timeseriesDesc;
1115 }
1116 }
1117
1118 class Google_Service_CloudMonitoring_WriteTimeseriesRequest extends Google_Collection
1119 {
1120 protected $collection_key = 'timeseries';
1121 protected $internal_gapi_mappings = array(
1122 );
1123 public $commonLabels;
1124 protected $timeseriesType = 'Google_Service_CloudMonitoring_TimeseriesPoint';
1125 protected $timeseriesDataType = 'array';
1126
1127
1128 public function setCommonLabels($commonLabels)
1129 {
1130 $this->commonLabels = $commonLabels;
1131 }
1132 public function getCommonLabels()
1133 {
1134 return $this->commonLabels;
1135 }
1136 public function setTimeseries($timeseries)
1137 {
1138 $this->timeseries = $timeseries;
1139 }
1140 public function getTimeseries()
1141 {
1142 return $this->timeseries;
1143 }
1144 }
1145
1146 class Google_Service_CloudMonitoring_WriteTimeseriesResponse extends Google_Model
1147 {
1148 protected $internal_gapi_mappings = array(
1149 );
1150 public $kind;
1151
1152
1153 public function setKind($kind)
1154 {
1155 $this->kind = $kind;
1156 }
1157 public function getKind()
1158 {
1159 return $this->kind;
1160 }
1161 }
1162