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