PluginProbe
Authorizer / 2.6.8
Authorizer v2.6.8
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 / Monitoring.php

Monitoring.php in Authorizer 2.6.8, at vendor/google-api-php-client/src/Google/Service/Monitoring.php

2,076 lines 58.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Copyright 2010 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 /**
19 * Service definition for Monitoring (v3).
20 *
21 * <p>
22 * The Google Monitoring API lets you manage your monitoring data and
23 * configurations.</p>
24 *
25 * <p>
26 * For more information about this service, see the API
27 * <a href="https://cloud.google.com/monitoring/api/" target="_blank">Documentation</a>
28 * </p>
29 *
30 * @author Google, Inc.
31 */
32 class Google_Service_Monitoring extends Google_Service
33 {
34 /** View and manage your data across Google Cloud Platform services. */
35 const CLOUD_PLATFORM =
36 "https://www.googleapis.com/auth/cloud-platform";
37 /** View and write monitoring data for all of your Google and third-party Cloud and API projects. */
38 const MONITORING =
39 "https://www.googleapis.com/auth/monitoring";
40 /** View monitoring data for all of your Google Cloud and third-party projects. */
41 const MONITORING_READ =
42 "https://www.googleapis.com/auth/monitoring.read";
43 /** Publish metric data to your Google Cloud projects. */
44 const MONITORING_WRITE =
45 "https://www.googleapis.com/auth/monitoring.write";
46
47 public $projects_collectdTimeSeries;
48 public $projects_groups;
49 public $projects_groups_members;
50 public $projects_metricDescriptors;
51 public $projects_monitoredResourceDescriptors;
52 public $projects_timeSeries;
53
54
55 /**
56 * Constructs the internal representation of the Monitoring service.
57 *
58 * @param Google_Client $client
59 */
60 public function __construct(Google_Client $client)
61 {
62 parent::__construct($client);
63 $this->rootUrl = 'https://monitoring.googleapis.com/';
64 $this->servicePath = '';
65 $this->version = 'v3';
66 $this->serviceName = 'monitoring';
67
68 $this->projects_collectdTimeSeries = new Google_Service_Monitoring_ProjectsCollectdTimeSeries_Resource(
69 $this,
70 $this->serviceName,
71 'collectdTimeSeries',
72 array(
73 'methods' => array(
74 'create' => array(
75 'path' => 'v3/{+name}/collectdTimeSeries',
76 'httpMethod' => 'POST',
77 'parameters' => array(
78 'name' => array(
79 'location' => 'path',
80 'type' => 'string',
81 'required' => true,
82 ),
83 ),
84 ),
85 )
86 )
87 );
88 $this->projects_groups = new Google_Service_Monitoring_ProjectsGroups_Resource(
89 $this,
90 $this->serviceName,
91 'groups',
92 array(
93 'methods' => array(
94 'create' => array(
95 'path' => 'v3/{+name}/groups',
96 'httpMethod' => 'POST',
97 'parameters' => array(
98 'name' => array(
99 'location' => 'path',
100 'type' => 'string',
101 'required' => true,
102 ),
103 'validateOnly' => array(
104 'location' => 'query',
105 'type' => 'boolean',
106 ),
107 ),
108 ),'delete' => array(
109 'path' => 'v3/{+name}',
110 'httpMethod' => 'DELETE',
111 'parameters' => array(
112 'name' => array(
113 'location' => 'path',
114 'type' => 'string',
115 'required' => true,
116 ),
117 ),
118 ),'get' => array(
119 'path' => 'v3/{+name}',
120 'httpMethod' => 'GET',
121 'parameters' => array(
122 'name' => array(
123 'location' => 'path',
124 'type' => 'string',
125 'required' => true,
126 ),
127 ),
128 ),'list' => array(
129 'path' => 'v3/{+name}/groups',
130 'httpMethod' => 'GET',
131 'parameters' => array(
132 'name' => array(
133 'location' => 'path',
134 'type' => 'string',
135 'required' => true,
136 ),
137 'childrenOfGroup' => array(
138 'location' => 'query',
139 'type' => 'string',
140 ),
141 'ancestorsOfGroup' => array(
142 'location' => 'query',
143 'type' => 'string',
144 ),
145 'descendantsOfGroup' => array(
146 'location' => 'query',
147 'type' => 'string',
148 ),
149 'pageSize' => array(
150 'location' => 'query',
151 'type' => 'integer',
152 ),
153 'pageToken' => array(
154 'location' => 'query',
155 'type' => 'string',
156 ),
157 ),
158 ),'update' => array(
159 'path' => 'v3/{+name}',
160 'httpMethod' => 'PUT',
161 'parameters' => array(
162 'name' => array(
163 'location' => 'path',
164 'type' => 'string',
165 'required' => true,
166 ),
167 'validateOnly' => array(
168 'location' => 'query',
169 'type' => 'boolean',
170 ),
171 ),
172 ),
173 )
174 )
175 );
176 $this->projects_groups_members = new Google_Service_Monitoring_ProjectsGroupsMembers_Resource(
177 $this,
178 $this->serviceName,
179 'members',
180 array(
181 'methods' => array(
182 'list' => array(
183 'path' => 'v3/{+name}/members',
184 'httpMethod' => 'GET',
185 'parameters' => array(
186 'name' => array(
187 'location' => 'path',
188 'type' => 'string',
189 'required' => true,
190 ),
191 'pageSize' => array(
192 'location' => 'query',
193 'type' => 'integer',
194 ),
195 'pageToken' => array(
196 'location' => 'query',
197 'type' => 'string',
198 ),
199 'filter' => array(
200 'location' => 'query',
201 'type' => 'string',
202 ),
203 'interval.endTime' => array(
204 'location' => 'query',
205 'type' => 'string',
206 ),
207 'interval.startTime' => array(
208 'location' => 'query',
209 'type' => 'string',
210 ),
211 ),
212 ),
213 )
214 )
215 );
216 $this->projects_metricDescriptors = new Google_Service_Monitoring_ProjectsMetricDescriptors_Resource(
217 $this,
218 $this->serviceName,
219 'metricDescriptors',
220 array(
221 'methods' => array(
222 'create' => array(
223 'path' => 'v3/{+name}/metricDescriptors',
224 'httpMethod' => 'POST',
225 'parameters' => array(
226 'name' => array(
227 'location' => 'path',
228 'type' => 'string',
229 'required' => true,
230 ),
231 ),
232 ),'delete' => array(
233 'path' => 'v3/{+name}',
234 'httpMethod' => 'DELETE',
235 'parameters' => array(
236 'name' => array(
237 'location' => 'path',
238 'type' => 'string',
239 'required' => true,
240 ),
241 ),
242 ),'get' => array(
243 'path' => 'v3/{+name}',
244 'httpMethod' => 'GET',
245 'parameters' => array(
246 'name' => array(
247 'location' => 'path',
248 'type' => 'string',
249 'required' => true,
250 ),
251 ),
252 ),'list' => array(
253 'path' => 'v3/{+name}/metricDescriptors',
254 'httpMethod' => 'GET',
255 'parameters' => array(
256 'name' => array(
257 'location' => 'path',
258 'type' => 'string',
259 'required' => true,
260 ),
261 'filter' => array(
262 'location' => 'query',
263 'type' => 'string',
264 ),
265 'pageSize' => array(
266 'location' => 'query',
267 'type' => 'integer',
268 ),
269 'pageToken' => array(
270 'location' => 'query',
271 'type' => 'string',
272 ),
273 ),
274 ),
275 )
276 )
277 );
278 $this->projects_monitoredResourceDescriptors = new Google_Service_Monitoring_ProjectsMonitoredResourceDescriptors_Resource(
279 $this,
280 $this->serviceName,
281 'monitoredResourceDescriptors',
282 array(
283 'methods' => array(
284 'get' => array(
285 'path' => 'v3/{+name}',
286 'httpMethod' => 'GET',
287 'parameters' => array(
288 'name' => array(
289 'location' => 'path',
290 'type' => 'string',
291 'required' => true,
292 ),
293 ),
294 ),'list' => array(
295 'path' => 'v3/{+name}/monitoredResourceDescriptors',
296 'httpMethod' => 'GET',
297 'parameters' => array(
298 'name' => array(
299 'location' => 'path',
300 'type' => 'string',
301 'required' => true,
302 ),
303 'filter' => array(
304 'location' => 'query',
305 'type' => 'string',
306 ),
307 'pageSize' => array(
308 'location' => 'query',
309 'type' => 'integer',
310 ),
311 'pageToken' => array(
312 'location' => 'query',
313 'type' => 'string',
314 ),
315 ),
316 ),
317 )
318 )
319 );
320 $this->projects_timeSeries = new Google_Service_Monitoring_ProjectsTimeSeries_Resource(
321 $this,
322 $this->serviceName,
323 'timeSeries',
324 array(
325 'methods' => array(
326 'create' => array(
327 'path' => 'v3/{+name}/timeSeries',
328 'httpMethod' => 'POST',
329 'parameters' => array(
330 'name' => array(
331 'location' => 'path',
332 'type' => 'string',
333 'required' => true,
334 ),
335 ),
336 ),'list' => array(
337 'path' => 'v3/{+name}/timeSeries',
338 'httpMethod' => 'GET',
339 'parameters' => array(
340 'name' => array(
341 'location' => 'path',
342 'type' => 'string',
343 'required' => true,
344 ),
345 'filter' => array(
346 'location' => 'query',
347 'type' => 'string',
348 ),
349 'interval.endTime' => array(
350 'location' => 'query',
351 'type' => 'string',
352 ),
353 'interval.startTime' => array(
354 'location' => 'query',
355 'type' => 'string',
356 ),
357 'aggregation.alignmentPeriod' => array(
358 'location' => 'query',
359 'type' => 'string',
360 ),
361 'aggregation.perSeriesAligner' => array(
362 'location' => 'query',
363 'type' => 'string',
364 ),
365 'aggregation.crossSeriesReducer' => array(
366 'location' => 'query',
367 'type' => 'string',
368 ),
369 'aggregation.groupByFields' => array(
370 'location' => 'query',
371 'type' => 'string',
372 'repeated' => true,
373 ),
374 'orderBy' => array(
375 'location' => 'query',
376 'type' => 'string',
377 ),
378 'view' => array(
379 'location' => 'query',
380 'type' => 'string',
381 ),
382 'pageSize' => array(
383 'location' => 'query',
384 'type' => 'integer',
385 ),
386 'pageToken' => array(
387 'location' => 'query',
388 'type' => 'string',
389 ),
390 ),
391 ),
392 )
393 )
394 );
395 }
396 }
397
398
399 /**
400 * The "projects" collection of methods.
401 * Typical usage is:
402 * <code>
403 * $monitoringService = new Google_Service_Monitoring(...);
404 * $projects = $monitoringService->projects;
405 * </code>
406 */
407 class Google_Service_Monitoring_Projects_Resource extends Google_Service_Resource
408 {
409 }
410
411 /**
412 * The "collectdTimeSeries" collection of methods.
413 * Typical usage is:
414 * <code>
415 * $monitoringService = new Google_Service_Monitoring(...);
416 * $collectdTimeSeries = $monitoringService->collectdTimeSeries;
417 * </code>
418 */
419 class Google_Service_Monitoring_ProjectsCollectdTimeSeries_Resource extends Google_Service_Resource
420 {
421
422 /**
423 * Creates a new time series with the given data points. This method is only for
424 * use in `collectd`-related code, including the Google Monitoring Agent. See
425 * [google.monitoring.v3.MetricService.CreateTimeSeries] instead.
426 * (collectdTimeSeries.create)
427 *
428 * @param string $name The project in which to create the time series. The
429 * format is `"projects/PROJECT_ID_OR_NUMBER"`.
430 * @param Google_CreateCollectdTimeSeriesRequest $postBody
431 * @param array $optParams Optional parameters.
432 * @return Google_Service_Monitoring_Empty
433 */
434 public function create($name, Google_Service_Monitoring_CreateCollectdTimeSeriesRequest $postBody, $optParams = array())
435 {
436 $params = array('name' => $name, 'postBody' => $postBody);
437 $params = array_merge($params, $optParams);
438 return $this->call('create', array($params), "Google_Service_Monitoring_Empty");
439 }
440 }
441 /**
442 * The "groups" collection of methods.
443 * Typical usage is:
444 * <code>
445 * $monitoringService = new Google_Service_Monitoring(...);
446 * $groups = $monitoringService->groups;
447 * </code>
448 */
449 class Google_Service_Monitoring_ProjectsGroups_Resource extends Google_Service_Resource
450 {
451
452 /**
453 * Creates a new group. (groups.create)
454 *
455 * @param string $name The project in which to create the group. The format is
456 * `"projects/{project_id_or_number}"`.
457 * @param Google_Group $postBody
458 * @param array $optParams Optional parameters.
459 *
460 * @opt_param bool validateOnly If true, validate this request but do not create
461 * the group.
462 * @return Google_Service_Monitoring_Group
463 */
464 public function create($name, Google_Service_Monitoring_Group $postBody, $optParams = array())
465 {
466 $params = array('name' => $name, 'postBody' => $postBody);
467 $params = array_merge($params, $optParams);
468 return $this->call('create', array($params), "Google_Service_Monitoring_Group");
469 }
470
471 /**
472 * Deletes an existing group. (groups.delete)
473 *
474 * @param string $name The group to delete. The format is
475 * `"projects/{project_id_or_number}/groups/{group_id}"`.
476 * @param array $optParams Optional parameters.
477 * @return Google_Service_Monitoring_Empty
478 */
479 public function delete($name, $optParams = array())
480 {
481 $params = array('name' => $name);
482 $params = array_merge($params, $optParams);
483 return $this->call('delete', array($params), "Google_Service_Monitoring_Empty");
484 }
485
486 /**
487 * Gets a single group. (groups.get)
488 *
489 * @param string $name The group to retrieve. The format is
490 * `"projects/{project_id_or_number}/groups/{group_id}"`.
491 * @param array $optParams Optional parameters.
492 * @return Google_Service_Monitoring_Group
493 */
494 public function get($name, $optParams = array())
495 {
496 $params = array('name' => $name);
497 $params = array_merge($params, $optParams);
498 return $this->call('get', array($params), "Google_Service_Monitoring_Group");
499 }
500
501 /**
502 * Lists the existing groups. (groups.listProjectsGroups)
503 *
504 * @param string $name The project whose groups are to be listed. The format is
505 * `"projects/{project_id_or_number}"`.
506 * @param array $optParams Optional parameters.
507 *
508 * @opt_param string childrenOfGroup A group name:
509 * `"projects/{project_id_or_number}/groups/{group_id}"`. Returns groups whose
510 * `parentName` field contains the group name. If no groups have this parent,
511 * the results are empty.
512 * @opt_param string ancestorsOfGroup A group name:
513 * `"projects/{project_id_or_number}/groups/{group_id}"`. Returns groups that
514 * are ancestors of the specified group. The groups are returned in order,
515 * starting with the immediate parent and ending with the most distant ancestor.
516 * If the specified group has no immediate parent, the results are empty.
517 * @opt_param string descendantsOfGroup A group name:
518 * `"projects/{project_id_or_number}/groups/{group_id}"`. Returns the
519 * descendants of the specified group. This is a superset of the results
520 * returned by the `childrenOfGroup` filter, and includes children-of-children,
521 * and so forth.
522 * @opt_param int pageSize A positive number that is the maximum number of
523 * results to return.
524 * @opt_param string pageToken If this field is not empty then it must contain
525 * the `nextPageToken` value returned by a previous call to this method. Using
526 * this field causes the method to return additional results from the previous
527 * method call.
528 * @return Google_Service_Monitoring_ListGroupsResponse
529 */
530 public function listProjectsGroups($name, $optParams = array())
531 {
532 $params = array('name' => $name);
533 $params = array_merge($params, $optParams);
534 return $this->call('list', array($params), "Google_Service_Monitoring_ListGroupsResponse");
535 }
536
537 /**
538 * Updates an existing group. You can change any group attributes except `name`.
539 * (groups.update)
540 *
541 * @param string $name The name of this group. The format is
542 * `"projects/{project_id_or_number}/groups/{group_id}"`. When creating a group,
543 * this field is ignored and a new name is created consisting of the project
544 * specified in the call to `CreateGroup` and a unique `{group_id}` that is
545 * generated automatically. @OutputOnly
546 * @param Google_Group $postBody
547 * @param array $optParams Optional parameters.
548 *
549 * @opt_param bool validateOnly If true, validate this request but do not update
550 * the existing group.
551 * @return Google_Service_Monitoring_Group
552 */
553 public function update($name, Google_Service_Monitoring_Group $postBody, $optParams = array())
554 {
555 $params = array('name' => $name, 'postBody' => $postBody);
556 $params = array_merge($params, $optParams);
557 return $this->call('update', array($params), "Google_Service_Monitoring_Group");
558 }
559 }
560
561 /**
562 * The "members" collection of methods.
563 * Typical usage is:
564 * <code>
565 * $monitoringService = new Google_Service_Monitoring(...);
566 * $members = $monitoringService->members;
567 * </code>
568 */
569 class Google_Service_Monitoring_ProjectsGroupsMembers_Resource extends Google_Service_Resource
570 {
571
572 /**
573 * Lists the monitored resources that are members of a group.
574 * (members.listProjectsGroupsMembers)
575 *
576 * @param string $name The group whose members are listed. The format is
577 * `"projects/{project_id_or_number}/groups/{group_id}"`.
578 * @param array $optParams Optional parameters.
579 *
580 * @opt_param int pageSize A positive number that is the maximum number of
581 * results to return.
582 * @opt_param string pageToken If this field is not empty then it must contain
583 * the `nextPageToken` value returned by a previous call to this method. Using
584 * this field causes the method to return additional results from the previous
585 * method call.
586 * @opt_param string filter An optional [list
587 * filter](/monitoring/api/learn_more#filtering) describing the members to be
588 * returned. The filter may reference the type, labels, and metadata of
589 * monitored resources that comprise the group. For example, to return only
590 * resources representing Compute Engine VM instances, use this filter:
591 * resource.type = "gce_instance"
592 * @opt_param string interval.endTime (required) The end of the interval. The
593 * interval includes this time.
594 * @opt_param string interval.startTime (optional) If omitted, the interval is a
595 * point in time, `endTime`. If `startTime` is present, it must be earlier than
596 * (less than) `endTime`. The interval begins after `startTime`—it does not
597 * include `startTime`.
598 * @return Google_Service_Monitoring_ListGroupMembersResponse
599 */
600 public function listProjectsGroupsMembers($name, $optParams = array())
601 {
602 $params = array('name' => $name);
603 $params = array_merge($params, $optParams);
604 return $this->call('list', array($params), "Google_Service_Monitoring_ListGroupMembersResponse");
605 }
606 }
607 /**
608 * The "metricDescriptors" collection of methods.
609 * Typical usage is:
610 * <code>
611 * $monitoringService = new Google_Service_Monitoring(...);
612 * $metricDescriptors = $monitoringService->metricDescriptors;
613 * </code>
614 */
615 class Google_Service_Monitoring_ProjectsMetricDescriptors_Resource extends Google_Service_Resource
616 {
617
618 /**
619 * Creates a new metric descriptor. User-created metric descriptors define
620 * [custom metrics](/monitoring/custom-metrics). (metricDescriptors.create)
621 *
622 * @param string $name The project on which to execute the request. The format
623 * is `"projects/{project_id_or_number}"`.
624 * @param Google_MetricDescriptor $postBody
625 * @param array $optParams Optional parameters.
626 * @return Google_Service_Monitoring_MetricDescriptor
627 */
628 public function create($name, Google_Service_Monitoring_MetricDescriptor $postBody, $optParams = array())
629 {
630 $params = array('name' => $name, 'postBody' => $postBody);
631 $params = array_merge($params, $optParams);
632 return $this->call('create', array($params), "Google_Service_Monitoring_MetricDescriptor");
633 }
634
635 /**
636 * Deletes a metric descriptor. Only user-created [custom metrics](/monitoring
637 * /custom-metrics) can be deleted. (metricDescriptors.delete)
638 *
639 * @param string $name The metric descriptor on which to execute the request.
640 * The format is
641 * `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. An example
642 * of `{metric_id}` is: `"custom.googleapis.com/my_test_metric"`.
643 * @param array $optParams Optional parameters.
644 * @return Google_Service_Monitoring_Empty
645 */
646 public function delete($name, $optParams = array())
647 {
648 $params = array('name' => $name);
649 $params = array_merge($params, $optParams);
650 return $this->call('delete', array($params), "Google_Service_Monitoring_Empty");
651 }
652
653 /**
654 * Gets a single metric descriptor. (metricDescriptors.get)
655 *
656 * @param string $name The metric descriptor on which to execute the request.
657 * The format is
658 * `"projects/{project_id_or_number}/metricDescriptors/{metric_id}"`. An example
659 * value of `{metric_id}` is
660 * `"compute.googleapis.com/instance/disk/read_bytes_count"`.
661 * @param array $optParams Optional parameters.
662 * @return Google_Service_Monitoring_MetricDescriptor
663 */
664 public function get($name, $optParams = array())
665 {
666 $params = array('name' => $name);
667 $params = array_merge($params, $optParams);
668 return $this->call('get', array($params), "Google_Service_Monitoring_MetricDescriptor");
669 }
670
671 /**
672 * Lists metric descriptors that match a filter.
673 * (metricDescriptors.listProjectsMetricDescriptors)
674 *
675 * @param string $name The project on which to execute the request. The format
676 * is `"projects/{project_id_or_number}"`.
677 * @param array $optParams Optional parameters.
678 *
679 * @opt_param string filter If this field is empty, all custom and system-
680 * defined metric descriptors are returned. Otherwise, the
681 * [filter](/monitoring/api/v3/filters) specifies which metric descriptors are
682 * to be returned. For example, the following filter matches all [custom
683 * metrics](/monitoring/custom-metrics): metric.type =
684 * starts_with("custom.googleapis.com/")
685 * @opt_param int pageSize A positive number that is the maximum number of
686 * results to return.
687 * @opt_param string pageToken If this field is not empty then it must contain
688 * the `nextPageToken` value returned by a previous call to this method. Using
689 * this field causes the method to return additional results from the previous
690 * method call.
691 * @return Google_Service_Monitoring_ListMetricDescriptorsResponse
692 */
693 public function listProjectsMetricDescriptors($name, $optParams = array())
694 {
695 $params = array('name' => $name);
696 $params = array_merge($params, $optParams);
697 return $this->call('list', array($params), "Google_Service_Monitoring_ListMetricDescriptorsResponse");
698 }
699 }
700 /**
701 * The "monitoredResourceDescriptors" collection of methods.
702 * Typical usage is:
703 * <code>
704 * $monitoringService = new Google_Service_Monitoring(...);
705 * $monitoredResourceDescriptors = $monitoringService->monitoredResourceDescriptors;
706 * </code>
707 */
708 class Google_Service_Monitoring_ProjectsMonitoredResourceDescriptors_Resource extends Google_Service_Resource
709 {
710
711 /**
712 * Gets a single monitored resource descriptor.
713 * (monitoredResourceDescriptors.get)
714 *
715 * @param string $name The monitored resource descriptor to get. The format is `
716 * "projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}
717 * "`. The `{resource_type}` is a predefined type, such as `cloudsql_database`.
718 * @param array $optParams Optional parameters.
719 * @return Google_Service_Monitoring_MonitoredResourceDescriptor
720 */
721 public function get($name, $optParams = array())
722 {
723 $params = array('name' => $name);
724 $params = array_merge($params, $optParams);
725 return $this->call('get', array($params), "Google_Service_Monitoring_MonitoredResourceDescriptor");
726 }
727
728 /**
729 * Lists monitored resource descriptors that match a filter.
730 * (monitoredResourceDescriptors.listProjectsMonitoredResourceDescriptors)
731 *
732 * @param string $name The project on which to execute the request. The format
733 * is `"projects/{project_id_or_number}"`.
734 * @param array $optParams Optional parameters.
735 *
736 * @opt_param string filter An optional [filter](/monitoring/api/v3/filters)
737 * describing the descriptors to be returned. The filter can reference the
738 * descriptor's type and labels. For example, the following filter returns only
739 * Google Compute Engine descriptors that have an `id` label: resource.type =
740 * starts_with("gce_") AND resource.label:id
741 * @opt_param int pageSize A positive number that is the maximum number of
742 * results to return.
743 * @opt_param string pageToken If this field is not empty then it must contain
744 * the `nextPageToken` value returned by a previous call to this method. Using
745 * this field causes the method to return additional results from the previous
746 * method call.
747 * @return Google_Service_Monitoring_ListMonitoredResourceDescriptorsResponse
748 */
749 public function listProjectsMonitoredResourceDescriptors($name, $optParams = array())
750 {
751 $params = array('name' => $name);
752 $params = array_merge($params, $optParams);
753 return $this->call('list', array($params), "Google_Service_Monitoring_ListMonitoredResourceDescriptorsResponse");
754 }
755 }
756 /**
757 * The "timeSeries" collection of methods.
758 * Typical usage is:
759 * <code>
760 * $monitoringService = new Google_Service_Monitoring(...);
761 * $timeSeries = $monitoringService->timeSeries;
762 * </code>
763 */
764 class Google_Service_Monitoring_ProjectsTimeSeries_Resource extends Google_Service_Resource
765 {
766
767 /**
768 * Creates or adds data to one or more time series. The response is empty if all
769 * time series in the request were written. If any time series could not be
770 * written, a corresponding failure message is included in the error response.
771 * (timeSeries.create)
772 *
773 * @param string $name The project on which to execute the request. The format
774 * is `"projects/{project_id_or_number}"`.
775 * @param Google_CreateTimeSeriesRequest $postBody
776 * @param array $optParams Optional parameters.
777 * @return Google_Service_Monitoring_Empty
778 */
779 public function create($name, Google_Service_Monitoring_CreateTimeSeriesRequest $postBody, $optParams = array())
780 {
781 $params = array('name' => $name, 'postBody' => $postBody);
782 $params = array_merge($params, $optParams);
783 return $this->call('create', array($params), "Google_Service_Monitoring_Empty");
784 }
785
786 /**
787 * Lists time series that match a filter. (timeSeries.listProjectsTimeSeries)
788 *
789 * @param string $name The project on which to execute the request. The format
790 * is "projects/{project_id_or_number}".
791 * @param array $optParams Optional parameters.
792 *
793 * @opt_param string filter A [monitoring filter](/monitoring/api/v3/filters)
794 * that specifies which time series should be returned. The filter must specify
795 * a single metric type, and can additionally specify metric labels and other
796 * information. For example: metric.type =
797 * "compute.googleapis.com/instance/cpu/usage_time" AND
798 * metric.label.instance_name = "my-instance-name"
799 * @opt_param string interval.endTime (required) The end of the interval. The
800 * interval includes this time.
801 * @opt_param string interval.startTime (optional) If omitted, the interval is a
802 * point in time, `endTime`. If `startTime` is present, it must be earlier than
803 * (less than) `endTime`. The interval begins after `startTime`—it does not
804 * include `startTime`.
805 * @opt_param string aggregation.alignmentPeriod The alignment period for
806 * per-[time series](TimeSeries) alignment. If present, `alignmentPeriod` must
807 * be at least 60 seconds. After per-time series alignment, each time series
808 * will contain data points only on the period boundaries. If `perSeriesAligner`
809 * is not specified or equals `ALIGN_NONE`, then this field is ignored. If
810 * `perSeriesAligner` is specified and does not equal `ALIGN_NONE`, then this
811 * field must be defined; otherwise an error is returned.
812 * @opt_param string aggregation.perSeriesAligner The approach to be used to
813 * align individual time series. Not all alignment functions may be applied to
814 * all time series, depending on the metric type and value type of the original
815 * time series. Alignment may change the metric type or the value type of the
816 * time series. Time series data must be aligned in order to perform cross-time
817 * series reduction. If `crossSeriesReducer` is specified, then
818 * `perSeriesAligner` must be specified and not equal `ALIGN_NONE` and
819 * `alignmentPeriod` must be specified; otherwise, an error is returned.
820 * @opt_param string aggregation.crossSeriesReducer The approach to be used to
821 * combine time series. Not all reducer functions may be applied to all time
822 * series, depending on the metric type and the value type of the original time
823 * series. Reduction may change the metric type of value type of the time
824 * series. Time series data must be aligned in order to perform cross-time
825 * series reduction. If `crossSeriesReducer` is specified, then
826 * `perSeriesAligner` must be specified and not equal `ALIGN_NONE` and
827 * `alignmentPeriod` must be specified; otherwise, an error is returned.
828 * @opt_param string aggregation.groupByFields The set of fields to preserve
829 * when `crossSeriesReducer` is specified. The `groupByFields` determine how the
830 * time series are partitioned into subsets prior to applying the aggregation
831 * function. Each subset contains time series that have the same value for each
832 * of the grouping fields. Each individual time series is a member of exactly
833 * one subset. The `crossSeriesReducer` is applied to each subset of time
834 * series. Fields not specified in `groupByFields` are aggregated away. If
835 * `groupByFields` is not specified, the time series are aggregated into a
836 * single output time series. If `crossSeriesReducer` is not defined, this field
837 * is ignored.
838 * @opt_param string orderBy Specifies the order in which the points of the time
839 * series should be returned. By default, results are not ordered. Currently,
840 * this field must be left blank.
841 * @opt_param string view Specifies which information is returned about the time
842 * series.
843 * @opt_param int pageSize A positive number that is the maximum number of
844 * results to return. When `view` field sets to `FULL`, it limits the number of
845 * `Points` server will return; if `view` field is `HEADERS`, it limits the
846 * number of `TimeSeries` server will return.
847 * @opt_param string pageToken If this field is not empty then it must contain
848 * the `nextPageToken` value returned by a previous call to this method. Using
849 * this field causes the method to return additional results from the previous
850 * method call.
851 * @return Google_Service_Monitoring_ListTimeSeriesResponse
852 */
853 public function listProjectsTimeSeries($name, $optParams = array())
854 {
855 $params = array('name' => $name);
856 $params = array_merge($params, $optParams);
857 return $this->call('list', array($params), "Google_Service_Monitoring_ListTimeSeriesResponse");
858 }
859 }
860
861
862
863
864 class Google_Service_Monitoring_BucketOptions extends Google_Model
865 {
866 protected $internal_gapi_mappings = array(
867 );
868 protected $explicitBucketsType = 'Google_Service_Monitoring_Explicit';
869 protected $explicitBucketsDataType = '';
870 protected $exponentialBucketsType = 'Google_Service_Monitoring_Exponential';
871 protected $exponentialBucketsDataType = '';
872 protected $linearBucketsType = 'Google_Service_Monitoring_Linear';
873 protected $linearBucketsDataType = '';
874
875
876 public function setExplicitBuckets(Google_Service_Monitoring_Explicit $explicitBuckets)
877 {
878 $this->explicitBuckets = $explicitBuckets;
879 }
880 public function getExplicitBuckets()
881 {
882 return $this->explicitBuckets;
883 }
884 public function setExponentialBuckets(Google_Service_Monitoring_Exponential $exponentialBuckets)
885 {
886 $this->exponentialBuckets = $exponentialBuckets;
887 }
888 public function getExponentialBuckets()
889 {
890 return $this->exponentialBuckets;
891 }
892 public function setLinearBuckets(Google_Service_Monitoring_Linear $linearBuckets)
893 {
894 $this->linearBuckets = $linearBuckets;
895 }
896 public function getLinearBuckets()
897 {
898 return $this->linearBuckets;
899 }
900 }
901
902 class Google_Service_Monitoring_CollectdPayload extends Google_Collection
903 {
904 protected $collection_key = 'values';
905 protected $internal_gapi_mappings = array(
906 );
907 public $endTime;
908 protected $metadataType = 'Google_Service_Monitoring_TypedValue';
909 protected $metadataDataType = 'map';
910 public $plugin;
911 public $pluginInstance;
912 public $startTime;
913 public $type;
914 public $typeInstance;
915 protected $valuesType = 'Google_Service_Monitoring_CollectdValue';
916 protected $valuesDataType = 'array';
917
918
919 public function setEndTime($endTime)
920 {
921 $this->endTime = $endTime;
922 }
923 public function getEndTime()
924 {
925 return $this->endTime;
926 }
927 public function setMetadata($metadata)
928 {
929 $this->metadata = $metadata;
930 }
931 public function getMetadata()
932 {
933 return $this->metadata;
934 }
935 public function setPlugin($plugin)
936 {
937 $this->plugin = $plugin;
938 }
939 public function getPlugin()
940 {
941 return $this->plugin;
942 }
943 public function setPluginInstance($pluginInstance)
944 {
945 $this->pluginInstance = $pluginInstance;
946 }
947 public function getPluginInstance()
948 {
949 return $this->pluginInstance;
950 }
951 public function setStartTime($startTime)
952 {
953 $this->startTime = $startTime;
954 }
955 public function getStartTime()
956 {
957 return $this->startTime;
958 }
959 public function setType($type)
960 {
961 $this->type = $type;
962 }
963 public function getType()
964 {
965 return $this->type;
966 }
967 public function setTypeInstance($typeInstance)
968 {
969 $this->typeInstance = $typeInstance;
970 }
971 public function getTypeInstance()
972 {
973 return $this->typeInstance;
974 }
975 public function setValues($values)
976 {
977 $this->values = $values;
978 }
979 public function getValues()
980 {
981 return $this->values;
982 }
983 }
984
985 class Google_Service_Monitoring_CollectdPayloadMetadata extends Google_Model
986 {
987 }
988
989 class Google_Service_Monitoring_CollectdValue extends Google_Model
990 {
991 protected $internal_gapi_mappings = array(
992 );
993 public $dataSourceName;
994 public $dataSourceType;
995 protected $valueType = 'Google_Service_Monitoring_TypedValue';
996 protected $valueDataType = '';
997
998
999 public function setDataSourceName($dataSourceName)
1000 {
1001 $this->dataSourceName = $dataSourceName;
1002 }
1003 public function getDataSourceName()
1004 {
1005 return $this->dataSourceName;
1006 }
1007 public function setDataSourceType($dataSourceType)
1008 {
1009 $this->dataSourceType = $dataSourceType;
1010 }
1011 public function getDataSourceType()
1012 {
1013 return $this->dataSourceType;
1014 }
1015 public function setValue(Google_Service_Monitoring_TypedValue $value)
1016 {
1017 $this->value = $value;
1018 }
1019 public function getValue()
1020 {
1021 return $this->value;
1022 }
1023 }
1024
1025 class Google_Service_Monitoring_CreateCollectdTimeSeriesRequest extends Google_Collection
1026 {
1027 protected $collection_key = 'collectdPayloads';
1028 protected $internal_gapi_mappings = array(
1029 );
1030 protected $collectdPayloadsType = 'Google_Service_Monitoring_CollectdPayload';
1031 protected $collectdPayloadsDataType = 'array';
1032 public $collectdVersion;
1033 protected $resourceType = 'Google_Service_Monitoring_MonitoredResource';
1034 protected $resourceDataType = '';
1035
1036
1037 public function setCollectdPayloads($collectdPayloads)
1038 {
1039 $this->collectdPayloads = $collectdPayloads;
1040 }
1041 public function getCollectdPayloads()
1042 {
1043 return $this->collectdPayloads;
1044 }
1045 public function setCollectdVersion($collectdVersion)
1046 {
1047 $this->collectdVersion = $collectdVersion;
1048 }
1049 public function getCollectdVersion()
1050 {
1051 return $this->collectdVersion;
1052 }
1053 public function setResource(Google_Service_Monitoring_MonitoredResource $resource)
1054 {
1055 $this->resource = $resource;
1056 }
1057 public function getResource()
1058 {
1059 return $this->resource;
1060 }
1061 }
1062
1063 class Google_Service_Monitoring_CreateTimeSeriesRequest extends Google_Collection
1064 {
1065 protected $collection_key = 'timeSeries';
1066 protected $internal_gapi_mappings = array(
1067 );
1068 protected $timeSeriesType = 'Google_Service_Monitoring_TimeSeries';
1069 protected $timeSeriesDataType = 'array';
1070
1071
1072 public function setTimeSeries($timeSeries)
1073 {
1074 $this->timeSeries = $timeSeries;
1075 }
1076 public function getTimeSeries()
1077 {
1078 return $this->timeSeries;
1079 }
1080 }
1081
1082 class Google_Service_Monitoring_Distribution extends Google_Collection
1083 {
1084 protected $collection_key = 'bucketCounts';
1085 protected $internal_gapi_mappings = array(
1086 );
1087 public $bucketCounts;
1088 protected $bucketOptionsType = 'Google_Service_Monitoring_BucketOptions';
1089 protected $bucketOptionsDataType = '';
1090 public $count;
1091 public $mean;
1092 protected $rangeType = 'Google_Service_Monitoring_Range';
1093 protected $rangeDataType = '';
1094 public $sumOfSquaredDeviation;
1095
1096
1097 public function setBucketCounts($bucketCounts)
1098 {
1099 $this->bucketCounts = $bucketCounts;
1100 }
1101 public function getBucketCounts()
1102 {
1103 return $this->bucketCounts;
1104 }
1105 public function setBucketOptions(Google_Service_Monitoring_BucketOptions $bucketOptions)
1106 {
1107 $this->bucketOptions = $bucketOptions;
1108 }
1109 public function getBucketOptions()
1110 {
1111 return $this->bucketOptions;
1112 }
1113 public function setCount($count)
1114 {
1115 $this->count = $count;
1116 }
1117 public function getCount()
1118 {
1119 return $this->count;
1120 }
1121 public function setMean($mean)
1122 {
1123 $this->mean = $mean;
1124 }
1125 public function getMean()
1126 {
1127 return $this->mean;
1128 }
1129 public function setRange(Google_Service_Monitoring_Range $range)
1130 {
1131 $this->range = $range;
1132 }
1133 public function getRange()
1134 {
1135 return $this->range;
1136 }
1137 public function setSumOfSquaredDeviation($sumOfSquaredDeviation)
1138 {
1139 $this->sumOfSquaredDeviation = $sumOfSquaredDeviation;
1140 }
1141 public function getSumOfSquaredDeviation()
1142 {
1143 return $this->sumOfSquaredDeviation;
1144 }
1145 }
1146
1147 class Google_Service_Monitoring_Empty extends Google_Model
1148 {
1149 }
1150
1151 class Google_Service_Monitoring_Explicit extends Google_Collection
1152 {
1153 protected $collection_key = 'bounds';
1154 protected $internal_gapi_mappings = array(
1155 );
1156 public $bounds;
1157
1158
1159 public function setBounds($bounds)
1160 {
1161 $this->bounds = $bounds;
1162 }
1163 public function getBounds()
1164 {
1165 return $this->bounds;
1166 }
1167 }
1168
1169 class Google_Service_Monitoring_Exponential extends Google_Model
1170 {
1171 protected $internal_gapi_mappings = array(
1172 );
1173 public $growthFactor;
1174 public $numFiniteBuckets;
1175 public $scale;
1176
1177
1178 public function setGrowthFactor($growthFactor)
1179 {
1180 $this->growthFactor = $growthFactor;
1181 }
1182 public function getGrowthFactor()
1183 {
1184 return $this->growthFactor;
1185 }
1186 public function setNumFiniteBuckets($numFiniteBuckets)
1187 {
1188 $this->numFiniteBuckets = $numFiniteBuckets;
1189 }
1190 public function getNumFiniteBuckets()
1191 {
1192 return $this->numFiniteBuckets;
1193 }
1194 public function setScale($scale)
1195 {
1196 $this->scale = $scale;
1197 }
1198 public function getScale()
1199 {
1200 return $this->scale;
1201 }
1202 }
1203
1204 class Google_Service_Monitoring_Field extends Google_Collection
1205 {
1206 protected $collection_key = 'options';
1207 protected $internal_gapi_mappings = array(
1208 );
1209 public $cardinality;
1210 public $defaultValue;
1211 public $jsonName;
1212 public $kind;
1213 public $name;
1214 public $number;
1215 public $oneofIndex;
1216 protected $optionsType = 'Google_Service_Monitoring_Option';
1217 protected $optionsDataType = 'array';
1218 public $packed;
1219 public $typeUrl;
1220
1221
1222 public function setCardinality($cardinality)
1223 {
1224 $this->cardinality = $cardinality;
1225 }
1226 public function getCardinality()
1227 {
1228 return $this->cardinality;
1229 }
1230 public function setDefaultValue($defaultValue)
1231 {
1232 $this->defaultValue = $defaultValue;
1233 }
1234 public function getDefaultValue()
1235 {
1236 return $this->defaultValue;
1237 }
1238 public function setJsonName($jsonName)
1239 {
1240 $this->jsonName = $jsonName;
1241 }
1242 public function getJsonName()
1243 {
1244 return $this->jsonName;
1245 }
1246 public function setKind($kind)
1247 {
1248 $this->kind = $kind;
1249 }
1250 public function getKind()
1251 {
1252 return $this->kind;
1253 }
1254 public function setName($name)
1255 {
1256 $this->name = $name;
1257 }
1258 public function getName()
1259 {
1260 return $this->name;
1261 }
1262 public function setNumber($number)
1263 {
1264 $this->number = $number;
1265 }
1266 public function getNumber()
1267 {
1268 return $this->number;
1269 }
1270 public function setOneofIndex($oneofIndex)
1271 {
1272 $this->oneofIndex = $oneofIndex;
1273 }
1274 public function getOneofIndex()
1275 {
1276 return $this->oneofIndex;
1277 }
1278 public function setOptions($options)
1279 {
1280 $this->options = $options;
1281 }
1282 public function getOptions()
1283 {
1284 return $this->options;
1285 }
1286 public function setPacked($packed)
1287 {
1288 $this->packed = $packed;
1289 }
1290 public function getPacked()
1291 {
1292 return $this->packed;
1293 }
1294 public function setTypeUrl($typeUrl)
1295 {
1296 $this->typeUrl = $typeUrl;
1297 }
1298 public function getTypeUrl()
1299 {
1300 return $this->typeUrl;
1301 }
1302 }
1303
1304 class Google_Service_Monitoring_Group extends Google_Model
1305 {
1306 protected $internal_gapi_mappings = array(
1307 );
1308 public $displayName;
1309 public $filter;
1310 public $isCluster;
1311 public $name;
1312 public $parentName;
1313
1314
1315 public function setDisplayName($displayName)
1316 {
1317 $this->displayName = $displayName;
1318 }
1319 public function getDisplayName()
1320 {
1321 return $this->displayName;
1322 }
1323 public function setFilter($filter)
1324 {
1325 $this->filter = $filter;
1326 }
1327 public function getFilter()
1328 {
1329 return $this->filter;
1330 }
1331 public function setIsCluster($isCluster)
1332 {
1333 $this->isCluster = $isCluster;
1334 }
1335 public function getIsCluster()
1336 {
1337 return $this->isCluster;
1338 }
1339 public function setName($name)
1340 {
1341 $this->name = $name;
1342 }
1343 public function getName()
1344 {
1345 return $this->name;
1346 }
1347 public function setParentName($parentName)
1348 {
1349 $this->parentName = $parentName;
1350 }
1351 public function getParentName()
1352 {
1353 return $this->parentName;
1354 }
1355 }
1356
1357 class Google_Service_Monitoring_LabelDescriptor extends Google_Model
1358 {
1359 protected $internal_gapi_mappings = array(
1360 );
1361 public $description;
1362 public $key;
1363 public $valueType;
1364
1365
1366 public function setDescription($description)
1367 {
1368 $this->description = $description;
1369 }
1370 public function getDescription()
1371 {
1372 return $this->description;
1373 }
1374 public function setKey($key)
1375 {
1376 $this->key = $key;
1377 }
1378 public function getKey()
1379 {
1380 return $this->key;
1381 }
1382 public function setValueType($valueType)
1383 {
1384 $this->valueType = $valueType;
1385 }
1386 public function getValueType()
1387 {
1388 return $this->valueType;
1389 }
1390 }
1391
1392 class Google_Service_Monitoring_Linear extends Google_Model
1393 {
1394 protected $internal_gapi_mappings = array(
1395 );
1396 public $numFiniteBuckets;
1397 public $offset;
1398 public $width;
1399
1400
1401 public function setNumFiniteBuckets($numFiniteBuckets)
1402 {
1403 $this->numFiniteBuckets = $numFiniteBuckets;
1404 }
1405 public function getNumFiniteBuckets()
1406 {
1407 return $this->numFiniteBuckets;
1408 }
1409 public function setOffset($offset)
1410 {
1411 $this->offset = $offset;
1412 }
1413 public function getOffset()
1414 {
1415 return $this->offset;
1416 }
1417 public function setWidth($width)
1418 {
1419 $this->width = $width;
1420 }
1421 public function getWidth()
1422 {
1423 return $this->width;
1424 }
1425 }
1426
1427 class Google_Service_Monitoring_ListGroupMembersResponse extends Google_Collection
1428 {
1429 protected $collection_key = 'members';
1430 protected $internal_gapi_mappings = array(
1431 );
1432 protected $membersType = 'Google_Service_Monitoring_MonitoredResource';
1433 protected $membersDataType = 'array';
1434 public $nextPageToken;
1435 public $totalSize;
1436
1437
1438 public function setMembers($members)
1439 {
1440 $this->members = $members;
1441 }
1442 public function getMembers()
1443 {
1444 return $this->members;
1445 }
1446 public function setNextPageToken($nextPageToken)
1447 {
1448 $this->nextPageToken = $nextPageToken;
1449 }
1450 public function getNextPageToken()
1451 {
1452 return $this->nextPageToken;
1453 }
1454 public function setTotalSize($totalSize)
1455 {
1456 $this->totalSize = $totalSize;
1457 }
1458 public function getTotalSize()
1459 {
1460 return $this->totalSize;
1461 }
1462 }
1463
1464 class Google_Service_Monitoring_ListGroupsResponse extends Google_Collection
1465 {
1466 protected $collection_key = 'group';
1467 protected $internal_gapi_mappings = array(
1468 );
1469 protected $groupType = 'Google_Service_Monitoring_Group';
1470 protected $groupDataType = 'array';
1471 public $nextPageToken;
1472
1473
1474 public function setGroup($group)
1475 {
1476 $this->group = $group;
1477 }
1478 public function getGroup()
1479 {
1480 return $this->group;
1481 }
1482 public function setNextPageToken($nextPageToken)
1483 {
1484 $this->nextPageToken = $nextPageToken;
1485 }
1486 public function getNextPageToken()
1487 {
1488 return $this->nextPageToken;
1489 }
1490 }
1491
1492 class Google_Service_Monitoring_ListMetricDescriptorsResponse extends Google_Collection
1493 {
1494 protected $collection_key = 'metricDescriptors';
1495 protected $internal_gapi_mappings = array(
1496 );
1497 protected $metricDescriptorsType = 'Google_Service_Monitoring_MetricDescriptor';
1498 protected $metricDescriptorsDataType = 'array';
1499 public $nextPageToken;
1500
1501
1502 public function setMetricDescriptors($metricDescriptors)
1503 {
1504 $this->metricDescriptors = $metricDescriptors;
1505 }
1506 public function getMetricDescriptors()
1507 {
1508 return $this->metricDescriptors;
1509 }
1510 public function setNextPageToken($nextPageToken)
1511 {
1512 $this->nextPageToken = $nextPageToken;
1513 }
1514 public function getNextPageToken()
1515 {
1516 return $this->nextPageToken;
1517 }
1518 }
1519
1520 class Google_Service_Monitoring_ListMonitoredResourceDescriptorsResponse extends Google_Collection
1521 {
1522 protected $collection_key = 'resourceDescriptors';
1523 protected $internal_gapi_mappings = array(
1524 );
1525 public $nextPageToken;
1526 protected $resourceDescriptorsType = 'Google_Service_Monitoring_MonitoredResourceDescriptor';
1527 protected $resourceDescriptorsDataType = 'array';
1528
1529
1530 public function setNextPageToken($nextPageToken)
1531 {
1532 $this->nextPageToken = $nextPageToken;
1533 }
1534 public function getNextPageToken()
1535 {
1536 return $this->nextPageToken;
1537 }
1538 public function setResourceDescriptors($resourceDescriptors)
1539 {
1540 $this->resourceDescriptors = $resourceDescriptors;
1541 }
1542 public function getResourceDescriptors()
1543 {
1544 return $this->resourceDescriptors;
1545 }
1546 }
1547
1548 class Google_Service_Monitoring_ListTimeSeriesResponse extends Google_Collection
1549 {
1550 protected $collection_key = 'timeSeries';
1551 protected $internal_gapi_mappings = array(
1552 );
1553 public $nextPageToken;
1554 protected $timeSeriesType = 'Google_Service_Monitoring_TimeSeries';
1555 protected $timeSeriesDataType = 'array';
1556
1557
1558 public function setNextPageToken($nextPageToken)
1559 {
1560 $this->nextPageToken = $nextPageToken;
1561 }
1562 public function getNextPageToken()
1563 {
1564 return $this->nextPageToken;
1565 }
1566 public function setTimeSeries($timeSeries)
1567 {
1568 $this->timeSeries = $timeSeries;
1569 }
1570 public function getTimeSeries()
1571 {
1572 return $this->timeSeries;
1573 }
1574 }
1575
1576 class Google_Service_Monitoring_Metric extends Google_Model
1577 {
1578 protected $internal_gapi_mappings = array(
1579 );
1580 public $labels;
1581 public $type;
1582
1583
1584 public function setLabels($labels)
1585 {
1586 $this->labels = $labels;
1587 }
1588 public function getLabels()
1589 {
1590 return $this->labels;
1591 }
1592 public function setType($type)
1593 {
1594 $this->type = $type;
1595 }
1596 public function getType()
1597 {
1598 return $this->type;
1599 }
1600 }
1601
1602 class Google_Service_Monitoring_MetricDescriptor extends Google_Collection
1603 {
1604 protected $collection_key = 'labels';
1605 protected $internal_gapi_mappings = array(
1606 );
1607 public $description;
1608 public $displayName;
1609 protected $labelsType = 'Google_Service_Monitoring_LabelDescriptor';
1610 protected $labelsDataType = 'array';
1611 public $metricKind;
1612 public $name;
1613 public $type;
1614 public $unit;
1615 public $valueType;
1616
1617
1618 public function setDescription($description)
1619 {
1620 $this->description = $description;
1621 }
1622 public function getDescription()
1623 {
1624 return $this->description;
1625 }
1626 public function setDisplayName($displayName)
1627 {
1628 $this->displayName = $displayName;
1629 }
1630 public function getDisplayName()
1631 {
1632 return $this->displayName;
1633 }
1634 public function setLabels($labels)
1635 {
1636 $this->labels = $labels;
1637 }
1638 public function getLabels()
1639 {
1640 return $this->labels;
1641 }
1642 public function setMetricKind($metricKind)
1643 {
1644 $this->metricKind = $metricKind;
1645 }
1646 public function getMetricKind()
1647 {
1648 return $this->metricKind;
1649 }
1650 public function setName($name)
1651 {
1652 $this->name = $name;
1653 }
1654 public function getName()
1655 {
1656 return $this->name;
1657 }
1658 public function setType($type)
1659 {
1660 $this->type = $type;
1661 }
1662 public function getType()
1663 {
1664 return $this->type;
1665 }
1666 public function setUnit($unit)
1667 {
1668 $this->unit = $unit;
1669 }
1670 public function getUnit()
1671 {
1672 return $this->unit;
1673 }
1674 public function setValueType($valueType)
1675 {
1676 $this->valueType = $valueType;
1677 }
1678 public function getValueType()
1679 {
1680 return $this->valueType;
1681 }
1682 }
1683
1684 class Google_Service_Monitoring_MetricLabels extends Google_Model
1685 {
1686 }
1687
1688 class Google_Service_Monitoring_MonitoredResource extends Google_Model
1689 {
1690 protected $internal_gapi_mappings = array(
1691 );
1692 public $labels;
1693 public $type;
1694
1695
1696 public function setLabels($labels)
1697 {
1698 $this->labels = $labels;
1699 }
1700 public function getLabels()
1701 {
1702 return $this->labels;
1703 }
1704 public function setType($type)
1705 {
1706 $this->type = $type;
1707 }
1708 public function getType()
1709 {
1710 return $this->type;
1711 }
1712 }
1713
1714 class Google_Service_Monitoring_MonitoredResourceDescriptor extends Google_Collection
1715 {
1716 protected $collection_key = 'labels';
1717 protected $internal_gapi_mappings = array(
1718 );
1719 public $description;
1720 public $displayName;
1721 protected $labelsType = 'Google_Service_Monitoring_LabelDescriptor';
1722 protected $labelsDataType = 'array';
1723 public $name;
1724 public $type;
1725
1726
1727 public function setDescription($description)
1728 {
1729 $this->description = $description;
1730 }
1731 public function getDescription()
1732 {
1733 return $this->description;
1734 }
1735 public function setDisplayName($displayName)
1736 {
1737 $this->displayName = $displayName;
1738 }
1739 public function getDisplayName()
1740 {
1741 return $this->displayName;
1742 }
1743 public function setLabels($labels)
1744 {
1745 $this->labels = $labels;
1746 }
1747 public function getLabels()
1748 {
1749 return $this->labels;
1750 }
1751 public function setName($name)
1752 {
1753 $this->name = $name;
1754 }
1755 public function getName()
1756 {
1757 return $this->name;
1758 }
1759 public function setType($type)
1760 {
1761 $this->type = $type;
1762 }
1763 public function getType()
1764 {
1765 return $this->type;
1766 }
1767 }
1768
1769 class Google_Service_Monitoring_MonitoredResourceLabels extends Google_Model
1770 {
1771 }
1772
1773 class Google_Service_Monitoring_Option extends Google_Model
1774 {
1775 protected $internal_gapi_mappings = array(
1776 );
1777 public $name;
1778 public $value;
1779
1780
1781 public function setName($name)
1782 {
1783 $this->name = $name;
1784 }
1785 public function getName()
1786 {
1787 return $this->name;
1788 }
1789 public function setValue($value)
1790 {
1791 $this->value = $value;
1792 }
1793 public function getValue()
1794 {
1795 return $this->value;
1796 }
1797 }
1798
1799 class Google_Service_Monitoring_OptionValue extends Google_Model
1800 {
1801 }
1802
1803 class Google_Service_Monitoring_Point extends Google_Model
1804 {
1805 protected $internal_gapi_mappings = array(
1806 );
1807 protected $intervalType = 'Google_Service_Monitoring_TimeInterval';
1808 protected $intervalDataType = '';
1809 protected $valueType = 'Google_Service_Monitoring_TypedValue';
1810 protected $valueDataType = '';
1811
1812
1813 public function setInterval(Google_Service_Monitoring_TimeInterval $interval)
1814 {
1815 $this->interval = $interval;
1816 }
1817 public function getInterval()
1818 {
1819 return $this->interval;
1820 }
1821 public function setValue(Google_Service_Monitoring_TypedValue $value)
1822 {
1823 $this->value = $value;
1824 }
1825 public function getValue()
1826 {
1827 return $this->value;
1828 }
1829 }
1830
1831 class Google_Service_Monitoring_Range extends Google_Model
1832 {
1833 protected $internal_gapi_mappings = array(
1834 );
1835 public $max;
1836 public $min;
1837
1838
1839 public function setMax($max)
1840 {
1841 $this->max = $max;
1842 }
1843 public function getMax()
1844 {
1845 return $this->max;
1846 }
1847 public function setMin($min)
1848 {
1849 $this->min = $min;
1850 }
1851 public function getMin()
1852 {
1853 return $this->min;
1854 }
1855 }
1856
1857 class Google_Service_Monitoring_SourceContext extends Google_Model
1858 {
1859 protected $internal_gapi_mappings = array(
1860 );
1861 public $fileName;
1862
1863
1864 public function setFileName($fileName)
1865 {
1866 $this->fileName = $fileName;
1867 }
1868 public function getFileName()
1869 {
1870 return $this->fileName;
1871 }
1872 }
1873
1874 class Google_Service_Monitoring_TimeInterval extends Google_Model
1875 {
1876 protected $internal_gapi_mappings = array(
1877 );
1878 public $endTime;
1879 public $startTime;
1880
1881
1882 public function setEndTime($endTime)
1883 {
1884 $this->endTime = $endTime;
1885 }
1886 public function getEndTime()
1887 {
1888 return $this->endTime;
1889 }
1890 public function setStartTime($startTime)
1891 {
1892 $this->startTime = $startTime;
1893 }
1894 public function getStartTime()
1895 {
1896 return $this->startTime;
1897 }
1898 }
1899
1900 class Google_Service_Monitoring_TimeSeries extends Google_Collection
1901 {
1902 protected $collection_key = 'points';
1903 protected $internal_gapi_mappings = array(
1904 );
1905 protected $metricType = 'Google_Service_Monitoring_Metric';
1906 protected $metricDataType = '';
1907 public $metricKind;
1908 protected $pointsType = 'Google_Service_Monitoring_Point';
1909 protected $pointsDataType = 'array';
1910 protected $resourceType = 'Google_Service_Monitoring_MonitoredResource';
1911 protected $resourceDataType = '';
1912 public $valueType;
1913
1914
1915 public function setMetric(Google_Service_Monitoring_Metric $metric)
1916 {
1917 $this->metric = $metric;
1918 }
1919 public function getMetric()
1920 {
1921 return $this->metric;
1922 }
1923 public function setMetricKind($metricKind)
1924 {
1925 $this->metricKind = $metricKind;
1926 }
1927 public function getMetricKind()
1928 {
1929 return $this->metricKind;
1930 }
1931 public function setPoints($points)
1932 {
1933 $this->points = $points;
1934 }
1935 public function getPoints()
1936 {
1937 return $this->points;
1938 }
1939 public function setResource(Google_Service_Monitoring_MonitoredResource $resource)
1940 {
1941 $this->resource = $resource;
1942 }
1943 public function getResource()
1944 {
1945 return $this->resource;
1946 }
1947 public function setValueType($valueType)
1948 {
1949 $this->valueType = $valueType;
1950 }
1951 public function getValueType()
1952 {
1953 return $this->valueType;
1954 }
1955 }
1956
1957 class Google_Service_Monitoring_Type extends Google_Collection
1958 {
1959 protected $collection_key = 'options';
1960 protected $internal_gapi_mappings = array(
1961 );
1962 protected $fieldsType = 'Google_Service_Monitoring_Field';
1963 protected $fieldsDataType = 'array';
1964 public $name;
1965 public $oneofs;
1966 protected $optionsType = 'Google_Service_Monitoring_Option';
1967 protected $optionsDataType = 'array';
1968 protected $sourceContextType = 'Google_Service_Monitoring_SourceContext';
1969 protected $sourceContextDataType = '';
1970 public $syntax;
1971
1972
1973 public function setFields($fields)
1974 {
1975 $this->fields = $fields;
1976 }
1977 public function getFields()
1978 {
1979 return $this->fields;
1980 }
1981 public function setName($name)
1982 {
1983 $this->name = $name;
1984 }
1985 public function getName()
1986 {
1987 return $this->name;
1988 }
1989 public function setOneofs($oneofs)
1990 {
1991 $this->oneofs = $oneofs;
1992 }
1993 public function getOneofs()
1994 {
1995 return $this->oneofs;
1996 }
1997 public function setOptions($options)
1998 {
1999 $this->options = $options;
2000 }
2001 public function getOptions()
2002 {
2003 return $this->options;
2004 }
2005 public function setSourceContext(Google_Service_Monitoring_SourceContext $sourceContext)
2006 {
2007 $this->sourceContext = $sourceContext;
2008 }
2009 public function getSourceContext()
2010 {
2011 return $this->sourceContext;
2012 }
2013 public function setSyntax($syntax)
2014 {
2015 $this->syntax = $syntax;
2016 }
2017 public function getSyntax()
2018 {
2019 return $this->syntax;
2020 }
2021 }
2022
2023 class Google_Service_Monitoring_TypedValue extends Google_Model
2024 {
2025 protected $internal_gapi_mappings = array(
2026 );
2027 public $boolValue;
2028 protected $distributionValueType = 'Google_Service_Monitoring_Distribution';
2029 protected $distributionValueDataType = '';
2030 public $doubleValue;
2031 public $int64Value;
2032 public $stringValue;
2033
2034
2035 public function setBoolValue($boolValue)
2036 {
2037 $this->boolValue = $boolValue;
2038 }
2039 public function getBoolValue()
2040 {
2041 return $this->boolValue;
2042 }
2043 public function setDistributionValue(Google_Service_Monitoring_Distribution $distributionValue)
2044 {
2045 $this->distributionValue = $distributionValue;
2046 }
2047 public function getDistributionValue()
2048 {
2049 return $this->distributionValue;
2050 }
2051 public function setDoubleValue($doubleValue)
2052 {
2053 $this->doubleValue = $doubleValue;
2054 }
2055 public function getDoubleValue()
2056 {
2057 return $this->doubleValue;
2058 }
2059 public function setInt64Value($int64Value)
2060 {
2061 $this->int64Value = $int64Value;
2062 }
2063 public function getInt64Value()
2064 {
2065 return $this->int64Value;
2066 }
2067 public function setStringValue($stringValue)
2068 {
2069 $this->stringValue = $stringValue;
2070 }
2071 public function getStringValue()
2072 {
2073 return $this->stringValue;
2074 }
2075 }
2076