function HistogramDataPoint::setBucketCounts
bucket_counts is an optional field contains the count values of histogram for each bucket. The sum of the bucket_counts must equal the value in the count field. The number of elements in bucket_counts array must be by one greater than the number of elements in explicit_bounds array.
Generated from protobuf field <code>repeated fixed64 bucket_counts = 6;</code>
Parameters
int[]|string[]|\Google\Protobuf\Internal\RepeatedField $var:
Return value
$this
File
-
vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ HistogramDataPoint.php, line 386
Class
- HistogramDataPoint
- HistogramDataPoint is a single data point in a timeseries that describes the time-varying values of a Histogram. A Histogram contains summary statistics for a population of values, it may optionally contain the distribution of those values across a…
Namespace
Opentelemetry\Proto\Metrics\V1Code
public function setBucketCounts($var) {
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::FIXED64);
$this->bucket_counts = $arr;
return $this;
}