暫無描述

Distribution.php 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. class Google_Service_Monitoring_Distribution extends Google_Collection
  18. {
  19. protected $collection_key = 'exemplars';
  20. public $bucketCounts;
  21. protected $bucketOptionsType = 'Google_Service_Monitoring_BucketOptions';
  22. protected $bucketOptionsDataType = '';
  23. public $count;
  24. protected $exemplarsType = 'Google_Service_Monitoring_Exemplar';
  25. protected $exemplarsDataType = 'array';
  26. public $mean;
  27. protected $rangeType = 'Google_Service_Monitoring_Range';
  28. protected $rangeDataType = '';
  29. public $sumOfSquaredDeviation;
  30. public function setBucketCounts($bucketCounts)
  31. {
  32. $this->bucketCounts = $bucketCounts;
  33. }
  34. public function getBucketCounts()
  35. {
  36. return $this->bucketCounts;
  37. }
  38. /**
  39. * @param Google_Service_Monitoring_BucketOptions
  40. */
  41. public function setBucketOptions(Google_Service_Monitoring_BucketOptions $bucketOptions)
  42. {
  43. $this->bucketOptions = $bucketOptions;
  44. }
  45. /**
  46. * @return Google_Service_Monitoring_BucketOptions
  47. */
  48. public function getBucketOptions()
  49. {
  50. return $this->bucketOptions;
  51. }
  52. public function setCount($count)
  53. {
  54. $this->count = $count;
  55. }
  56. public function getCount()
  57. {
  58. return $this->count;
  59. }
  60. /**
  61. * @param Google_Service_Monitoring_Exemplar
  62. */
  63. public function setExemplars($exemplars)
  64. {
  65. $this->exemplars = $exemplars;
  66. }
  67. /**
  68. * @return Google_Service_Monitoring_Exemplar
  69. */
  70. public function getExemplars()
  71. {
  72. return $this->exemplars;
  73. }
  74. public function setMean($mean)
  75. {
  76. $this->mean = $mean;
  77. }
  78. public function getMean()
  79. {
  80. return $this->mean;
  81. }
  82. /**
  83. * @param Google_Service_Monitoring_Range
  84. */
  85. public function setRange(Google_Service_Monitoring_Range $range)
  86. {
  87. $this->range = $range;
  88. }
  89. /**
  90. * @return Google_Service_Monitoring_Range
  91. */
  92. public function getRange()
  93. {
  94. return $this->range;
  95. }
  96. public function setSumOfSquaredDeviation($sumOfSquaredDeviation)
  97. {
  98. $this->sumOfSquaredDeviation = $sumOfSquaredDeviation;
  99. }
  100. public function getSumOfSquaredDeviation()
  101. {
  102. return $this->sumOfSquaredDeviation;
  103. }
  104. }