Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Differences Between: [Versions 311 and 402] [Versions 311 and 403]

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