Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Buckets.php

function Buckets::__construct

Constructor.

Parameters

array $data {: Optional. Data for populating the Message object.

@type int $offset Offset is the bucket index of the first entry in the bucket_counts array.

Note: This uses a varint encoding as a simple form of compression. @type int[]|string[]|\Google\Protobuf\Internal\RepeatedField $bucket_counts bucket_counts is an array of count values, where bucket_counts[i] carries the count of the bucket at index (offset+i). bucket_counts[i] is the count of values greater than base^(offset+i) and less than or equal to base^(offset+i+1). Note: By contrast, the explicit HistogramDataPoint uses fixed64. This field is expected to have many buckets, especially zeros, so uint64 has been selected to ensure varint encoding. }

Overrides Message::__construct

File

vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/V1/ExponentialHistogramDataPoint/Buckets.php, line 62

Class

Buckets
Buckets are a set of bucket counts, encoded in a contiguous array of counts.

Namespace

Opentelemetry\Proto\Metrics\V1\ExponentialHistogramDataPoint

Code

public function __construct($data = NULL) {
    \GPBMetadata\Opentelemetry\Proto\Metrics\V1\Metrics::initOnce();
    parent::__construct($data);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal